10#ifndef SHIPDATA_SHIPUNIT_H_
11#define SHIPDATA_SHIPUNIT_H_
18static const Double_t millimeter = 1. / 10.;
19static const Double_t millimeter2 = millimeter * millimeter;
20static const Double_t millimeter3 = millimeter * millimeter * millimeter;
22static const Double_t centimeter = 10. * millimeter;
23static const Double_t centimeter2 = centimeter * centimeter;
24static const Double_t centimeter3 = centimeter * centimeter * centimeter;
26static const Double_t meter = 1000. * millimeter;
27static const Double_t meter2 = meter * meter;
28static const Double_t meter3 = meter * meter * meter;
30static const Double_t kilometer = 1000. * meter;
31static const Double_t kilometer2 = kilometer * kilometer;
32static const Double_t kilometer3 = kilometer * kilometer * kilometer;
34static const Double_t parsec = 3.0856775807e+16 * meter;
36static const Double_t micrometer = 1.e-6 * meter;
37static const Double_t nanometer = 1.e-9 * meter;
38static const Double_t angstrom = 1.e-10 * meter;
39static const Double_t fermi = 1.e-15 * meter;
41static const Double_t barn = 1.e-28 * meter2;
42static const Double_t millibarn = 1.e-3 * barn;
43static const Double_t microbarn = 1.e-6 * barn;
44static const Double_t nanobarn = 1.e-9 * barn;
45static const Double_t picobarn = 1.e-12 * barn;
48static const Double_t nm = nanometer;
49static const Double_t um = micrometer;
51static const Double_t
mm = millimeter;
52static const Double_t mm2 = millimeter2;
53static const Double_t mm3 = millimeter3;
55static const Double_t
cm = centimeter;
56static const Double_t cm2 = centimeter2;
57static const Double_t cm3 = centimeter3;
59static const Double_t
m = meter;
60static const Double_t m2 = meter2;
61static const Double_t m3 = meter3;
63static const Double_t km = kilometer;
64static const Double_t km2 = kilometer2;
65static const Double_t km3 = kilometer3;
67static const Double_t pc = parsec;
72static const Double_t radian = 1.;
73static const Double_t milliradian = 1.e-3 * radian;
74static const Double_t degree = (3.14159265358979323846 / 180.0) * radian;
76static const Double_t steradian = 1.;
79static const Double_t rad = radian;
80static const Double_t mrad = milliradian;
81static const Double_t sr = steradian;
82static const Double_t deg = degree;
87static const Double_t nanosecond = 1.;
88static const Double_t second = 1.e+9 * nanosecond;
89static const Double_t millisecond = 1.e-3 * second;
90static const Double_t microsecond = 1.e-6 * second;
91static const Double_t picosecond = 1.e-12 * second;
93static const Double_t hertz = 1. / second;
94static const Double_t kilohertz = 1.e+3 * hertz;
95static const Double_t megahertz = 1.e+6 * hertz;
98static const Double_t ns = nanosecond;
99static const Double_t s = second;
100static const Double_t ms = millisecond;
105static const Double_t eplus = 1.;
106static const Double_t e_SI = 1.602176487e-19;
107static const Double_t coulomb = eplus / e_SI;
112static const Double_t megaelectronvolt = 1.;
113static const Double_t electronvolt = 1.e-6 * megaelectronvolt;
114static const Double_t kiloelectronvolt = 1.e-3 * megaelectronvolt;
115static const Double_t gigaelectronvolt = 1.e+3 * megaelectronvolt;
116static const Double_t teraelectronvolt = 1.e+6 * megaelectronvolt;
117static const Double_t petaelectronvolt = 1.e+9 * megaelectronvolt;
119static const Double_t joule =
123static const Double_t MeV = megaelectronvolt;
124static const Double_t eV = electronvolt;
125static const Double_t keV = kiloelectronvolt;
126static const Double_t GeV = gigaelectronvolt;
127static const Double_t TeV = teraelectronvolt;
128static const Double_t PeV = petaelectronvolt;
133static const Double_t kilogram = joule * second * second / (meter * meter);
134static const Double_t gram = 1.e-3 * kilogram;
135static const Double_t milligram = 1.e-3 * gram;
138static const Double_t kg = kilogram;
139static const Double_t g = gram;
140static const Double_t mg = milligram;
145static const Double_t watt = joule / second;
150static const Double_t newton = joule / meter;
155#define pascal hep_pascal
156static const Double_t hep_pascal =
158static const Double_t bar = 100000 *
pascal;
159static const Double_t atmosphere =
165static const Double_t ampere =
167static const Double_t milliampere = 1.e-3 * ampere;
168static const Double_t microampere = 1.e-6 * ampere;
169static const Double_t nanoampere = 1.e-9 * ampere;
174static const Double_t megavolt = megaelectronvolt / eplus;
175static const Double_t kilovolt = 1.e-3 * megavolt;
176static const Double_t volt = 1.e-6 * megavolt;
181static const Double_t ohm =
187static const Double_t farad =
189static const Double_t millifarad = 1.e-3 * farad;
190static const Double_t microfarad = 1.e-6 * farad;
191static const Double_t nanofarad = 1.e-9 * farad;
192static const Double_t picofarad = 1.e-12 * farad;
197static const Double_t weber = volt * second;
208static const Double_t gauss = 1.e-4 *
tesla;
213static const Double_t henry =
219static const Double_t kelvin = 1.;
224static const Double_t mole = 1.;
229static const Double_t becquerel = 1. / second;
230static const Double_t curie = 3.7e+10 * becquerel;
231static const Double_t kilobecquerel = 1.e+3 * becquerel;
232static const Double_t megabecquerel = 1.e+6 * becquerel;
233static const Double_t gigabecquerel = 1.e+9 * becquerel;
234static const Double_t millicurie = 1.e-3 * curie;
235static const Double_t microcurie = 1.e-6 * curie;
236static const Double_t Bq = becquerel;
237static const Double_t kBq = kilobecquerel;
238static const Double_t MBq = megabecquerel;
239static const Double_t GBq = gigabecquerel;
240static const Double_t Ci = curie;
241static const Double_t mCi = millicurie;
242static const Double_t uCi = microcurie;
247static const Double_t gray = joule / kilogram;
248static const Double_t kilogray = 1.e+3 * gray;
249static const Double_t milligray = 1.e-3 * gray;
250static const Double_t microgray = 1.e-6 * gray;
255static const Double_t candela = 1.;
260static const Double_t lumen = candela * steradian;
265static const Double_t lux = lumen / meter2;
270static const Double_t perCent = 0.01;
271static const Double_t perThousand = 0.001;
272static const Double_t perMillion = 0.000001;
278static const Double_t pi = 3.14159265358979323846;
279static const Double_t twopi = 2. * pi;
280static const Double_t halfpi = pi / 2.;
281static const Double_t pi2 = pi * pi;
284static const Double_t Avogadro = 6.0221367e+23 / mole;
288static const Double_t c_light = 2.99792458e+8 *
m / s;
289static const Double_t c_squared = c_light * c_light;
294static const Double_t h_Planck = 6.6260755e-34 * joule * s;
295static const Double_t hbar_Planck = h_Planck / twopi;
296static const Double_t hbarc = hbar_Planck * c_light;
297static const Double_t hbarc_squared = hbarc * hbarc;
300static const Double_t electron_charge = -eplus;
301static const Double_t e_squared = eplus * eplus;
305static const Double_t electron_mass_c2 = 0.51099906 * MeV;
306static const Double_t proton_mass_c2 = 938.27231 * MeV;
307static const Double_t neutron_mass_c2 = 939.56563 * MeV;
308static const Double_t amu_c2 = 931.49432 * MeV;
309static const Double_t amu = amu_c2 / c_squared;
313static const Double_t mu0 = 4 * pi * 1.e-7 * henry /
m;
314static const Double_t epsilon0 = 1. / (c_squared * mu0);
317static const Double_t elm_coupling = e_squared / (4 * pi * epsilon0);
318static const Double_t fine_structure_const = elm_coupling / hbarc;
319static const Double_t classic_electr_radius = elm_coupling / electron_mass_c2;
320static const Double_t electron_Compton_length = hbarc / electron_mass_c2;
321static const Double_t Bohr_radius =
322 electron_Compton_length / fine_structure_const;
324static const Double_t alpha_rcl2 =
325 fine_structure_const * classic_electr_radius * classic_electr_radius;
326static const Double_t twopi_mc2_rcl2 =
327 twopi * electron_mass_c2 * classic_electr_radius * classic_electr_radius;
330static const Double_t k_Boltzmann = 8.617385e-11 * MeV / kelvin;
333static const Double_t STP_Temperature = 273.15 * kelvin;
334static const Double_t STP_Pressure = 1. * atmosphere;
335static const Double_t kGasThreshold = 10. * mg / cm3;
338static const Double_t universe_mean_density = 1.e-25 * g / cm3;