54#ifndef TGEO_SYSTEM_OF_UNITS_H
55#define TGEO_SYSTEM_OF_UNITS_H
57#ifndef HAVE_GEANT4_UNITS
71 static constexpr double pi = 3.14159265358979323846;
72 static constexpr double twopi = 2 *
pi;
73 static constexpr double halfpi =
pi / 2;
74 static constexpr double pi2 =
pi *
pi;
95 static constexpr double parsec = 3.0856775807e+16 *
meter;
100 static constexpr double fermi = 1.e-15 *
meter;
102 static constexpr double barn = 1.e-28 *
meter2;
120 static constexpr double liter = 1.e+3 *
cm3;
121 static constexpr double L =
liter;
122 static constexpr double dL = 1.e-1 *
liter;
123 static constexpr double cL = 1.e-2 *
liter;
124 static constexpr double mL = 1.e-3 *
liter;
126 static constexpr double m =
meter;
127 static constexpr double m2 =
meter2;
128 static constexpr double m3 =
meter3;
134 static constexpr double pc =
parsec;
139 static constexpr double degree = 1.0;
166 static constexpr double s =
second;
174 static constexpr double eplus = 1.;
175 static constexpr double e_SI = 1.602176487e-19;
207 static constexpr double g =
gram;
223#define pascal hep_pascal
225 static constexpr double bar = 100000 *
pascal;
267 static constexpr double gauss = 1.e-4 *
tesla;
278 static constexpr double kelvin = 1.;
283 static constexpr double mole = 1.;
299 static constexpr double Ci =
curie;
314 static constexpr double candela = 1.;
329 static constexpr double perCent = 0.01;
331 static constexpr double perMillion = 0.000001;
static constexpr double millicurie
static constexpr double atmosphere
static constexpr double picosecond
static constexpr double centimeter3
static constexpr double lux
static constexpr double mCi
static constexpr double milligray
static constexpr double megahertz
static constexpr double um
static constexpr double weber
static constexpr double e_SI
static constexpr double cm3
static constexpr double megabecquerel
static constexpr double bar
static constexpr double teraelectronvolt
static constexpr double rad
static constexpr double millimeter2
static constexpr double gigabecquerel
static constexpr double coulomb
static constexpr double barn
static constexpr double GeV
static constexpr double ampere
static constexpr double kilohertz
static constexpr double millifarad
static constexpr double volt
static constexpr double halfpi
static constexpr double electronvolt
static constexpr double sr
static constexpr double meter2
static constexpr double picobarn
static constexpr double henry
static constexpr double deg
static constexpr double GBq
static constexpr double dL
static constexpr double gram
static constexpr double millimeter
static constexpr double nanosecond
static constexpr double cm2
static constexpr double mole
static constexpr double radian
static constexpr double becquerel
static constexpr double farad
static constexpr double picofarad
static constexpr double kilometer
static constexpr double nm
static constexpr double centimeter2
static constexpr double mL
static constexpr double perCent
static constexpr double millimeter3
static constexpr double TeV
static constexpr double kiloelectronvolt
static constexpr double petaelectronvolt
static constexpr double us
static constexpr double nanofarad
static constexpr double meter3
static constexpr double kelvin
static constexpr double newton
static constexpr double milliampere
static constexpr double s
static constexpr double km3
static constexpr double mm3
static constexpr double pi
static constexpr double mm
static constexpr double watt
static constexpr double hep_pascal
static constexpr double pi2
UnitType
System of units flavor. Must be kept in sync with TGeoUnits::UnitType.
static constexpr double centimeter
static constexpr double microcurie
static constexpr double curie
static constexpr double tesla
static constexpr double millisecond
static constexpr double cL
static constexpr double steradian
static constexpr double MBq
static constexpr double gigaelectronvolt
static constexpr double microsecond
static constexpr double megaelectronvolt
static constexpr double km
static constexpr double microampere
static constexpr double kilometer2
static constexpr double keV
static constexpr double kilogray
static constexpr double gray
static constexpr double uCi
static constexpr double angstrom
static constexpr double ns
static constexpr double pc
static constexpr double perMillion
static constexpr double kilobecquerel
static constexpr double milligram
static constexpr double degree
static constexpr double km2
static constexpr double second
static constexpr double cm
static constexpr double nanoampere
static constexpr double gauss
static constexpr double joule
static constexpr double ms
static constexpr double kBq
static constexpr double m3
static constexpr double PeV
static constexpr double candela
static constexpr double kilogram
static constexpr double Ci
static constexpr double parsec
static constexpr double kilogauss
static constexpr double twopi
static constexpr double liter
static constexpr double mm2
static constexpr double L
static constexpr double megavolt
static constexpr double ohm
static constexpr double nanometer
static constexpr double meter
static constexpr double kilometer3
static constexpr double perThousand
static constexpr double fermi
static constexpr double ps
static constexpr double microbarn
static constexpr double kg
static constexpr double mg
static constexpr double eplus
static constexpr double hertz
static constexpr double lumen
static constexpr double milliradian
static constexpr double kilovolt
static constexpr double eV
static constexpr double m2
static constexpr double Bq
static constexpr double millibarn
static constexpr double microgray
static constexpr double micrometer
static constexpr double mrad
static constexpr double MeV
static constexpr double nanobarn
static constexpr double microfarad
UnitType setUnitType(UnitType new_type)
Set the currently used unit type (Only ONCE possible)
UnitType unitType()
Access the currently set units type.