-
Notifications
You must be signed in to change notification settings - Fork 1
/
constants.py
100 lines (86 loc) · 2.55 KB
/
constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Table of physical constants
from numpy import pi, exp
# Default values are in s, cm, MeV
# Alternate values provided for common constants
# Set the base units
GeV = 1.0
MeV = 1.0e-3
keV = 1e-6
eV = 1e-9
cm = 1.0
kilometers = 1e5
ang = 1e-8
sec = 1.0
# Dimensionless constants
ALPHA = 1/137
kPI = 3.14159
# Fundamental constants
C_LIGHT = 2.99792458e10 * (cm / sec) # Speed of light
HBAR = 6.58212e-22 * MeV * sec # Reduced Planck's Constant (hbar)
HBARC = 1.97236e-11 * MeV * cm # hbar * c
HC = 1.239e-10 * MeV * cm # h c
KB = 8.617333262145e-11 * MeV # Boltzmann's constant in MeV K^-1
MU0 = 1.25663706212e-6 # Permeability of vacuum in kg / (A * s^2)
CHARGE_COULOMBS = 1.602176634e-19 # elementary charge in coulombs
# Scientific Constants
AVOGADRO = 6.022e23
# Particle Masses
M_E = 0.511 * MeV # electron
M_P = 938.0 * MeV # proton
M_MU = 105.658369 * MeV # muon
M_TAU = 1.77699e3 * MeV # tau
M_U = 2.2 * MeV # up quark
M_D = 4.7 * MeV # down quark
M_C = 1.280e3 * MeV # charm quark
M_PI = 139.57 * MeV # pi+ / pi-
M_PI0 = 134.98 * MeV # pi0
M_ETA = 547.862 * MeV # eta
M_N = 939.56 * MeV # neutron
M_A = 1014 * MeV # axial mass
M_K = 493.677 * MeV # charged Kaon
M_T = 172.76 * GeV
M_H = 125.35 * GeV
VEV_H = 246.22 * GeV
M_Z = 91.1876 * GeV
M_W = 80.377 * GeV
M_PL = 1.22e19 * GeV
# Cosmological constants
GAMMA_EULER = 0.5772
GSTAR_SM = 107.75
GSTAR_SM_LE = 3.36
S0_SM = 2891.2 * HBARC**3 # cm^-3 --> GeV^3 entropy density today
HUBBLE = 67.4 * HBAR * kilometers / 3.086e24 # km / (s Mpc) -> GeV
T0_SM = 2.3e-4 * eV # temperature today in GeV
TIME_TODAY_SEC = 5.0e17
OMEGA_MATTER = 0.27
OMEGA_BARYON = 0.17 * OMEGA_MATTER
OMEGA_DM = OMEGA_MATTER - OMEGA_BARYON
# conversion between units
GEV_PER_G = 5.6095887e23 # MeV/kg
MEV_PER_KG = 5.6095887e29 # MeV/kg
MEV_PER_G = 5.6095887e26 # MeV/g
MEV_PER_HZ = 6.58e-22 # 1 s^-1 = 6.58e-22 MeV
CM_PER_ANG = 1e-8 # cm to angstroms
S_PER_DAY = 3600*24
# SM parameters
SSW = 0.2312 # Sine-squared of the Weinberg angle
G_F = 1.16638e-11 # MeV^-2
CABIBBO = 0.9743 # Cosine of the Cabibbo angle
R_E = 2.81794e-13 # classical electron radius in cm
V_UD = 0.9737 # ckm ud
V_US = 0.2245 # ckm us
F_PI = 130.2 * MeV # pion decay constant
F_K = 155.7 * MeV # kaon decay constant
# Lifetimes
KAON_LIFETIME = 1.238e-8 * sec
KSHORT_LIFETIME = 8.954e-11 * sec
KLONG_LIFETIME = 5.116e-8 * sec
PION_LIFETIME = 2.6e-8 * sec
PI0_LIFETIME = 8.5e-17 * sec
# Total Widths in MeV
PION_WIDTH = 2.524e-14 * MeV
PI0_WIDTH = 1.0
KAON_WIDTH = 5.317e-14 * MeV
# Astronomical constants
L_SUN_EARTH = 15.13e12 # cm
R_SUN = 6.957e10 # cm