41#ifndef HEP_SYSTEM_OF_UNITS_H
42#define HEP_SYSTEM_OF_UNITS_H
49static const double millimeter = 1.;
50static const double millimeter2 = millimeter*millimeter;
51static const double millimeter3 = millimeter*millimeter*millimeter;
53static const double centimeter = 10.*millimeter;
54static const double centimeter2 = centimeter*centimeter;
55static const double centimeter3 = centimeter*centimeter*centimeter;
57static const double meter = 1000.*millimeter;
58static const double meter2 = meter*meter;
59static const double meter3 = meter*meter*meter;
61static const double kilometer = 1000.*meter;
62static const double kilometer2 = kilometer*kilometer;
63static const double kilometer3 = kilometer*kilometer*kilometer;
65static const double parsec = 3.0856775807e+16*meter;
67static const double micrometer = 1.e-6 *meter;
68static const double nanometer = 1.e-9 *meter;
69static const double angstrom = 1.e-10*meter;
70static const double fermi = 1.e-15*meter;
72static const double barn = 1.e-28*meter2;
73static const double millibarn = 1.e-3 *barn;
74static const double microbarn = 1.e-6 *barn;
75static const double nanobarn = 1.e-9 *barn;
76static const double picobarn = 1.e-12*barn;
79static const double mm = millimeter;
80static const double mm2 = millimeter2;
81static const double mm3 = millimeter3;
83static const double cm = centimeter;
84static const double cm2 = centimeter2;
85static const double cm3 = centimeter3;
87static const double m = meter;
88static const double m2 = meter2;
89static const double m3 = meter3;
91static const double km = kilometer;
92static const double km2 = kilometer2;
93static const double km3 = kilometer3;
95static const double pc = parsec;
100static const double radian = 1.;
101static const double milliradian = 1.e-3*radian;
102static const double degree = (3.14159265358979323846/180.0)*radian;
104static const double steradian = 1.;
107static const double rad = radian;
108static const double mrad = milliradian;
109static const double sr = steradian;
110static const double deg = degree;
115static const double nanosecond = 1.;
116static const double second = 1.e+9 *nanosecond;
117static const double millisecond = 1.e-3 *second;
118static const double microsecond = 1.e-6 *second;
119static const double picosecond = 1.e-12*second;
121static const double hertz = 1./second;
122static const double kilohertz = 1.e+3*hertz;
123static const double megahertz = 1.e+6*hertz;
126static const double ns = nanosecond;
127static const double s = second;
128static const double ms = millisecond;
133static const double eplus = 1. ;
134static const double e_SI = 1.60217733e-19;
135static const double coulomb = eplus/e_SI;
140static const double megaelectronvolt = 1. ;
141static const double electronvolt = 1.e-6*megaelectronvolt;
142static const double kiloelectronvolt = 1.e-3*megaelectronvolt;
143static const double gigaelectronvolt = 1.e+3*megaelectronvolt;
144static const double teraelectronvolt = 1.e+6*megaelectronvolt;
145static const double petaelectronvolt = 1.e+9*megaelectronvolt;
147static const double joule = electronvolt/e_SI;
150static const double MeV = megaelectronvolt;
151static const double eV = electronvolt;
152static const double keV = kiloelectronvolt;
153static const double GeV = gigaelectronvolt;
154static const double TeV = teraelectronvolt;
155static const double PeV = petaelectronvolt;
160static const double kilogram = joule*second*second/(meter*meter);
161static const double gram = 1.e-3*kilogram;
162static const double milligram = 1.e-3*gram;
165static const double kg = kilogram;
166static const double g = gram;
167static const double mg = milligram;
172static const double watt = joule/second;
177static const double newton = joule/meter;
182#define pascal hep_pascal
183static const double hep_pascal = newton/m2;
184static const double bar = 100000*
pascal;
185static const double atmosphere = 101325*
pascal;
190static const double ampere = coulomb/second;
191static const double milliampere = 1.e-3*ampere;
192static const double microampere = 1.e-6*ampere;
193static const double nanoampere = 1.e-9*ampere;
198static const double megavolt = megaelectronvolt/eplus;
199static const double kilovolt = 1.e-3*megavolt;
200static const double volt = 1.e-6*megavolt;
205static const double ohm = volt/ampere;
210static const double farad = coulomb/volt;
211static const double millifarad = 1.e-3*farad;
212static const double microfarad = 1.e-6*farad;
213static const double nanofarad = 1.e-9*farad;
214static const double picofarad = 1.e-12*farad;
219static const double weber = volt*second;
224static const double tesla = volt*second/meter2;
226static const double gauss = 1.e-4*tesla;
227static const double kilogauss = 1.e-1*tesla;
232static const double henry = weber/ampere;
237static const double kelvin = 1.;
242static const double mole = 1.;
247static const double becquerel = 1./second ;
248static const double curie = 3.7e+10 * becquerel;
253static const double gray = joule/kilogram ;
258static const double candela = 1.;
263static const double lumen = candela*steradian;
268static const double lux = lumen/meter2;
273static const double perCent = 0.01 ;
274static const double perThousand = 0.001;
275static const double perMillion = 0.000001;