Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-22 11:02:47

0001 /***************************************************************************
0002  *
0003  * $Id: PhysicalConstants.h,v 1.4 2015/05/19 20:36:18 perev Exp $
0004  *
0005  * Author: CLHEP (see below)
0006  ***************************************************************************
0007  *
0008  * Description:  Taken as-is from CLHEP.
0009  *               Modified original CVS-Id to retain version info. 
0010  ***************************************************************************
0011  *
0012  * $Log: PhysicalConstants.h,v $
0013  * Revision 1.4  2015/05/19 20:36:18  perev
0014  * WarnOff
0015  *
0016  * Revision 1.3  2012/06/11 15:29:26  fisyak
0017  * std namespace
0018  *
0019  * Revision 1.2  1999/02/22 16:52:47  didenko
0020  * updates from Gene
0021  *
0022  * Revision 1.1  1999/01/30 03:58:59  fisyak
0023  * Root Version of StarClassLibrary
0024  *
0025  * Revision 1.1  1999/01/23 00:27:34  ullrich
0026  * Initial Revision
0027  *
0028  **************************************************************************/
0029 
0030 #ifndef HEP_PHYSICAL_CONSTANTS_H
0031 #ifndef __CINT__
0032 #define HEP_PHYSICAL_CONSTANTS_H
0033 
0034 #include "SystemOfUnits.h"
0035 #include "TMath.h"
0036 
0037 #ifndef ST_NO_NAMESPACES
0038 using namespace units;
0039 #endif
0040 
0041 //
0042 //
0043 //
0044 static const double     pi  = TMath::Pi();    // from <math.h>
0045 static const double  twopi  = 2*pi;
0046 static const double halfpi  = pi/2;
0047 static const double    pi2  = pi*pi;
0048 
0049 //
0050 // 
0051 //
0052 static const double Avogadro = 6.0221367e+23/mole;
0053 
0054 //
0055 // c   = 299.792458 mm/ns
0056 // c^2 = 898.7404 (mm/ns)^2 
0057 //
0058 static const double c_light   = 2.99792458e+8 * meter/second;
0059 static const double c_squared = c_light * c_light;
0060 
0061 //
0062 // h     = 4.13566e-12 MeV*ns
0063 // hbar  = 6.58212e-13 MeV*ns
0064 // hbarc = 197.32705e-12 MeV*mm
0065 //
0066 static const double h_Planck      = 6.6260755e-34 * joule*second;
0067 static const double hbar_Planck   = h_Planck/twopi;
0068 static const double hbarc         = hbar_Planck * c_light;
0069 static const double hbarc_squared = hbarc * hbarc;
0070 
0071 //
0072 //
0073 //
0074 static const double electron_charge = - eplus; // see SystemOfUnits.h
0075 static const double e_squared = eplus * eplus;
0076 
0077 //
0078 // amu_c2 - atomic equivalent mass unit
0079 // amu    - atomic mass unit
0080 //
0081 static const double electron_mass_c2 = 0.51099906 * MeV;
0082 static const double   proton_mass_c2 = 938.27231 * MeV;
0083 static const double  neutron_mass_c2 = 939.56563 * MeV;
0084 static const double           amu_c2 = 931.49432 * MeV;
0085 //VP static const double              amu = amu_c2/c_squared; //same name in SystemOfUnits.h
0086 
0087 static const double kaon_0_short_mass_c2 = 497.672  * MeV;
0088 static const double    pion_plus_mass_c2 = 139.5700 * MeV;
0089 static const double   pion_minus_mass_c2 = 139.5700 * MeV;
0090 static const double       lambda_mass_c2 = 1115.684 * MeV;
0091 static const double   antilambda_mass_c2 = 1115.684 * MeV;
0092 static const double     xi_minus_mass_c2 = 1321.32  * MeV;
0093 
0094 
0095 //
0096 // permeability of free space mu0    = 2.01334e-16 Mev*(ns*eplus)^2/mm
0097 // permittivity of free space epsil0 = 5.52636e+10 eplus^2/(MeV*mm)
0098 //
0099 static const double mu0      = 4*pi*1.e-7 * henry/meter;
0100 static const double epsilon0 = 1./(c_squared*mu0);
0101 
0102 //
0103 // electromagnetic coupling = 1.43996e-12 MeV*mm/(eplus^2)
0104 //
0105 static const double elm_coupling           = e_squared/(4*pi*epsilon0);
0106 static const double fine_structure_const   = elm_coupling/hbarc;
0107 static const double classic_electr_radius  = elm_coupling/electron_mass_c2;
0108 static const double electron_Compton_length = hbarc/electron_mass_c2;
0109 static const double Bohr_radius = electron_Compton_length/fine_structure_const;
0110 
0111 static const double alpha_rcl2 = fine_structure_const
0112                                    *classic_electr_radius
0113                                    *classic_electr_radius;
0114 
0115 static const double twopi_mc2_rcl2 = twopi*electron_mass_c2
0116                                              *classic_electr_radius
0117                                              *classic_electr_radius;
0118 //
0119 //
0120 //
0121 static const double k_Boltzmann = 8.617385e-11 * MeV/kelvin;
0122 
0123 //
0124 //
0125 //
0126 static const double STP_Temperature = 273.15*kelvin;
0127 static const double STP_Pressure    = 1.*atmosphere;
0128 static const double kGasThreshold   = 1.e-2*gram/centimeter3;
0129 #endif /* !__CINT__ */
0130 
0131 #endif /* HEP_PHYSICAL_CONSTANTS_H */
0132 
0133 
0134 
0135 
0136