#include </builds/gaudi/Gaudi/GaudiPartProp/include/Gaudi/Tr/TrackDefaultParticles.h>
|
static constexpr std::array< double, 5 > | s_mass = { 0.51099891, 105.65837, 139.57018, 493.677, 938.27203 } |
|
Definition at line 21 of file TrackDefaultParticles.h.
◆ validated_pid_t
Enumerator |
---|
Electron | |
Muon | |
Pion | |
Kaon | |
Proton | |
Definition at line 22 of file TrackDefaultParticles.h.
22{ Electron = 0, Muon, Pion, Kaon, Proton };
◆ PID() [1/3]
Gaudi::Tr::PID::PID |
( |
const int | id | ) |
|
|
inlineexplicitconstexpr |
◆ PID() [2/3]
◆ PID() [3/3]
◆ Electron()
static constexpr PID Gaudi::Tr::PID::Electron |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ isElectron()
bool Gaudi::Tr::PID::isElectron |
( |
| ) |
const |
|
inlineconstexpr |
◆ isKaon()
bool Gaudi::Tr::PID::isKaon |
( |
| ) |
const |
|
inlineconstexpr |
◆ isMuon()
bool Gaudi::Tr::PID::isMuon |
( |
| ) |
const |
|
inlineconstexpr |
◆ isPion()
bool Gaudi::Tr::PID::isPion |
( |
| ) |
const |
|
inlineconstexpr |
◆ isProton()
bool Gaudi::Tr::PID::isProton |
( |
| ) |
const |
|
inlineconstexpr |
◆ Kaon()
static constexpr PID Gaudi::Tr::PID::Kaon |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ mass()
double Gaudi::Tr::PID::mass |
( |
| ) |
const |
|
inlineconstexpr |
◆ Muon()
static constexpr PID Gaudi::Tr::PID::Muon |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ Pion()
static constexpr PID Gaudi::Tr::PID::Pion |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ Proton()
static constexpr PID Gaudi::Tr::PID::Proton |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ validate()
|
inlinestaticconstexprprivate |
Definition at line 27 of file TrackDefaultParticles.h.
27 {
28 switch ( id ) {
29 case 11:
31 case 13:
33 case 211:
35 case 321:
37 case 2212:
39 default:
40 throw std::runtime_error( "invalid PID" );
41 }
42 }
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & | os, |
|
|
const PID & | pid ) |
|
friend |
◆ parse
Definition at line 85 of file TrackDefaultParticles.h.
85 {
87 if ( in !=
toString( ref ) )
continue;
90 }
92 }
static constexpr PID Kaon()
friend const char * toString(PID pid)
static constexpr PID Muon()
static constexpr PID Pion()
static constexpr PID Proton()
static constexpr PID Electron()
constexpr static const auto SUCCESS
constexpr static const auto FAILURE
◆ toStream
std::ostream & toStream |
( |
const PID & | pid, |
|
|
std::ostream & | os ) |
|
friend |
◆ toString
const char * toString |
( |
PID | pid | ) |
|
|
friend |
Definition at line 63 of file TrackDefaultParticles.h.
63 {
64 switch ( pid.m_value ) {
66 return "Electron";
68 return "Muon";
70 return "Pion";
72 return "Kaon";
74 return "Proton";
75 default:
76 throw std::runtime_error( "Calling toString on invalid PID" );
77 }
78 }
◆ m_value
◆ s_mass
std::array< double, 5 > Gaudi::Tr::PID::s_mass = { 0.51099891, 105.65837, 139.57018, 493.677, 938.27203 } |
|
staticconstexprprivate |
The documentation for this class was generated from the following files: