8 #ifndef UTIL_PHYSICALCONSTANTS_H 9 #define UTIL_PHYSICALCONSTANTS_H 59 constexpr
double kc = 29.9792458;
79 template <
typename T =
double>
80 inline constexpr
T pi() {
return 3.14159265358979323846264338327950288L; }
93 #endif //UTIL_PHYSICALCONSTANTS_H Namespace for general, non-LArSoft-specific utilities.
constexpr int kBogusI
obviously bogus integer value
constexpr double keVToMeV
1e6 eV = 1 MeV
constexpr double kGeVToElectrons
23.6eV per ion pair, 1e9 eV/GeV
constexpr double kc
Speed of light in vacuum in LArSoft units [cm/ns].
constexpr double kModBoxB
Modified Box Beta in g/(MeV cm²)*kV/cm.
constexpr T DegreesToRadians(T angle)
Converts the argument angle from degrees into radians.
constexpr double kCentimeterToMeter
constexpr double kMeterToKilometer
1000 m = 1 km
constexpr double kKilometerToMeter
constexpr double kMeVToeV
constexpr double quietCompiler
constexpr float kBogusF
obviously bogus float value
constexpr double kRecombk
constexpr T pi()
Returns the constant pi (up to 35 decimal digits of precision)
constexpr T RadiansToDegrees(T angle)
Converts the argument angle from radians into degrees ( )
constexpr double kBogusD
obviously bogus double value
constexpr double kRecombA
A constant.
constexpr double kModBoxA
Modified Box Alpha.
constexpr double kMeterToCentimeter
1 m = 100 cm