1#ifndef RIVET_MATH_UNITS
2#define RIVET_MATH_UNITS
4#include "Rivet/Math/MathConstants.hh"
11 constexpr double millimeter = 1.;
12 constexpr double millimeter2 = millimeter*millimeter;
13 constexpr double millimeter3 = millimeter*millimeter*millimeter;
15 constexpr double centimeter = 10.*millimeter;
16 constexpr double centimeter2 = centimeter*centimeter;
17 constexpr double centimeter3 = centimeter*centimeter*centimeter;
19 constexpr double meter = 1000.*millimeter;
20 constexpr double meter2 = meter*meter;
21 constexpr double meter3 = meter*meter*meter;
23 constexpr double micrometer = 1.e-6 *meter;
24 constexpr double nanometer = 1.e-9 *meter;
25 constexpr double angstrom = 1.e-10*meter;
26 constexpr double picometer = 1.e-12*meter;
27 constexpr double femtometer = 1.e-15*meter;
28 constexpr double attometer = 1.e-18*meter;
29 constexpr double fermi = femtometer;
32 constexpr double mm = millimeter;
33 constexpr double mm2 = millimeter2;
34 constexpr double mm3 = millimeter3;
36 constexpr double cm = centimeter;
37 constexpr double cm2 = centimeter2;
38 constexpr double cm3 = centimeter3;
40 constexpr double m = meter;
41 constexpr double m2 = meter2;
42 constexpr double m3 = meter3;
46 constexpr double picobarn = 1.0;
47 constexpr double barn = 1.0e+12* picobarn;
48 constexpr double millibarn = 1.0e-3 * barn;
49 constexpr double microbarn = 1.0e-6 * barn;
50 constexpr double nanobarn = 1.0e-9 * barn;
51 constexpr double femtobarn = 1.0e-15 * barn;
52 constexpr double attobarn = 1.0e-18 * barn;
57 constexpr double nanosecond = 1.0;
58 constexpr double second = 1.e+9 *nanosecond;
59 constexpr double millisecond = 1.e-3 *second;
60 constexpr double microsecond = 1.e-6 *second;
61 constexpr double picosecond = 1.e-12*second;
64 constexpr double ns = nanosecond;
65 constexpr double s = second;
66 constexpr double ms = millisecond;
71 constexpr double eplus = 1.0;
72 constexpr double e_SI = 1.60217733e-19;
77 constexpr double gigaelectronvolt = 1.;
78 constexpr double electronvolt = 1.e-9*gigaelectronvolt;
79 constexpr double kiloelectronvolt = 1.e-6*gigaelectronvolt;
80 constexpr double megaelectronvolt = 1.e-3*gigaelectronvolt;
81 constexpr double teraelectronvolt = 1.e+3*gigaelectronvolt;
82 constexpr double petaelectronvolt = 1.e+6*gigaelectronvolt;
85 constexpr double eV = electronvolt;
86 constexpr double keV = kiloelectronvolt;
87 constexpr double MeV = megaelectronvolt;
88 constexpr double GeV = gigaelectronvolt;
89 constexpr double TeV = teraelectronvolt;
90 constexpr double PeV = petaelectronvolt;
92 constexpr double eV2 = eV*eV;
93 constexpr double keV2 = keV*keV;
94 constexpr double MeV2 = MeV*MeV;
95 constexpr double GeV2 = GeV*GeV;
96 constexpr double TeV2 = TeV*TeV;
97 constexpr double PeV2 = PeV*PeV;
Definition MC_CENT_PPB_Projections.hh:10