 |
Belle II Software
release-05-02-19
|
11 #include <analysis/utility/EvtPDLUtil.h>
12 #include <TDatabasePDG.h>
16 TParticlePDG* particle = TDatabasePDG::Instance()->GetParticle(pdgCode);
17 TParticlePDG* antiParticle = particle->AntiParticle();
19 return antiParticle and (particle != antiParticle);
24 return TDatabasePDG::Instance()->GetParticle(pdgCode)->GetName();
29 return TDatabasePDG::Instance()->GetParticle(pdgCode)->AntiParticle()->GetName();
48 return TDatabasePDG::Instance()->GetParticle(pdgCode)->Charge() / 3.0;
double charge(int pdgCode)
Returns electric charge 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 particleListName(int pdgCode, const std::string &label)
Returns the name of the particle ParticleList for particles with given pdg code and with given label.
std::string particleName(int pdgCode)
Returns the name of a particle with given pdg code.
bool hasAntiParticle(int pdgCode)
Checks if the particle with given pdg code has an anti-particle or not.
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 l...