The Gaudi Framework  master (181af51f)
Loading...
Searching...
No Matches
PhysicalConstants.h
Go to the documentation of this file.
1/***********************************************************************************\
2* (c) Copyright 1998-2025 CERN for the benefit of the LHCb and ATLAS collaborations *
3* *
4* This software is distributed under the terms of the Apache version 2 licence, *
5* copied verbatim in the file "LICENSE". *
6* *
7* In applying this licence, CERN does not waive the privileges and immunities *
8* granted to it by virtue of its status as an Intergovernmental Organization *
9* or submit itself to any jurisdiction. *
10\***********************************************************************************/
11// -*- C++ -*-
12// ----------------------------------------------------------------------
13// HEP coherent Physical Constants
14//
15// This file has been provided by Geant4 (simulation toolkit for HEP).
16//
17// The basic units are :
18// millimeter
19// nanosecond
20// Mega electron Volt
21// positon charge
22// degree Kelvin
23// amount of substance (mole)
24// luminous intensity (candela)
25// radian
26// steradian
27//
28// Below is a non exhaustive list of Physical CONSTANTS,
29// computed in the Internal HEP System Of Units.
30//
31// Most of them are extracted from the Particle Data Book :
32// Phys. Rev. D volume 50 3-1 (1994) page 1233
33//
34// ...with a meaningful (?) name ...
35//
36// You can add your own constants.
37//
38// Author: M.Maire
39//
40// History:
41//
42// 23.02.96 Created
43// 26.03.96 Added constants for standard conditions of temperature
44// and pressure; also added Gas threshold.
45// 28.04.06 Imported from CLHEP into GaudiKernel -- HD
46
47#pragma once
48
50
51namespace Gaudi {
52 namespace Units {
53
54 constexpr double pi = 3.14159265358979323846;
55 constexpr double twopi = 2 * pi;
56 constexpr double halfpi = pi / 2;
57 constexpr double pi2 = pi * pi;
58
59 constexpr double Avogadro = 6.02214076e+23 / mole;
60
61 //
62 // c = 299.792458 mm/ns
63 // c^2 = 898.7404 (mm/ns)^2
64 //
65 constexpr double c_light = 2.99792458e+8 * m / s;
66 constexpr double c_squared = c_light * c_light;
67
68 //
69 // h = 4.13566e-12 MeV*ns
70 // hbar = 6.58212e-13 MeV*ns
71 // hbarc = 197.32705e-12 MeV*mm
72 //
73 constexpr double h_Planck = 6.62607015e-34 * joule * s;
74 constexpr double hbar_Planck = h_Planck / twopi;
75 constexpr double hbarc = hbar_Planck * c_light;
76 constexpr double hbarc_squared = hbarc * hbarc;
77
78 constexpr double electron_charge = -eplus; // see SystemOfUnits.h
79 constexpr double e_squared = eplus * eplus;
80
81 //
82 // amu_c2 - atomic equivalent mass unit
83 // amu - atomic mass unit
84 //
85 constexpr double electron_mass_c2 = 0.510998910 * MeV;
86 constexpr double proton_mass_c2 = 938.272013 * MeV;
87 constexpr double neutron_mass_c2 = 939.56536 * MeV;
88 constexpr double amu_c2 = 931.494028 * MeV;
89 constexpr double amu = amu_c2 / c_squared;
90
91 //
92 // permeability of free space mu0 = 2.01334e-16 Mev*(ns*eplus)^2/mm
93 // permittivity of free space epsil0 = 5.52636e+10 eplus^2/(MeV*mm)
94 //
95 constexpr double mu0 = 4 * pi * 1.e-7 * henry / m;
96 constexpr double epsilon0 = 1. / ( c_squared * mu0 );
97
98 //
99 // electromagnetic coupling = 1.43996e-12 MeV*mm/(eplus^2)
100 //
101 constexpr double elm_coupling = e_squared / ( 4 * pi * epsilon0 );
106
108
110
111 constexpr double k_Boltzmann = 8.617333e-11 * MeV / kelvin;
112
113 constexpr double STP_Temperature = 273.15 * kelvin;
114 constexpr double STP_Pressure = 1. * atmosphere;
115 constexpr double kGasThreshold = 10. * mg / cm3;
116
117 constexpr double universe_mean_density = 1.e-25 * g / cm3;
118
119 } // namespace Units
120} // namespace Gaudi
constexpr double neutron_mass_c2
constexpr double henry
constexpr double atmosphere
constexpr double kGasThreshold
constexpr double classic_electr_radius
constexpr double STP_Temperature
constexpr double epsilon0
constexpr double electron_Compton_length
constexpr double kelvin
constexpr double pi2
constexpr double twopi
constexpr double electron_mass_c2
constexpr double hbarc_squared
constexpr double eplus
constexpr double twopi_mc2_rcl2
constexpr double alpha_rcl2
constexpr double mole
constexpr double elm_coupling
constexpr double cm3
constexpr double s
constexpr double Bohr_radius
constexpr double pi
constexpr double MeV
constexpr double fine_structure_const
constexpr double k_Boltzmann
constexpr double h_Planck
constexpr double joule
constexpr double halfpi
constexpr double Avogadro
constexpr double e_squared
constexpr double mu0
constexpr double STP_Pressure
constexpr double m
constexpr double amu_c2
constexpr double proton_mass_c2
constexpr double hbarc
constexpr double universe_mean_density
constexpr double g
constexpr double mg
constexpr double hbar_Planck
constexpr double electron_charge
constexpr double c_light
constexpr double c_squared
constexpr double amu
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
Definition __init__.py:1