53 throw std::runtime_error(
54 "ParticleProperties::getParticleLifetime: no lifetime for particle \""
Simple bidirectional map with lookup in both directions.
void insert(const Left &left, const Right &right)
Insert or overwrite a left/right association.
right_view right
Right view accessor.
left_view left
Left view accessor.
static std::string getParticleTypeString(const ParticleType &type)
static double getParticleMass(const ParticleType &type)
static const std::map< ParticleType, double > particleCharge_m
static const BiMap< ParticleType, std::string > bmParticleType_s
static double getParticleCharge(const ParticleType &type)
static const std::map< ParticleType, double > particleMass_m
static double getParticleAnomaly(const ParticleType &type)
static double getParticleChargeInCoulomb(const ParticleType &type)
static double getParticleLifetime(const ParticleType &type)
Return the mean rest-frame lifetime [s]. Throws if the particle is stable.
static const std::map< ParticleType, double > particleLifetime_m
static ParticleType getParticleType(const std::string &str)
constexpr double m_xe
The xenon-129 (fully-stripped) rest mass in GeV.
constexpr double m_alpha
The alpha particle rest mass in GeV.
constexpr double m_u
The uranium-238 (fully-stripped) rest mass in GeV.
constexpr double a_mu
The magnetic moment anomaly for muons, no dimension (PDG, (g-2)/2)
constexpr double a_p
The magnetic momentum anomaly for protons, no dimension.
constexpr double m_pi
The charged pion rest mass in GeV (PDG)
constexpr double m_p
The proton rest mass in GeV.
constexpr double m_h3p
The H3+ rest mass in GeV.
constexpr double m_h2p
The H2+ rest mass in GeV.
constexpr double tau_mu
Muon mean lifetime at rest [s] (PDG)
constexpr double q_e
The elementary charge in As.
constexpr double a_e
The magnetic momentum anomaly for electrons, no dimension.
constexpr double m_e
The electron rest mass in GeV.
constexpr double m_hm
The H- rest mass in GeV.
constexpr double m_h
The hydrogen atom rest mass in GeV.
constexpr double m_mu
The muon rest mass in GeV.
constexpr double m_c
The carbon-12 (fully-stripped) rest mass in GeV.
constexpr double m_d
The deuteron rest mass in GeV.
constexpr double tau_pi
Charged pion mean lifetime at rest [s] (PDG)