ATLAS Offline Software
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 # 06.20.25 Updated Avogardo, h_Planck, k_Boltzmann
52 # -----
53 
54 import AthenaCommon.SystemOfUnits as Units
55 
56 #
57 #
58 #
59 pi = 3.14159265358979323846
60 twopi = 2 * pi
61 halfpi = pi / 2
62 pi2 = pi * pi
63 
64 #
65 #
66 #
67 Avogadro = 6.02214076e23 / Units.mole
68 
69 #
70 # c = 299.792458 mm/ns
71 # c^2 = 898.7404 (mm/ns)^2
72 #
73 c_light = 2.99792458e8 * Units.m / Units.s
74 c_squared = c_light * c_light
75 
76 #
77 # h = 4.13566e-12 MeV*ns
78 # hbar = 6.58212e-13 MeV*ns
79 # hbarc = 197.32705e-12 MeV*mm
80 #
81 h_Planck = 6.62607015e-34 * Units.joule * Units.s
82 hbar_Planck = h_Planck / twopi
83 hbarc = hbar_Planck * c_light
84 hbarc_squared = hbarc * hbarc
85 
86 #
87 #
88 #
89 electron_charge = -Units.eplus # see SystemOfUnits.h
90 e_squared = Units.eplus * Units.eplus
91 
92 #
93 # amu_c2 - atomic equivalent mass unit
94 # amu - atomic mass unit
95 #
96 electron_mass_c2 = 0.510998910 * Units.MeV
97 proton_mass_c2 = 938.272013 * Units.MeV
98 neutron_mass_c2 = 939.56536 * Units.MeV
99 amu_c2 = 931.494028 * Units.MeV
100 amu = amu_c2 / c_squared
101 
102 #
103 # permeability of free space mu0 = 2.01334e-16 Mev*(ns*eplus)^2/mm
104 # permittivity of free space epsil0 = 5.52636e+10 eplus^2/(MeV*mm)
105 #
106 mu0 = 4 * pi * 1.0e-7 * Units.henry / Units.m
107 epsilon0 = 1.0 / (c_squared * mu0)
108 
109 #
110 # electromagnetic coupling = 1.43996e-12 MeV*mm/(eplus^2)
111 #
112 elm_coupling = e_squared / (4 * pi * epsilon0)
113 fine_structure_const = elm_coupling / hbarc
114 classic_electr_radius = elm_coupling / electron_mass_c2
115 electron_Compton_length = hbarc / electron_mass_c2
116 Bohr_radius = electron_Compton_length / fine_structure_const
117 
118 alpha_rcl2 = fine_structure_const * classic_electr_radius * classic_electr_radius
119 
120 twopi_mc2_rcl2 = (
121  twopi * electron_mass_c2 * classic_electr_radius * classic_electr_radius
122 )
123 #
124 #
125 #
126 k_Boltzmann = 8.617333e-11 * Units.MeV / Units.kelvin
127 
128 #
129 #
130 #
131 STP_Temperature = 273.15 * Units.kelvin
132 STP_Pressure = 1.0 * Units.atmosphere
133 kGasThreshold = 10.0 * Units.mg / Units.cm3
134 
135 #
136 #
137 #
138 universe_mean_density = 1.0e-25 * Units.g / Units.cm3
SystemOfUnits