23 static constexpr std::array<double, 5>
s_mass = { 0.51099891, 105.65837, 139.57018, 493.677, 938.27203 };
40 throw std::runtime_error(
"invalid PID" );
76 throw std::runtime_error(
"Calling toString on invalid PID" );
80 friend std::ostream&
toStream(
const PID& pid, std::ostream& os ) {
81 return os << std::quoted(
toString( pid ),
'\'' );
87 if ( in !=
toString( ref ) )
continue;
static constexpr PID Kaon()
constexpr bool isMuon() const
friend std::ostream & operator<<(std::ostream &os, const PID &pid)
static constexpr std::array< double, 5 > s_mass
constexpr bool isKaon() const
constexpr double mass() const
constexpr bool isElectron() const
friend const char * toString(PID pid)
friend StatusCode parse(PID &pid, std::string_view in)
static constexpr validated_pid_t validate(int id)
friend std::ostream & toStream(const PID &pid, std::ostream &os)
constexpr bool isProton() const
constexpr PID(validated_pid_t pid)
static constexpr PID Muon()
static constexpr PID Pion()
constexpr bool isPion() const
constexpr PID(const int id)
static constexpr PID Proton()
static constexpr PID Electron()
This class is used for returning status codes from appropriate routines.
constexpr static const auto SUCCESS
constexpr static const auto FAILURE
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...