9#include <analysis/utility/EvtPDLUtil.h>
10#include <TDatabasePDG.h>
14 TParticlePDG* particle = TDatabasePDG::Instance()->GetParticle(pdgCode);
15 TParticlePDG* antiParticle = particle->AntiParticle();
17 return antiParticle and (particle != antiParticle);
22 return TDatabasePDG::Instance()->GetParticle(pdgCode)->GetName();
27 return TDatabasePDG::Instance()->GetParticle(pdgCode)->AntiParticle()->GetName();
46 return TDatabasePDG::Instance()->GetParticle(pdgCode)->Charge() / 3.0;
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...
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.
double charge(int pdgCode)
Returns electric charge 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.
bool hasAntiParticle(int pdgCode)
Checks if the particle with given pdg code has an anti-particle or not.