CMS 3D CMS Logo

PPSUnitConversion.h
Go to the documentation of this file.
1 #ifndef PPS_UNITS
2 #define PPS_UNITS
3 #include <cmath>
4 
5 static const double ProtonMass = 0.93827;
6 static const double ProtonMassSQ = pow(ProtonMass, 2);
7 static const double c_light_s = 2.99792458e+8; // m/s;
8 static const double s_to_ns = 1.e9;
9 static const double c_light_ns = c_light_s / s_to_ns;
10 static const double urad = 1. / 1000000.; //micro rad
11 static const double um_to_mm = 0.001;
12 static const double um_to_cm = 0.0001;
13 static const double mm_to_um = 1000.;
14 static const double mm_to_cm = 0.1;
15 static const double mm_to_m = 0.001;
16 static const double cm_to_um = 10000.;
17 static const double cm_to_mm = 10.;
18 static const double cm_to_m = 0.01;
19 static const double m_to_cm = 100.;
20 static const double m_to_mm = 1000.;
21 static const double m_to_um = 1000000.;
22 #endif
static const double c_light_s
static const double s_to_ns
static const double urad
static const double cm_to_um
static const double c_light_ns
static const double m_to_cm
static const double um_to_mm
static const double m_to_um
static const double um_to_cm
static const double ProtonMass
static const double m_to_mm
static const double mm_to_um
static const double mm_to_cm
static const double mm_to_m
static const double cm_to_m
static const double ProtonMassSQ
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:30
static const double cm_to_mm