AlgTool to convert a pdgCode into a particle definition used by the G4 decayer.
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor from base class.
Gaudi::Property< std::vector< int > > m_useParticles
G4ParticleDefinition * getParticleDefinition(int pdgCode) const
Returns the G4ParticleDefinition of particle with PDG ID pdgCode, 0 otherwise.
void printListOfParticles(bool withDecayTableOnly=false) const
prints list of particles to stdout
std::map< int, G4ParticleDefinition * > PDGG4ParticleMap
std::map< int, G4ParticleDefinition * > predefinedParticles()
fills default particles in map
std::vector< std::pair< int, std::string > > listOfParticles() const
returns a vector of pdgid / particlename pairs containing all particles
virtual StatusCode initialize() override
AlgTool initailize method.
Gaudi::Property< bool > m_printList
PDGG4ParticleMap m_pdgG4ParticleMap
map from pdg codes to defined Geant4 particles