Jpp 21.0.0
the software that should make you happy
Loading...
Searching...
No Matches
JPhysics/JConstants.hh
Go to the documentation of this file.
1#ifndef __JPHYSICS__JCONSTANTS__
2#define __JPHYSICS__JCONSTANTS__
3
4#include <math.h>
5
6#include "JMath/JConstants.hh"
7
8
9/**
10 * \file
11 * Physics constants.
12 * \author mdejong
13 */
14namespace JPHYSICS {}
15namespace JPP { using namespace JPHYSICS; }
16
17namespace JPHYSICS {
18
19 using JMATH::PI;
20 using JMATH::EULER;
21
22 /**
23 * Physics constants.
24 */
25 static const double C = 0.299792458; //!< Speed of light in vacuum [m/ns]
26 static const double C_INVERSE = 1.0/C; //!< Inverse speed of light in vacuum [ns/m]
27 static const double AVOGADRO = 6.0221415e23; //!< Avogadro's number
28 static const double NUCLEON_MOLAR_MASS = 1.0; //!< nucleon molar mass [g/mol]
29 static const double H = 4.13566733e-15; //!< Planck constant [eV s]
30 static const double HBAR = H/(2*PI); //!< Planck constant [eV s]
31 static const double HBARC = HBAR*C*1.0e9; //!< Planck constant [eV m]
32 static const double ALPHA_ELECTRO_MAGNETIC = 1.0/137.036; //!< Electro-Magnetic coupling constant
33 static const double THETA_MCS = 13.6e-3; //!< Multiple Coulomb scattering constant [GeV]
34 static const double FERMI_CONSTANT = 1.1663789e-5; //!< Fermi coupling constant [GeV^-2]
35
36 /**
37 * Geophysics constants.
38 */
39 static const double R_EARTH_KM = 6371; //!< Radius of the Earth [m]
40 static const double DENSITY_EARTH = 5.51; //!< Average density of the Earth [gr/cm³]
41
42 /**
43 * Fixed environment values.
44 */
45 static const double DENSITY_SEA_WATER = 1.038; //!< Density of sea water [g/cm^3]
46 static const double DENSITY_ROCK = 2.65; //!< Density of rock [g/cm^3]
47 static const double SALINITY_SEA_WATER = 0.035; //!< Salinity of sea water
48 static const double INDEX_OF_REFRACTION_WATER = 1.3800851282; //!< Average index of refraction of water corresponding to the group velocity
49 static const double X0_WATER_M = 0.36; //!< Radiation length pure water [m]
50
51 /**
52 * Derived quantities of optical medium.
53 */
54 static const double TAN_THETA_C_WATER = sqrt((INDEX_OF_REFRACTION_WATER - 1.0) * (INDEX_OF_REFRACTION_WATER + 1.0)); //!< Average tangent corresponding to the group velocity
55 static const double COS_THETA_C_WATER = 1.0 / INDEX_OF_REFRACTION_WATER; //!< Average cosine corresponding to the group velocity
56 static const double SIN_THETA_C_WATER = TAN_THETA_C_WATER * COS_THETA_C_WATER; //!< Average sine corresponding to the group velocity
57 static const double KAPPA_WATER = 0.96; //!< Average R-dependence of arrival time of Cherenkov light
58
59 /**
60 * Particle masses.
61 * Note that the neutrino masses are set to zero.
62 */
63 static const double MASS_PHOTON = 0.0; //!< photon mass [GeV]
64
65 static const double MASS_ELECTRON_NEUTRINO = 0.0; //!< electron neutrino mass [GeV]
66 static const double MASS_MUON_NEUTRINO = 0.0; //!< muon neutrino mass [GeV]
67 static const double MASS_TAU_NEUTRINO = 0.0; //!< tau neutrino mass [GeV]
68
69 static const double MASS_ELECTRON = 0.510998946e-3; //!< electron mass [GeV]
70 static const double MASS_MUON = 0.1056583745; //!< muon mass [GeV]
71 static const double MASS_TAU = 1.77682; //!< tau mass [GeV]
72
73 static const double MASS_UP_QUARK = 0.00216; //!< up quark mass [GeV]
74 static const double MASS_DOWN_QUARK = 0.00470; //!< down quark mass [GeV]
75 static const double MASS_STRANGE_QUARK = 0.0935; //!< strange quark mass [GeV]
76 static const double MASS_CHARM_QUARK = 1.2730; //!< charm quark mass [GeV]
77 static const double MASS_BOTTOM_QUARK = 4.183; //!< bottom quark mass [GeV]
78 static const double MASS_TOP_QUARK = 172.56; //!< top quark mass [GeV]
79
80 static const double MASS_NEUTRAL_PION = 0.1349766; //!< pi_0 mass [GeV]
81 static const double MASS_CHARGED_PION = 0.13957018; //!< pi^+/- mass [GeV]
82 static const double MASS_NEUTRAL_KAON = 0.497614; //!< K_0 mass [GeV]
83 static const double MASS_CHARGED_KAON = 0.493677; //!< K^+/- mass [GeV]
84 static const double MASS_NEUTRAL_RHO = 0.77526; //!< rho_0 mass [GeV]
85 static const double MASS_CHARGED_RHO = 0.77511; //!< rho^+/- mass [GeV]
86 static const double MASS_NEUTRAL_D = 1.86483; //!< D_0 mass [GeV]
87 static const double MASS_CHARGED_D = 1.86965; //!< D^+/- mass [GeV]
88 static const double MASS_CHARGED_D_S = 1.96834; //!< D_s^+/- mass [GeV]
89
90 static const double MASS_PROTON = 0.9382720813; //!< proton mass [GeV]
91 static const double MASS_NEUTRON = 0.9395654133; //!< neutron mass [GeV]
92 static const double MASS_DELTA_1232 = 1.232; //!< Delta (1232) mass [GeV]
93 static const double MASS_LAMBDA = 1.115683; //!< Lambda mass [GeV]
94 static const double MASS_NEUTRAL_SIGMA = 1.192642; //!< Sigma_0 mass [GeV]
95 static const double MASS_CHARGED_SIGMA = 1.18937; //!< Sigma^+/- mass [GeV]
96 static const double MASS_NEUTRAL_XI = 1.31486; //!< Xi_0 mass [GeV]
97 static const double MASS_CHARGED_XI = 1.32171; //!< Xi^+/- mass [GeV]
98 static const double MASS_CHARGED_OMEGA = 1.67245; //!< Omega^+/- mass [GeV]
99 static const double MASS_CHARGED_LAMBDA_C = 2.28646; //!< Lambda_c^+/- mass [GeV]
100 static const double MASS_DOUBLYCHARGED_SIGMA_C = 2.45397; //!< Sigma_c^++/-- mass [GeV]
101 static const double MASS_CHARGED_SIGMA_C = 2.4529; //!< Sigma_c^+/- mass [GeV]
102 static const double MASS_NEUTRAL_SIGMA_C = 2.45375; //!< Sigma_c_0 mass [GeV]
103 static const double MASS_CHARGED_XI_C = 2.46793; //!< Xi_c^+/- mass [GeV]
104 static const double MASS_NEUTRAL_XI_C = 2.47091; //!< Xi_c_0 mass [GeV]
105 static const double MASS_NEUTRAL_OMEGA_C = 2.6952; //!< Omega_c_0 mass [GeV]
106 static const double MASS_NEUTRAL_B = 5.27958; //!< B_0 mass [GeV]
107 static const double MASS_CHARGED_B = 5.27926; //!< B^+/- mass [GeV]
108 static const double MASS_NEUTRAL_B_S = 5.36677; //!< B_s^0 mass [GeV]
109 static const double MASS_NEUTRAL_LAMBDA_B = 5.6194; //!< Lambda_b^0 mass [GeV]
110 static const double MASS_NEUTRAL_XI_B = 5.7878; //!< Xi_b^0 mass [GeV]
111 static const double MASS_CHARGED_XI_B = 5.7911; //!< Xi_b^+/- mass [GeV]
112 static const double MASS_CHARGED_OMEGA_B = 6.071; //!< Omega_b^+/- mass [GeV]
113 static const double MASS_CHARGED_B_C = 6.2756; //!< B_c^+/- mass [GeV]
114
115 static const double MASS_W_BOSON = 80.3692; //!< W^+/- mass [GeV]
116 static const double MASS_Z_BOSON = 91.1880; //!< Z^0 mass [GeV]
117
118 static const double MASS_HIGGS_BOSON = 125.20; //!< Higgs mass [GeV]
119
120 /**
121 * Get speed of light.
122 *
123 * \return speed of light [m/ns]
124 */
125 inline const double getSpeedOfLight()
126 {
127 return C;
128 }
129
130
131 /**
132 * Get inverse speed of light.
133 *
134 * \return inverse speed of light [ns/m]
135 */
136 inline const double getInverseSpeedOfLight()
137 {
138 return C_INVERSE;
139 }
140
141
142 /**
143 * Get average index of refraction of water corresponding to group velocity.
144 *
145 * \return index of refraction
146 */
147 inline double getIndexOfRefraction()
148 {
150 }
151
152
153 /**
154 * Get average index of refraction of water corresponding to phase velocity.
155 *
156 * \return index of refraction
157 */
159 {
160 return 1.35;
161 }
162
163
164 /**
165 * Get average tangent of Cherenkov angle of water corresponding to group velocity.
166 *
167 * \return tan(theta_C)
168 */
169 inline double getTanThetaC()
170 {
171 return TAN_THETA_C_WATER;
172 }
173
174
175 /**
176 * Get average cosine of Cherenkov angle of water corresponding to group velocity.
177 *
178 * \return cos(theta_C)
179 */
180 inline double getCosThetaC()
181 {
182 return COS_THETA_C_WATER;
183 }
184
185
186 /**
187 * Get average sine of Cherenkov angle of water corresponding to group velocity.
188 *
189 * \return sin(theta_C)
190 */
191 inline double getSinThetaC()
192 {
193 return SIN_THETA_C_WATER;
194 }
195
196
197 /**
198 * Get average R-dependence of arrival time of Cherenkov light (a.k.a. kappa).
199 *
200 * \return kappa
201 */
202 inline double getKappaC()
203 {
204 return KAPPA_WATER;
205 }
206
207
208 /**
209 * Get fine-structure constant.
210 *
211 * \return reduced fine-structure constant
212 */
214 {
216 }
217
218
219 /**
220 * Get reduced fine-structure constant.
221 *
222 * \return reduced fine-structure constant
223 */
225 {
226 static const double ALPHA_EM_REDUCED = 0.5 * ALPHA_ELECTRO_MAGNETIC / PI;
227
228 return ALPHA_EM_REDUCED;
229 }
230
231
232 /**
233 * Get squared sine of weak mixing angle.
234 *
235 * \return cosine of weak mixing angle
236 */
237 inline double getSin2ThetaW()
238 {
239 static const double SIN2_THETA_W = ((1.0 + MASS_W_BOSON / MASS_Z_BOSON) *
240 (1.0 - MASS_W_BOSON / MASS_Z_BOSON));
241 return SIN2_THETA_W;
242 }
243
244
245 /**
246 * Get squared cosine of weak mixing angle.
247 *
248 * \return cosine of weak mixing angle
249 */
250 inline double getCos2ThetaW()
251 {
252 static const double COS2_THETA_W = 1.0 - getSin2ThetaW();
253
254 return COS2_THETA_W;
255 }
256
257
258 /**
259 * Get leading-order Veltman parameter (\f$Delta rho\f$).
260 *
261 * \return Veltman parameter (leading top correction)
262 */
263 inline double getVeltmanParameter()
264 {
265 static const double DELTA_RHO = (3.0 * FERMI_CONSTANT *
267 (8.0 * PI * PI * sqrt(2.0)));
268 return DELTA_RHO;
269 }
270}
271
272#endif
Mathematical constants.
static const double EULER
Euler number.
static const double PI
Mathematical constants.
Auxiliary methods for light properties of deep-sea water.
static const double MASS_STRANGE_QUARK
strange quark mass [GeV]
static const double SALINITY_SEA_WATER
Salinity of sea water.
static const double R_EARTH_KM
Geophysics constants.
static const double MASS_PHOTON
Particle masses.
static const double ALPHA_ELECTRO_MAGNETIC
Electro-Magnetic coupling constant.
static const double MASS_CHARGED_XI_B
Xi_b^+/- mass [GeV].
static const double MASS_CHARGED_B_C
B_c^+/- mass [GeV].
static const double MASS_CHARM_QUARK
charm quark mass [GeV]
double getKappaC()
Get average R-dependence of arrival time of Cherenkov light (a.k.a.
static const double MASS_NEUTRAL_SIGMA_C
Sigma_c_0 mass [GeV].
static const double DENSITY_SEA_WATER
Fixed environment values.
static const double MASS_CHARGED_OMEGA
Omega^+/- mass [GeV].
static const double MASS_CHARGED_OMEGA_B
Omega_b^+/- mass [GeV].
static const double TAN_THETA_C_WATER
Derived quantities of optical medium.
static const double MASS_W_BOSON
W^+/- mass [GeV].
double getSin2ThetaW()
Get squared sine of weak mixing angle.
static const double DENSITY_ROCK
Density of rock [g/cm^3].
static const double MASS_CHARGED_LAMBDA_C
Lambda_c^+/- mass [GeV].
static const double MASS_ELECTRON
electron mass [GeV]
static const double DENSITY_EARTH
Average density of the Earth [gr/cm³].
static const double MASS_Z_BOSON
Z^0 mass [GeV].
static const double MASS_LAMBDA
Lambda mass [GeV].
static const double MASS_TAU_NEUTRINO
tau neutrino mass [GeV]
static const double MASS_DELTA_1232
Delta (1232) mass [GeV].
static const double INDEX_OF_REFRACTION_WATER
Average index of refraction of water corresponding to the group velocity.
static const double HBAR
Planck constant [eV s].
static const double MASS_NEUTRAL_D
D_0 mass [GeV].
static const double MASS_CHARGED_XI
Xi^+/- mass [GeV].
double getIndexOfRefraction()
Get average index of refraction of water corresponding to group velocity.
static const double MASS_TOP_QUARK
top quark mass [GeV]
double getVeltmanParameter()
Get leading-order Veltman parameter ( ).
static const double MASS_CHARGED_XI_C
Xi_c^+/- mass [GeV].
static const double H
Planck constant [eV s].
double getCosThetaC()
Get average cosine of Cherenkov angle of water corresponding to group velocity.
static const double MASS_CHARGED_KAON
K^+/- mass [GeV].
static const double MASS_ELECTRON_NEUTRINO
electron neutrino mass [GeV]
static const double MASS_CHARGED_SIGMA
Sigma^+/- mass [GeV].
static const double MASS_MUON_NEUTRINO
muon neutrino mass [GeV]
static const double MASS_CHARGED_D
D^+/- mass [GeV].
static const double MASS_NEUTRAL_B
B_0 mass [GeV].
static const double MASS_NEUTRAL_LAMBDA_B
Lambda_b^0 mass [GeV].
static const double MASS_TAU
tau mass [GeV]
double getFineStructureConstant()
Get fine-structure constant.
static const double SIN_THETA_C_WATER
Average sine corresponding to the group velocity.
static const double HBARC
Planck constant [eV m].
static const double MASS_NEUTRAL_RHO
rho_0 mass [GeV]
const double getInverseSpeedOfLight()
Get inverse speed of light.
static const double MASS_CHARGED_SIGMA_C
Sigma_c^+/- mass [GeV].
static const double FERMI_CONSTANT
Fermi coupling constant [GeV^-2].
static const double MASS_CHARGED_RHO
rho^+/- mass [GeV]
double getTanThetaC()
Get average tangent of Cherenkov angle of water corresponding to group velocity.
static const double MASS_NEUTRAL_B_S
B_s^0 mass [GeV].
static const double X0_WATER_M
Radiation length pure water [m].
static const double MASS_DOUBLYCHARGED_SIGMA_C
Sigma_c^++/– mass [GeV]
static const double MASS_HIGGS_BOSON
Higgs mass [GeV].
static const double MASS_CHARGED_B
B^+/- mass [GeV].
static const double AVOGADRO
Avogadro's number.
static const double MASS_DOWN_QUARK
down quark mass [GeV]
static const double MASS_NEUTRAL_PION
pi_0 mass [GeV]
static const double MASS_NEUTRAL_XI_B
Xi_b^0 mass [GeV].
double getSinThetaC()
Get average sine of Cherenkov angle of water corresponding to group velocity.
static const double MASS_NEUTRAL_XI_C
Xi_c_0 mass [GeV].
static const double MASS_CHARGED_D_S
D_s^+/- mass [GeV].
static const double MASS_CHARGED_PION
pi^+/- mass [GeV]
static const double MASS_UP_QUARK
up quark mass [GeV]
static const double MASS_BOTTOM_QUARK
bottom quark mass [GeV]
double getReducedFineStructureConstant()
Get reduced fine-structure constant.
const double getSpeedOfLight()
Get speed of light.
static const double MASS_NEUTRAL_KAON
K_0 mass [GeV].
static const double MASS_NEUTRAL_XI
Xi_0 mass [GeV].
static const double NUCLEON_MOLAR_MASS
nucleon molar mass [g/mol]
double getCos2ThetaW()
Get squared cosine of weak mixing angle.
double getIndexOfRefractionPhase()
Get average index of refraction of water corresponding to phase velocity.
static const double THETA_MCS
Multiple Coulomb scattering constant [GeV].
static const double C_INVERSE
Inverse speed of light in vacuum [ns/m].
static const double MASS_NEUTRAL_SIGMA
Sigma_0 mass [GeV].
static const double MASS_NEUTRAL_OMEGA_C
Omega_c_0 mass [GeV].
static const double COS_THETA_C_WATER
Average cosine corresponding to the group velocity.
static const double C
Physics constants.
static const double KAPPA_WATER
Average R-dependence of arrival time of Cherenkov light.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).