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
cm_to_mm
static const double cm_to_mm
Definition: PPSUnitConversion.h:17
s_to_ns
static const double s_to_ns
Definition: PPSUnitConversion.h:8
um_to_mm
static const double um_to_mm
Definition: PPSUnitConversion.h:11
ProtonMass
static const double ProtonMass
Definition: PPSUnitConversion.h:5
um_to_cm
static const double um_to_cm
Definition: PPSUnitConversion.h:12
m_to_mm
static const double m_to_mm
Definition: PPSUnitConversion.h:20
mm_to_um
static const double mm_to_um
Definition: PPSUnitConversion.h:13
cm_to_m
static const double cm_to_m
Definition: PPSUnitConversion.h:18
m_to_um
static const double m_to_um
Definition: PPSUnitConversion.h:21
c_light_s
static const double c_light_s
Definition: PPSUnitConversion.h:7
ProtonMassSQ
static const double ProtonMassSQ
Definition: PPSUnitConversion.h:6
urad
static const double urad
Definition: PPSUnitConversion.h:10
cm_to_um
static const double cm_to_um
Definition: PPSUnitConversion.h:16
mm_to_m
static const double mm_to_m
Definition: PPSUnitConversion.h:15
m_to_cm
static const double m_to_cm
Definition: PPSUnitConversion.h:19
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:30
c_light_ns
static const double c_light_ns
Definition: PPSUnitConversion.h:9
mm_to_cm
static const double mm_to_cm
Definition: PPSUnitConversion.h:14