PDGToG4Particle(const std::string &, const std::string &, const IInterface *)
Default constructor.
virtual ~PDGToG4Particle()=default
virtual G4ParticleDefinition * getParticleDefinition(int pdgCode) const
Returns the G4ParticleDefinition of particle with PDG ID pdgCode, 0 otherwise.
std::map< int, G4ParticleDefinition * > predefinedParticles()
fills default particles in map
std::vector< int > m_useParticles
List of particles which should be available for conversion.
std::map< int, G4ParticleDefinition * > PDGG4ParticleMap
bool m_printList
Print list of loaded particles in initialize()
static const InterfaceID & interfaceID()
AlgTool interface methods.
virtual std::vector< std::pair< int, std::string > > listOfParticles() const
returns a vector of pdgid / particlename pairs containing all particles
virtual void printListOfParticles(bool withDecayTableOnly=false) const
prints list of particles to stdout
StatusCode initialize()
AlgTool initailize method.
PDGG4ParticleMap m_pdgG4ParticleMap
map from pdg codes to defined Geant4 particles