38 return pm < 1.0e-6 ? 1.0 + pm*pm / 2.0 : std::sqrt(1.0 + pm*pm);
70 return m * (std::sqrt(2.0)*g + (g/2.0)*std::sqrt(g/2.0));
72 return m * std::sqrt(gamma*gamma - 1.0);
84 return std::sqrt(2.0*Tm) + m * (Tm/2.0) * std::sqrt(Tm/2.0);
86 return m * std::sqrt(Tm * (2.0+Tm));
96 Real Tm = E / m - 1.0;
98 return std::sqrt(2.0*Tm) + m * (Tm/2.0) * std::sqrt(Tm/2.0);
100 return m * std::sqrt(Tm * (2.0+Tm));
110 return m * (gamma-1.0);
122 return p*p / (2.0*m) * (1.0 - pm*pm/4.0);
124 return m * (std::sqrt(1.0 + pm*pm) - 1.0);
146 return m + p*p / (2.0*m) * (1.0 - pm*pm/4.0);
148 return m * std::sqrt(1.0 + pm*pm);
161 return pm * (1.0 - pm*pm/2.0);
163 return pm / std::sqrt(1.0 + pm*pm);
175 return pm - 0.5 / (pm*pm*pm);
177 return 1.0 / std::sqrt(1.0 + 1.0/(pm*pm));
271 return std::sqrt( mt*mt + mp*mp + 2*mt*(mp*mp+T) );
Data file of elementary particle properties.
Basic integer and real types.
constexpr Real mass[nPartType]
Definition PartTypes.H:44
pType
Enum of particle types.
Definition PartTypes.H:32
static Real ECM(const Real mt, const Real mp, const Real T)
Compute center of mass energy for collision with fixed target.
Definition SR.H:270
static Real v_from_p(const Real m, const Real p)
Compute velocity from momentum.
Definition SR.H:172
static Real T_from_p(const Real m, const Real p)
Compute kinetic energy from rest mass and momentum.
Definition SR.H:119
static Real E_from_p(const Real m, const Real p)
Compute total energy from rest mass and momentum.
Definition SR.H:143
static Real p_from_E(const Real m, const Real E)
Compute momentum from rest mass and total energy.
Definition SR.H:95
static Real E_from_gamma(const Real m, const Real gamma)
Compute total energy from rest mass and Lorentz factor.
Definition SR.H:133
static Real p_from_gamma(const Real m, const Real gamma)
Compute momentum from rest mass and Lorentz factor.
Definition SR.H:67
static Real gamma_from_T(const Real m, const Real T)
Compute Lorentz factor from rest mass and kinetic energy.
Definition SR.H:47
static Real T_from_gamma(const Real m, const Real gamma)
Compute kinetic energy from rest mass and Lorentz factor.
Definition SR.H:109
static Real gamma_from_E(const Real m, const Real E)
Compute Lorentz factor from rest mass and total energy.
Definition SR.H:57
static Real dT_dp(const Real m, const Real p)
Compute derivative of kinetic energy with respect to momentum.
Definition SR.H:158
static Real p_from_T(const Real m, const Real T)
Compute momentum from rest mass and kinetic energy.
Definition SR.H:81
static Real gamma_from_p(const Real m, const Real p)
Compute Lorentz factor from rest mass and momentum.
Definition SR.H:36
The primary namespace for criptic objects.
Definition AdvancePacket.H:25
double Real
Definition Types.H:38