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