LCIO
02.17
|
Implementation of SIOObjectHandler to handle IO of Vertexes. More...
#include <SIOVertexHandler.h>
Public Member Functions | |
SIOVertexHandler () | |
Constructor. More... | |
void | initReading (sio::read_device &device, EVENT::LCCollection *collection, sio::version_type vers) override |
Init collection reading. More... | |
void | initWriting (sio::write_device &device, EVENT::LCCollection *collection) override |
Init collection reading. More... | |
void | read (sio::read_device &device, EVENT::LCObject *objP, sio::version_type vers) override |
Reads lcio objects from an SIO stream. More... | |
void | write (sio::write_device &device, const EVENT::LCObject *obj) override |
Writes lcio objects to an SIO stream. More... | |
EVENT::LCObject * | create () const override |
Factory method to create an object of the type of the collection. More... | |
![]() | |
SIOObjectHandler (const std::string &colType) | |
Constructor with collection type. More... | |
virtual | ~SIOObjectHandler ()=default |
Default destructor. More... | |
unsigned int | flag () const |
Get the collection flag. More... | |
const std::string & | collectionType () const |
Get the collection type associated to the object handler (see EVENT/LCIO.h) More... | |
Protected Attributes | |
std::map< int, std::string > | _imr {} |
std::set< std::string > | _set {} |
EVENT::StringVec | _parameters {} |
![]() | |
const std::string | _collectionType |
The collection type associated to LCIO object. More... | |
unsigned int | _flag {0} |
The collection flag. More... | |
Implementation of SIOObjectHandler to handle IO of Vertexes.
Definition at line 21 of file SIOVertexHandler.h.
SIO::SIOVertexHandler::SIOVertexHandler | ( | ) |
Constructor.
Definition at line 18 of file SIOVertexHandler.cc.
|
overridevirtual |
Factory method to create an object of the type of the collection.
Implements SIO::SIOObjectHandler.
Definition at line 105 of file SIOVertexHandler.cc.
|
overridevirtual |
Init collection reading.
Reimplemented from SIO::SIOObjectHandler.
Definition at line 25 of file SIOVertexHandler.cc.
References _imr, _parameters, std::vector< T >::clear(), std::map< K, T >::clear(), EVENT::LCCollection::getParameters(), EVENT::LCParameters::getStringVals(), SIO::SIOObjectHandler::initReading(), and std::vector< T >::size().
|
overridevirtual |
Init collection reading.
Reimplemented from SIO::SIOObjectHandler.
Definition at line 37 of file SIOVertexHandler.cc.
References _parameters, _set, std::set< K >::begin(), std::vector< T >::clear(), std::set< K >::clear(), std::set< K >::end(), EVENT::LCCollection::getElementAt(), EVENT::LCCollection::getNumberOfElements(), SIO::SIOObjectHandler::initWriting(), std::set< K >::insert(), EVENT::LCCollection::parameters(), std::vector< T >::push_back(), and EVENT::LCParameters::setValues().
|
overridevirtual |
Reads lcio objects from an SIO stream.
Implements SIO::SIOObjectHandler.
Definition at line 53 of file SIOVertexHandler.cc.
References _imr, and VTXCOVMATRIX.
|
overridevirtual |
Writes lcio objects to an SIO stream.
Implements SIO::SIOObjectHandler.
Definition at line 80 of file SIOVertexHandler.cc.
References _set, std::set< K >::begin(), and std::set< K >::find().
|
protected |
Definition at line 42 of file SIOVertexHandler.h.
Referenced by initReading(), and read().
|
protected |
Definition at line 44 of file SIOVertexHandler.h.
Referenced by initReading(), and initWriting().
|
protected |
Definition at line 43 of file SIOVertexHandler.h.
Referenced by initWriting(), and write().