The Gaudi Framework  master (9da49fa3)
Loading...
Searching...
No Matches
PhysicalConstants.py
Go to the documentation of this file.
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
53import GaudiKernel.SystemOfUnits as Units
54
55#
56#
57#
58pi = 3.14159265358979323846
59twopi = 2 * pi
60halfpi = pi / 2
61pi2 = pi * pi
62
63#
64#
65#
66Avogadro = 6.02214076e23 / Units.mole
67
68#
69# c = 299.792458 mm/ns
70# c^2 = 898.7404 (mm/ns)^2
71#
72c_light = 2.99792458e8 * Units.m / Units.s
73c_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#
80h_Planck = 6.62607015e-34 * Units.joule * Units.s
81hbar_Planck = h_Planck / twopi
82hbarc = hbar_Planck * c_light
83hbarc_squared = hbarc * hbarc
84
85#
86#
87#
88electron_charge = -Units.eplus # see SystemOfUnits.h
89e_squared = Units.eplus * Units.eplus
90
91#
92# amu_c2 - atomic equivalent mass unit
93# amu - atomic mass unit
94#
95electron_mass_c2 = 0.510998910 * Units.MeV
96proton_mass_c2 = 938.272013 * Units.MeV
97neutron_mass_c2 = 939.56536 * Units.MeV
98amu_c2 = 931.494028 * Units.MeV
99amu = 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#
105mu0 = 4 * pi * 1.0e-7 * Units.henry / Units.m
106epsilon0 = 1.0 / (c_squared * mu0)
107
108#
109# electromagnetic coupling = 1.43996e-12 MeV*mm/(eplus^2)
110#
111elm_coupling = e_squared / (4 * pi * epsilon0)
112fine_structure_const = elm_coupling / hbarc
113classic_electr_radius = elm_coupling / electron_mass_c2
114electron_Compton_length = hbarc / electron_mass_c2
115Bohr_radius = electron_Compton_length / fine_structure_const
116
117alpha_rcl2 = fine_structure_const * classic_electr_radius * classic_electr_radius
118
119twopi_mc2_rcl2 = (
120 twopi * electron_mass_c2 * classic_electr_radius * classic_electr_radius
121)
122#
123#
124#
125k_Boltzmann = 8.617333e-11 * Units.MeV / Units.kelvin
126
127#
128#
129#
130STP_Temperature = 273.15 * Units.kelvin
131STP_Pressure = 1.0 * Units.atmosphere
132kGasThreshold = 10.0 * Units.mg / Units.cm3
133
134#
135#
136#
137universe_mean_density = 1.0e-25 * Units.g / Units.cm3