#include <VP1ParticleData.h>
Definition at line 24 of file VP1ParticleData.h.
◆ VP1ParticleData()
VP1ParticleData::VP1ParticleData |
( |
| ) |
|
|
inlineprivate |
◆ ~VP1ParticleData()
VP1ParticleData::~VP1ParticleData |
( |
| ) |
|
|
inlineprivate |
◆ particleCharge()
double VP1ParticleData::particleCharge |
( |
const int & |
pdgcode, |
|
|
bool & |
ok |
|
) |
| |
|
static |
◆ particleData()
const HepPDT::ParticleData * VP1ParticleData::particleData |
( |
const int & |
pdgcode | ) |
|
|
static |
Definition at line 46 of file VP1ParticleData.cxx.
52 ISvcLocator* svcLocator = Gaudi::svcLocator();
59 SmartIF<IPartPropSvc> partPropSvc{svcLocator->service(
"PartPropSvc" )};
61 VP1Msg::message(
"VP1ParticleData ERROR: Could not get particle property service.");
65 const HepPDT::ParticleDataTable* tab = partPropSvc->PDT();
68 VP1Msg::message(
"VP1ParticleData ERROR: Could not get particle data table from particle property service.");
74 const HepPDT::ParticleData*
particle =
◆ particleMass()
double VP1ParticleData::particleMass |
( |
const int & |
pdgcode, |
|
|
bool & |
ok |
|
) |
| |
|
static |
◆ particleName()
QString VP1ParticleData::particleName |
( |
const int & |
pdgcode, |
|
|
bool & |
ok |
|
) |
| |
|
static |
Definition at line 127 of file VP1ParticleData.cxx.
132 return ok ?
it->second :
"";
137 case 21:
name =
"gluon";
break;
138 case 22:
name =
"photon";
break;
139 case -11:
name =
"e+";
break;
140 case 11:
name =
"e-";
break;
141 case -13:
name =
"mu+";
break;
142 case 13:
name =
"mu-";
break;
143 case -15:
name =
"tau+";
break;
144 case 15:
name =
"tau-";
break;
145 case -211:
name =
"M_PI-";
break;
146 case 211:
name =
"M_PI+";
break;
147 case 1:
name =
"d" ;
break;
148 case 2:
name =
"u" ;
break;
149 case 3:
name =
"s" ;
break;
150 case 4:
name =
"c" ;
break;
151 case 5:
name =
"b" ;
break;
152 case 6:
name =
"t" ;
break;
153 case -1:
name =
"dbar" ;
break;
154 case -2:
name =
"ubar" ;
break;
155 case -3:
name =
"sbar" ;
break;
156 case -4:
name =
"cbar" ;
break;
157 case -5:
name =
"bbar" ;
break;
158 case -6:
name =
"tbar" ;
break;
159 case 92:
name =
"frag string" ;
break;
164 if (
name.isEmpty()) {
167 name = (pdgcode<0?
"anti-":
"")+QString(
data->name().c_str());
The documentation for this class was generated from the following files:
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
static std::map< int, double > m_particleAbsPDGCodeToMass
static const double m_badValue
static std::map< int, QString > m_particleAbsPDGCodeToName
static const QString m_badName
static std::map< int, double > m_particlePDGCodeToCharge
static const HepPDT::ParticleDataTable * m_particleDataTable
static const HepPDT::ParticleData * particleData(const int &pdgcode)