Geant4Output2Podio.h
void ConstructParticle(dd4pod::Geant4ParticleCollection *col, dd4hep::sim::Geant4Particle *part)
virtual void beginRun(const G4Run *run)
Callback to store the Geant4 run information.
Definition: Geant4Output2Podio.cxx:58
Definition: Geant4Particle.h:27
virtual void saveEvent(OutputContext< G4Event > &ctxt)
Callback to store the Geant4 event.
Definition: Geant4Output2Podio.cxx:125
std::vector< std::pair< std::string, podio::CollectionBase * > > m_collections
Definition: Geant4Output2Podio.h:52
podio::CollectionIDTable * m_collectionIDs
Definition: Geant4Output2Podio.h:55
Definition: Geant4Output2Podio.h:12
bool m_handleMCTruth
Flag if Monte-Carlo truth should be followed and checked.
Definition: Geant4Output2Podio.h:37
podio::ROOTWriter * writer
Definition: Geant4Output2Podio.h:49
virtual void endRun(const G4Run *run)
Callback to store the Geant4 run information.
Definition: Geant4Output2Podio.cxx:65
virtual void saveRun(const G4Run *run)
Callback to store the Geant4 run information.
Definition: Geant4Output2Podio.cxx:114
virtual void saveCollection(OutputContext< G4Event > &ctxt, G4VHitsCollection *collection)
Callback to store each Geant4 hit collection.
Definition: Geant4Output2Podio.cxx:174
Geant4Output2Podio(Geant4Context *context, const std::string &nam)
Standard constructor.
Definition: Geant4Output2Podio.cxx:30
bool m_disableParticles
Property: vector with disabled collections.
Definition: Geant4Output2Podio.h:46
std::vector< std::string > m_disabledCollections
Property: vector with disabled collections.
Definition: Geant4Output2Podio.h:40
std::vector< std::pair< std::string, podio::CollectionBase * > > m_readCollections
Definition: Geant4Output2Podio.h:54
std::map< std::string, podio::CollectionBase * > m_col_map
Definition: Geant4Output2Podio.h:51
A Collection is identified by an ID.
Definition: Geant4ParticleCollection.h:50
std::vector< std::string > m_enabledCollections
Property: vector with disabled collections.
Definition: Geant4Output2Podio.h:43
virtual void commit(OutputContext< G4Event > &ctxt)
Commit data at end of filling procedure.
Definition: Geant4Output2Podio.cxx:118