The Gaudi Framework  master (37c0b60a)
PhysicalConstants.py
Go to the documentation of this file.
1 
15 
16 # This script is a direct adaptation of CLHEP/Units/PhysicalConstants.h
17 # and the following is the originial CLHEP comment:
18 #
19 # -----
20 # This file has been provided by Geant4 (simulation toolkit for HEP).
21 #
22 # The basic units are :
23 # millimeter
24 # nanosecond
25 # Mega electron Volt
26 # positon charge
27 # degree Kelvin
28 # amount of substance (mole)
29 # luminous intensity (candela)
30 # radian
31 # steradian
32 #
33 # Below is a non exhaustive list of Physical CONSTANTS,
34 # computed in the Internal HEP System Of Units.
35 #
36 # Most of them are extracted from the Particle Data Book :
37 # Phys. Rev. D volume 50 3-1 (1994) page 1233
38 #
39 # ...with a meaningful (?) name ...
40 #
41 # You can add your own constants.
42 #
43 # Author: M.Maire
44 #
45 # History:
46 #
47 # 23.02.96 Created
48 # 26.03.96 Added constants for standard conditions of temperature
49 # and pressure; also added Gas threshold.
50 # 08.07.20 Updated
51 # -----
52 
53 import GaudiKernel.SystemOfUnits as Units
54 
55 #
56 #
57 #
58 pi = 3.14159265358979323846
59 twopi = 2 * pi
60 halfpi = pi / 2
61 pi2 = pi * pi
62 
63 #
64 #
65 #
66 Avogadro = 6.0221367e23 / Units.mole
67 
68 #
69 # c = 299.792458 mm/ns
70 # c^2 = 898.7404 (mm/ns)^2
71 #
72 c_light = 2.99792458e8 * Units.m / Units.s
73 c_squared = c_light * c_light
74 
75 #
76 # h = 4.13566e-12 MeV*ns
77 # hbar = 6.58212e-13 MeV*ns
78 # hbarc = 197.32705e-12 MeV*mm
79 #
80 h_Planck = 6.62606896e-34 * Units.joule * Units.s
81 hbar_Planck = h_Planck / twopi
82 hbarc = hbar_Planck * c_light
83 hbarc_squared = hbarc * hbarc
84 
85 #
86 #
87 #
88 electron_charge = -Units.eplus # see SystemOfUnits.h
89 e_squared = Units.eplus * Units.eplus
90 
91 #
92 # amu_c2 - atomic equivalent mass unit
93 # amu - atomic mass unit
94 #
95 electron_mass_c2 = 0.510998910 * Units.MeV
96 proton_mass_c2 = 938.272013 * Units.MeV
97 neutron_mass_c2 = 939.56536 * Units.MeV
98 amu_c2 = 931.494028 * Units.MeV
99 amu = amu_c2 / c_squared
100 
101 #
102 # permeability of free space mu0 = 2.01334e-16 Mev*(ns*eplus)^2/mm
103 # permittivity of free space epsil0 = 5.52636e+10 eplus^2/(MeV*mm)
104 #
105 mu0 = 4 * pi * 1.0e-7 * Units.henry / Units.m
106 epsilon0 = 1.0 / (c_squared * mu0)
107 
108 #
109 # electromagnetic coupling = 1.43996e-12 MeV*mm/(eplus^2)
110 #
111 elm_coupling = e_squared / (4 * pi * epsilon0)
112 fine_structure_const = elm_coupling / hbarc
113 classic_electr_radius = elm_coupling / electron_mass_c2
114 electron_Compton_length = hbarc / electron_mass_c2
115 Bohr_radius = electron_Compton_length / fine_structure_const
116 
117 alpha_rcl2 = fine_structure_const * classic_electr_radius * classic_electr_radius
118 
119 twopi_mc2_rcl2 = (
120  twopi * electron_mass_c2 * classic_electr_radius * classic_electr_radius
121 )
122 #
123 #
124 #
125 k_Boltzmann = 8.617343e-11 * Units.MeV / Units.kelvin
126 
127 #
128 #
129 #
130 STP_Temperature = 273.15 * Units.kelvin
131 STP_Pressure = 1.0 * Units.atmosphere
132 kGasThreshold = 10.0 * Units.mg / Units.cm3
133 
134 #
135 #
136 #
137 universe_mean_density = 1.0e-25 * Units.g / Units.cm3
GaudiKernel.SystemOfUnits
Definition: SystemOfUnits.py:1