15 #ifndef DD4HEP_DDG4_GEANT4PARTICLEPRINT_H
16 #define DD4HEP_DDG4_GEANT4PARTICLEPRINT_H
30 namespace Simulation {
73 virtual void begin(
const G4Event* event);
75 virtual void end(
const G4Event* event);
83 #endif // DD4HEP_DDG4_GEANT4PARTICLEPRINT_H
void makePrintout(const G4Event *e) const
Print particle table.
void printParticle(const std::string &prefix, const G4Event *e, Geant4ParticleHandle p) const
std::map< int, Particle * > ParticleMap
Data structure to store the MC particle information.
void printParticleTree(const G4Event *e, const ParticleMap &particles, int level, Geant4ParticleHandle p) const
Print tree of kept particles.
void printParticles(const G4Event *e, const ParticleMap &particles) const
Print record of kept particles.
bool m_printGeneration
Property: Flag to indicate output type as part of the generator action.
Concrete basic implementation of the Geant4 event action.
Geant4Context * context() const
Access the context.
Geant4ParticlePrint(Geant4Context *context, const std::string &nam)
Standard constructor.
Geant4ParticleMap::ParticleMap ParticleMap
int m_outputType
Property: Flag to indicate output type: 1: TABLE, 2:TREE, 3:BOTH (default)
virtual void begin(const G4Event *event)
Pre-event action callback.
virtual void end(const G4Event *event)
Post-event action callback.
Geant4ParticleMap::TrackEquivalents TrackEquivalents
virtual void operator()(G4Event *event)
Generation action callback.
Data structure to access derived MC particle information.
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.
Generic context to extend user, run and event information.
bool m_printEnd
Property: Flag to indicate output type at end of event.
std::map< int, int > TrackEquivalents
virtual ~Geant4ParticlePrint()
Default destructor.
Geant4Action to print MC particle information.
Geant4ParticleMap::Particle Particle