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