LCIO
02.17
|
Implementation of SIOObjectHandler to handle IO of MCParticles. More...
#include <SIOParticleHandler.h>
Public Member Functions | |
SIOParticleHandler () | |
Constructor. 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... | |
virtual void | initReading (sio::read_device &device, EVENT::LCCollection *collection, sio::version_type vers) |
Init collection reading. More... | |
virtual void | initWriting (sio::write_device &device, EVENT::LCCollection *collection) |
Init collection writing. More... | |
Static Public Member Functions | |
static void | restoreParentDaughterRelations (EVENT::LCEvent *evt) |
Restore the MCParticle parent <-> daughter relations. More... | |
Additional Inherited Members | |
![]() | |
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 MCParticles.
Definition at line 17 of file SIOParticleHandler.h.
SIO::SIOParticleHandler::SIOParticleHandler | ( | ) |
Constructor.
Definition at line 12 of file SIOParticleHandler.cc.
|
overridevirtual |
Factory method to create an object of the type of the collection.
Implements SIO::SIOObjectHandler.
Definition at line 94 of file SIOParticleHandler.cc.
|
overridevirtual |
Reads lcio objects from an SIO stream.
Implements SIO::SIOObjectHandler.
Definition at line 19 of file SIOParticleHandler.cc.
References EVENT::MCParticle::BITEndpoint.
|
static |
Restore the MCParticle parent <-> daughter relations.
Definition at line 100 of file SIOParticleHandler.cc.
References IMPL::MCParticleImpl::_daughters, IMPL::MCParticleImpl::_parents, EVENT::LCCollection::BITSubset, EVENT::LCEvent::getCollection(), EVENT::LCEvent::getCollectionNames(), IMPL::MCParticleImpl::getDaughters(), EVENT::LCCollection::getElementAt(), EVENT::LCCollection::getFlag(), EVENT::LCCollection::getNumberOfElements(), EVENT::LCCollection::getTypeName(), std::vector< T >::push_back(), and std::vector< T >::size().
Referenced by IOIMPL::LCEventLazyImpl::postProcessEvent(), and MT::LCReader::postProcessEvent().
|
overridevirtual |
Writes lcio objects to an SIO stream.
Implements SIO::SIOObjectHandler.
Definition at line 60 of file SIOParticleHandler.cc.
References EVENT::MCParticle::BITEndpoint.