rivet is hosted by Hepforge, IPPP Durham
Rivet  2.7.0
Constants.hh
1 #ifndef RIVET_MATH_CONSTANTS
2 #define RIVET_MATH_CONSTANTS
3 
4 #include "Rivet/Math/MathHeader.hh"
5 #include "Rivet/Math/Units.hh"
6 
7 namespace Rivet {
8 
9  //
10  //
11  //
12  static const double pi = 3.14159265358979323846;
13  static const double twopi = 2*pi;
14  static const double halfpi = pi/2;
15  static const double pi2 = pi*pi;
16 
17  //
18  //
19  //
20  static const double Avogadro = 6.0221367e+23/mole;
21 
22  //
23  // c = 299.792458 mm/ns
24  // c^2 = 898.7404 (mm/ns)^2
25  //
26  static const double c_light = 2.99792458e+8 * m/s;
27  static const double c_squared = c_light * c_light;
28 
29  //
30  // h = 4.13566e-12 MeV*ns
31  // hbar = 6.58212e-13 MeV*ns
32  // hbarc = 197.32705e-12 MeV*mm
33  //
34  static const double h_Planck = 6.6260755e-34 * joule*s;
35  static const double hbar_Planck = h_Planck/twopi;
36  static const double hbarc = hbar_Planck * c_light;
37  static const double hbarc_squared = hbarc * hbarc;
38 
39  //
40  //
41  //
42  static const double electron_charge = - eplus; // see SystemOfUnits.h
43  static const double e_squared = eplus * eplus;
44 
45  //
46  // amu_c2 - atomic equivalent mass unit
47  // amu - atomic mass unit
48  //
49  static const double electron_mass_c2 = 0.51099906 * MeV;
50  static const double proton_mass_c2 = 938.27231 * MeV;
51  static const double neutron_mass_c2 = 939.56563 * MeV;
52  static const double amu_c2 = 931.49432 * MeV;
53  static const double amu = amu_c2/c_squared;
54 
55  //
56  // permeability of free space mu0 = 2.01334e-16 Mev*(ns*eplus)^2/mm
57  // permittivity of free space epsil0 = 5.52636e+10 eplus^2/(MeV*mm)
58  //
59  static const double mu0 = 4*pi*1.e-7 * henry/m;
60  static const double epsilon0 = 1./(c_squared*mu0);
61 
62  //
63  // electromagnetic coupling = 1.43996e-12 MeV*mm/(eplus^2)
64  //
65  static const double elm_coupling = e_squared/(4*pi*epsilon0);
66  static const double fine_structure_const = elm_coupling/hbarc;
67  static const double classic_electr_radius = elm_coupling/electron_mass_c2;
68  static const double electron_Compton_length = hbarc/electron_mass_c2;
69  static const double Bohr_radius = electron_Compton_length/fine_structure_const;
70 
71  static const double alpha_rcl2 = fine_structure_const
72  *classic_electr_radius
73  *classic_electr_radius;
74 
75  static const double twopi_mc2_rcl2 = twopi*electron_mass_c2
76  *classic_electr_radius
77  *classic_electr_radius;
78  //
79  //
80  //
81  static const double k_Boltzmann = 8.617385e-11 * MeV/kelvin;
82 
83  //
84  //
85  //
86  static const double STP_Temperature = 273.15*kelvin;
87  static const double STP_Pressure = 1.*atmosphere;
88  static const double kGasThreshold = 10.*mg/cm3;
89 
90  //
91  //
92  //
93  static const double universe_mean_density = 1.e-25*g/cm3;
94 
95 }
96 
97 #endif
Definition: ALICE_2010_I880049.cc:13