Geant4Action to print MC particle information.
virtual ~Geant4ParticlePrint()
Default destructor.
bool m_printBegin
Property: Flag to indicate output type at begin of event.
bool m_printHits
Property: Flag to indicate output of hit data in tree.
Geant4ParticleMap::ParticleMap ParticleMap
Geant4ParticleMap::TrackEquivalents TrackEquivalents
std::map< int, int > TrackEquivalents
Geant4ParticlePrint(Geant4Context *context, const std::string &nam)
Standard constructor.
virtual void end(const G4Event *event) override
Post-event action callback.
virtual void begin(const G4Event *event) override
Pre-event action callback.
void printParticles(const G4Event *e, const ParticleMap &particles) const
Print record of kept particles.
std::map< int, Particle * > ParticleMap
bool m_printGeneration
Property: Flag to indicate output type as part of the generator action.
Geant4ParticleMap::Particle Particle
void printParticleTree(const G4Event *e, const ParticleMap &particles, int level, Geant4ParticleHandle p) const
Print tree of kept particles.
void makePrintout(const G4Event *e) const
Print particle table.
void printParticle(const std::string &prefix, const G4Event *e, Geant4ParticleHandle p) const
Data structure to access derived MC particle information.
virtual void operator()(G4Event *event)
Generation action callback.
Data structure to store the MC particle information.
int m_outputType
Property: Flag to indicate output type: 1: TABLE, 2:TREE, 3:BOTH (default)
bool m_printEnd
Property: Flag to indicate output type at end of event.
Generic context to extend user, run and event information.