Commit 2a67a1b0 authored by Gabriele Cosmo's avatar Gabriele Cosmo
Browse files

Added new units and constants (by M.Maire)...

parent df73e1d4
2021-05-18 Gabriele Cosmo <Gabriele.Cosmo@cern.ch>
* Updated values in SystemOfUnits.h and PhysicalConstants.h (M.Maire):
Added units: minute, hour, day, year and millielectronvolt.
Added constants: Bohr_magneton and nuclear_magneton.
==============================
19.01.21 Release CLHEP-2.4.4.1
==============================
......
......@@ -33,9 +33,10 @@
// 23.02.96 Created
// 26.03.96 Added constants for standard conditions of temperature
// and pressure; also added Gas threshold.
// 29.04.08 use PDG 2006 values
// 03.11.08 use PDG 2008 values
// 17.07.20 use PDG 2019 values
// 29.04.08 Use PDG 2006 values
// 03.11.08 Use PDG 2008 values
// 17.07.20 Use PDG 2019 values
// 06.05.21 Added Bohr_magneton and nuclear_magneton constants
#ifndef HEP_PHYSICAL_CONSTANTS_H
#define HEP_PHYSICAL_CONSTANTS_H
......@@ -107,6 +108,10 @@ static constexpr double alpha_rcl2 = fine_structure_const
static constexpr double twopi_mc2_rcl2 = twopi*electron_mass_c2
*classic_electr_radius
*classic_electr_radius;
static constexpr double Bohr_magneton = (eplus*hbarc*c_light)/(2*electron_mass_c2);
static constexpr double nuclear_magneton = (eplus*hbarc*c_light)/(2*proton_mass_c2);
//
//
//
......
......@@ -43,6 +43,7 @@
// 19.08.15 added liter and its sub units (mma)
// 12.01.16 added symbols for microsecond (us) and picosecond (ps) (mma)
// 17.07.20 use PDG 2019 value of e_SI
// 06.05.21 added minute, hour, day, year and millielectronvolt (mma)
#ifndef HEP_SYSTEM_OF_UNITS_H
#define HEP_SYSTEM_OF_UNITS_H
......@@ -143,6 +144,11 @@ namespace CLHEP {
static constexpr double microsecond = 1.e-6 *second;
static constexpr double picosecond = 1.e-12*second;
static constexpr double minute = 60*second;
static constexpr double hour = 60*minute;
static constexpr double day = 24*hour;
static constexpr double year = 365*day;
static constexpr double hertz = 1./second;
static constexpr double kilohertz = 1.e+3*hertz;
static constexpr double megahertz = 1.e+6*hertz;
......@@ -170,6 +176,7 @@ namespace CLHEP {
static constexpr double gigaelectronvolt = 1.e+3*megaelectronvolt;
static constexpr double teraelectronvolt = 1.e+6*megaelectronvolt;
static constexpr double petaelectronvolt = 1.e+9*megaelectronvolt;
static constexpr double millielectronvolt = 1.e-9*megaelectronvolt;
static constexpr double joule = electronvolt/e_SI;// joule = 6.24150 e+12 * MeV
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment