Belle II Software development
|
Utilities for converting PDG codes into particle names. More...
Functions | |
bool | hasAntiParticle (int pdgCode) |
Checks if the particle with given pdg code has an anti-particle or not. | |
std::string | particleName (int pdgCode) |
Returns the name of a particle with given pdg code. | |
std::string | antiParticleName (int pdgCode) |
Returns the name of the anti-particle of a particle with given pdg code. | |
std::string | antiParticleListName (int pdgCode, const std::string &label) |
Returns the name of the anti-particle ParticleList for particles with given pdg code and with given label. | |
std::string | particleListName (int pdgCode, const std::string &label) |
Returns the name of the particle ParticleList for particles with given pdg code and with given label. | |
double | charge (int pdgCode) |
Returns electric charge of a particle with given pdg code. | |
Utilities for converting PDG codes into particle names.
Uses the TDatabasePDG class, which is filled from evt.pdl by basf2.
std::string antiParticleListName | ( | int | pdgCode, |
const std::string & | label | ||
) |
Returns the name of the anti-particle ParticleList for particles with given pdg code and with given label.
If the anti-particle does not exist the particle's name is returned instead
Definition at line 30 of file EvtPDLUtil.cc.
std::string antiParticleName | ( | int | pdgCode | ) |
Returns the name of the anti-particle of a particle with given pdg code.
If the anti-particle does not exist the particle's name is returned instead.
Definition at line 25 of file EvtPDLUtil.cc.
double charge | ( | int | pdgCode | ) |
Returns electric charge of a particle with given pdg code.
Definition at line 44 of file EvtPDLUtil.cc.
bool hasAntiParticle | ( | int | pdgCode | ) |
Checks if the particle with given pdg code has an anti-particle or not.
pdgCode | of the particle |
Definition at line 12 of file EvtPDLUtil.cc.
std::string particleListName | ( | int | pdgCode, |
const std::string & | label | ||
) |
Returns the name of the particle ParticleList for particles with given pdg code and with given label.
Definition at line 37 of file EvtPDLUtil.cc.
std::string particleName | ( | int | pdgCode | ) |
Returns the name of a particle with given pdg code.
Definition at line 20 of file EvtPDLUtil.cc.