This tool allows to save the particle history of particles decaying during the simulation.
Definition SimG4SaveParticleHistory.h:31
virtual ~SimG4SaveParticleHistory()=default
DataHandle< edm4hep::MCParticleCollection > m_mcParticles
Handle for collection of MC particles to create.
Definition SimG4SaveParticleHistory.h:45
edm4hep::MCParticleCollection * m_mcParticleColl
Pointer to the particle collection, ownership should be handled in a algorithm / tool.
Definition SimG4SaveParticleHistory.h:47
StatusCode saveOutput(const G4Event &aEvent) override final
Save the history Creates particles and gen vertices that allow association of parents and children.
Definition SimG4SaveParticleHistory.cpp:26
SimG4SaveParticleHistory(const std::string &aType, const std::string &aName, const IInterface *aParent)
Definition SimG4SaveParticleHistory.cpp:18