Variables
genie::units Namespace Reference

Physical System of Units. More...

Variables

static constexpr double gigaelectronvolt = 1.
 
static constexpr double GeV = gigaelectronvolt
 
static constexpr double kSpeedOfLight = 2.99792458e+08
 
static constexpr double qe_coulomb = 1.602176634e-19
 
static constexpr double hbarc = 1.973269804e-16
 
static constexpr double meter = 1. / (hbarc * GeV)
 
static constexpr double kilogram = kSpeedOfLight * kSpeedOfLight * 10e-9 * GeV / qe_coulomb
 
static constexpr double second = meter * kSpeedOfLight / GeV
 
static constexpr double kilometer = 1000.*meter
 
static constexpr double millimeter = 0.001*meter
 
static constexpr double millimeter2 = millimeter*millimeter
 
static constexpr double millimeter3 = millimeter*millimeter2
 
static constexpr double centimeter = 0.01*meter
 
static constexpr double centimeter2 = centimeter*centimeter
 
static constexpr double centimeter3 = centimeter*centimeter2
 
static constexpr double decimeter = 0.1*meter
 
static constexpr double decimeter2 = decimeter*decimeter
 
static constexpr double decimeter3 = decimeter*decimeter2
 
static constexpr double meter2 = meter*meter
 
static constexpr double meter3 = meter*meter2
 
static constexpr double micrometer = 1.e-6 *meter
 
static constexpr double nanometer = 1.e-9 *meter
 
static constexpr double angstrom = 1.e-10*meter
 
static constexpr double fermi = 1.e-15*meter
 
static constexpr double fermi2 = fermi*fermi
 
static constexpr double fermi3 = fermi*fermi2
 
static constexpr double barn = 1.e-28*meter2
 
static constexpr double millibarn = 1.e-3 *barn
 
static constexpr double microbarn = 1.e-6 *barn
 
static constexpr double nanobarn = 1.e-9 *barn
 
static constexpr double picobarn = 1.e-12*barn
 
static constexpr double km = kilometer
 
static constexpr double mm = millimeter
 
static constexpr double mm2 = millimeter2
 
static constexpr double mm3 = millimeter3
 
static constexpr double cm = centimeter
 
static constexpr double cm2 = centimeter2
 
static constexpr double cm3 = centimeter3
 
static constexpr double m = meter
 
static constexpr double m2 = meter2
 
static constexpr double m3 = meter3
 
static constexpr double A = angstrom
 
static constexpr double fm = fermi
 
static constexpr double fm2 = fermi2
 
static constexpr double fm3 = fermi3
 
static constexpr double b = barn
 
static constexpr double mb = millibarn
 
static constexpr double ub = microbarn
 
static constexpr double nb = nanobarn
 
static constexpr double pb = picobarn
 
static constexpr double millisecond = 1.e-03 *second
 
static constexpr double microsecond = 1.e-06 *second
 
static constexpr double nanosecond = 1.e-09 *second
 
static constexpr double picosecond = 1.e-12 *second
 
static constexpr double femptosecond = 1.e-15 *second
 
static constexpr double attosecond = 1.e-18 *second
 
static constexpr double zeptosecond = 1.e-21 *second
 
static constexpr double yoctosecond = 1.e-24 *second
 
static constexpr double s = second
 
static constexpr double ms = millisecond
 
static constexpr double us = microsecond
 
static constexpr double ns = nanosecond
 
static constexpr double ps = picosecond
 
static constexpr double fs = femptosecond
 
static constexpr double as = attosecond
 
static constexpr double zs = zeptosecond
 
static constexpr double ys = yoctosecond
 
static constexpr double hertz = 1./second
 
static constexpr double kilohertz = 1.e+3*hertz
 
static constexpr double megahertz = 1.e+6*hertz
 
static constexpr double gigahertz = 1.e+9*hertz
 
static constexpr double Hz = hertz
 
static constexpr double kHz = kilohertz
 
static constexpr double MHz = megahertz
 
static constexpr double GHz = gigahertz
 
static constexpr double qe = 1.
 
static constexpr double electronvolt = 1.e-09 *GeV
 
static constexpr double kiloelectronvolt = 1.e+03 *electronvolt
 
static constexpr double megaelectronvolt = 1.e+06 *electronvolt
 
static constexpr double teraelectronvolt = 1.e+12 *electronvolt
 
static constexpr double petaelectronvolt = 1.e+15 *electronvolt
 
static constexpr double eV = electronvolt
 
static constexpr double keV = kiloelectronvolt
 
static constexpr double MeV = megaelectronvolt
 
static constexpr double TeV = teraelectronvolt
 
static constexpr double PeV = petaelectronvolt
 
static constexpr double GeV2 = GeV * GeV
 
static constexpr double GeV3 = GeV * GeV2
 
static constexpr double GeV4 = GeV * GeV3
 
static constexpr double GeV5 = GeV * GeV4
 
static constexpr double gram = 1.e-3 *kilogram
 
static constexpr double milligram = 1.e-3 *gram
 
static constexpr double kg = kilogram
 
static constexpr double g = gram
 
static constexpr double mg = milligram
 
static constexpr double kilogram_meter3 = kilogram / meter3
 
static constexpr double gram_centimeter3 = gram / centimeter3
 
static constexpr double kg_m3 = kilogram_meter3
 
static constexpr double g_cm3 = gram_centimeter3
 
static constexpr double radian = 1.
 
static constexpr double milliradian = 1.e-3*radian
 
static constexpr double degree = (3.14159265358979323846/180.0)*radian
 
static constexpr double steradian = 1.
 
static constexpr double rad = radian
 
static constexpr double mrad = milliradian
 
static constexpr double sr = steradian
 
static constexpr double deg = degree
 
static constexpr double clhep_def_density_unit = g_cm3/(0.62415185185E+19)
 

Detailed Description

Physical System of Units.

Author
Costas Andreopoulos <constantinos.andreopoulos cern.ch> University of Liverpool & STFC Rutherford Appleton Laboratory

May 03, 2004

Copyright (c) 2003-2020, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org

Variable Documentation

constexpr double genie::units::A = angstrom
static

Definition at line 74 of file Units.h.

constexpr double genie::units::angstrom = 1.e-10*meter
static

Definition at line 54 of file Units.h.

constexpr double genie::units::as = attosecond
static

Definition at line 101 of file Units.h.

constexpr double genie::units::attosecond = 1.e-18 *second
static

Definition at line 91 of file Units.h.

constexpr double genie::units::b = barn
static

Definition at line 78 of file Units.h.

constexpr double genie::units::barn = 1.e-28*meter2
static

Definition at line 58 of file Units.h.

constexpr double genie::units::centimeter = 0.01*meter
static

Definition at line 44 of file Units.h.

constexpr double genie::units::centimeter2 = centimeter*centimeter
static

Definition at line 45 of file Units.h.

constexpr double genie::units::centimeter3 = centimeter*centimeter2
static

Definition at line 46 of file Units.h.

constexpr double genie::units::clhep_def_density_unit = g_cm3/(0.62415185185E+19)
static

Definition at line 171 of file Units.h.

constexpr double genie::units::cm = centimeter
static

Definition at line 68 of file Units.h.

constexpr double genie::units::cm2 = centimeter2
static

Definition at line 69 of file Units.h.

constexpr double genie::units::cm3 = centimeter3
static

Definition at line 70 of file Units.h.

constexpr double genie::units::decimeter = 0.1*meter
static

Definition at line 47 of file Units.h.

constexpr double genie::units::decimeter2 = decimeter*decimeter
static

Definition at line 48 of file Units.h.

constexpr double genie::units::decimeter3 = decimeter*decimeter2
static

Definition at line 49 of file Units.h.

constexpr double genie::units::deg = degree
static

Definition at line 167 of file Units.h.

constexpr double genie::units::degree = (3.14159265358979323846/180.0)*radian
static

Definition at line 161 of file Units.h.

constexpr double genie::units::electronvolt = 1.e-09 *GeV
static

Definition at line 121 of file Units.h.

constexpr double genie::units::eV = electronvolt
static

Definition at line 127 of file Units.h.

constexpr double genie::units::femptosecond = 1.e-15 *second
static

Definition at line 90 of file Units.h.

constexpr double genie::units::fermi = 1.e-15*meter
static

Definition at line 55 of file Units.h.

constexpr double genie::units::fermi2 = fermi*fermi
static

Definition at line 56 of file Units.h.

constexpr double genie::units::fermi3 = fermi*fermi2
static

Definition at line 57 of file Units.h.

constexpr double genie::units::fm = fermi
static

Definition at line 75 of file Units.h.

constexpr double genie::units::fm2 = fermi2
static

Definition at line 76 of file Units.h.

constexpr double genie::units::fm3 = fermi3
static

Definition at line 77 of file Units.h.

constexpr double genie::units::fs = femptosecond
static

Definition at line 100 of file Units.h.

constexpr double genie::units::g = gram
static

Definition at line 144 of file Units.h.

constexpr double genie::units::g_cm3 = gram_centimeter3
static

Definition at line 153 of file Units.h.

constexpr double genie::units::GeV = gigaelectronvolt
static

Definition at line 28 of file Units.h.

constexpr double genie::units::GeV2 = GeV * GeV
static

Definition at line 133 of file Units.h.

constexpr double genie::units::GeV3 = GeV * GeV2
static

Definition at line 134 of file Units.h.

constexpr double genie::units::GeV4 = GeV * GeV3
static

Definition at line 135 of file Units.h.

constexpr double genie::units::GeV5 = GeV * GeV4
static

Definition at line 136 of file Units.h.

constexpr double genie::units::GHz = gigahertz
static

Definition at line 113 of file Units.h.

constexpr double genie::units::gigaelectronvolt = 1.
static

Definition at line 27 of file Units.h.

constexpr double genie::units::gigahertz = 1.e+9*hertz
static

Definition at line 108 of file Units.h.

constexpr double genie::units::gram = 1.e-3 *kilogram
static

Definition at line 140 of file Units.h.

constexpr double genie::units::gram_centimeter3 = gram / centimeter3
static

Definition at line 150 of file Units.h.

constexpr double genie::units::hbarc = 1.973269804e-16
static

Definition at line 34 of file Units.h.

constexpr double genie::units::hertz = 1./second
static

Definition at line 105 of file Units.h.

constexpr double genie::units::Hz = hertz
static

Definition at line 110 of file Units.h.

constexpr double genie::units::keV = kiloelectronvolt
static

Definition at line 128 of file Units.h.

constexpr double genie::units::kg = kilogram
static

Definition at line 143 of file Units.h.

constexpr double genie::units::kg_m3 = kilogram_meter3
static

Definition at line 152 of file Units.h.

constexpr double genie::units::kHz = kilohertz
static

Definition at line 111 of file Units.h.

constexpr double genie::units::kiloelectronvolt = 1.e+03 *electronvolt
static

Definition at line 122 of file Units.h.

constexpr double genie::units::kilogram = kSpeedOfLight * kSpeedOfLight * 10e-9 * GeV / qe_coulomb
static

Definition at line 36 of file Units.h.

constexpr double genie::units::kilogram_meter3 = kilogram / meter3
static

Definition at line 149 of file Units.h.

constexpr double genie::units::kilohertz = 1.e+3*hertz
static

Definition at line 106 of file Units.h.

constexpr double genie::units::kilometer = 1000.*meter
static

Definition at line 40 of file Units.h.

constexpr double genie::units::km = kilometer
static

Definition at line 64 of file Units.h.

constexpr double genie::units::kSpeedOfLight = 2.99792458e+08
static

Definition at line 32 of file Units.h.

constexpr double genie::units::m = meter
static

Definition at line 71 of file Units.h.

constexpr double genie::units::m2 = meter2
static

Definition at line 72 of file Units.h.

constexpr double genie::units::m3 = meter3
static

Definition at line 73 of file Units.h.

constexpr double genie::units::mb = millibarn
static

Definition at line 79 of file Units.h.

constexpr double genie::units::megaelectronvolt = 1.e+06 *electronvolt
static

Definition at line 123 of file Units.h.

constexpr double genie::units::megahertz = 1.e+6*hertz
static

Definition at line 107 of file Units.h.

constexpr double genie::units::meter = 1. / (hbarc * GeV)
static

Definition at line 35 of file Units.h.

constexpr double genie::units::meter2 = meter*meter
static

Definition at line 50 of file Units.h.

constexpr double genie::units::meter3 = meter*meter2
static

Definition at line 51 of file Units.h.

constexpr double genie::units::MeV = megaelectronvolt
static

Definition at line 129 of file Units.h.

constexpr double genie::units::mg = milligram
static

Definition at line 145 of file Units.h.

constexpr double genie::units::MHz = megahertz
static

Definition at line 112 of file Units.h.

constexpr double genie::units::microbarn = 1.e-6 *barn
static

Definition at line 60 of file Units.h.

constexpr double genie::units::micrometer = 1.e-6 *meter
static

Definition at line 52 of file Units.h.

constexpr double genie::units::microsecond = 1.e-06 *second
static

Definition at line 87 of file Units.h.

constexpr double genie::units::millibarn = 1.e-3 *barn
static

Definition at line 59 of file Units.h.

constexpr double genie::units::milligram = 1.e-3 *gram
static

Definition at line 141 of file Units.h.

constexpr double genie::units::millimeter = 0.001*meter
static

Definition at line 41 of file Units.h.

constexpr double genie::units::millimeter2 = millimeter*millimeter
static

Definition at line 42 of file Units.h.

constexpr double genie::units::millimeter3 = millimeter*millimeter2
static

Definition at line 43 of file Units.h.

constexpr double genie::units::milliradian = 1.e-3*radian
static

Definition at line 160 of file Units.h.

constexpr double genie::units::millisecond = 1.e-03 *second
static

Definition at line 86 of file Units.h.

constexpr double genie::units::mm = millimeter
static

Definition at line 65 of file Units.h.

constexpr double genie::units::mm2 = millimeter2
static

Definition at line 66 of file Units.h.

constexpr double genie::units::mm3 = millimeter3
static

Definition at line 67 of file Units.h.

constexpr double genie::units::mrad = milliradian
static

Definition at line 165 of file Units.h.

constexpr double genie::units::ms = millisecond
static

Definition at line 96 of file Units.h.

constexpr double genie::units::nanobarn = 1.e-9 *barn
static

Definition at line 61 of file Units.h.

constexpr double genie::units::nanometer = 1.e-9 *meter
static

Definition at line 53 of file Units.h.

constexpr double genie::units::nanosecond = 1.e-09 *second
static

Definition at line 88 of file Units.h.

constexpr double genie::units::nb = nanobarn
static

Definition at line 81 of file Units.h.

constexpr double genie::units::ns = nanosecond
static

Definition at line 98 of file Units.h.

constexpr double genie::units::pb = picobarn
static

Definition at line 82 of file Units.h.

constexpr double genie::units::petaelectronvolt = 1.e+15 *electronvolt
static

Definition at line 125 of file Units.h.

constexpr double genie::units::PeV = petaelectronvolt
static

Definition at line 131 of file Units.h.

constexpr double genie::units::picobarn = 1.e-12*barn
static

Definition at line 62 of file Units.h.

constexpr double genie::units::picosecond = 1.e-12 *second
static

Definition at line 89 of file Units.h.

constexpr double genie::units::ps = picosecond
static

Definition at line 99 of file Units.h.

constexpr double genie::units::qe = 1.
static

Definition at line 117 of file Units.h.

constexpr double genie::units::qe_coulomb = 1.602176634e-19
static

Definition at line 33 of file Units.h.

constexpr double genie::units::rad = radian
static

Definition at line 164 of file Units.h.

constexpr double genie::units::radian = 1.
static

Definition at line 159 of file Units.h.

constexpr double genie::units::s = second
static

Definition at line 95 of file Units.h.

constexpr double genie::units::second = meter * kSpeedOfLight / GeV
static

Definition at line 37 of file Units.h.

constexpr double genie::units::sr = steradian
static

Definition at line 166 of file Units.h.

constexpr double genie::units::steradian = 1.
static

Definition at line 162 of file Units.h.

constexpr double genie::units::teraelectronvolt = 1.e+12 *electronvolt
static

Definition at line 124 of file Units.h.

constexpr double genie::units::TeV = teraelectronvolt
static

Definition at line 130 of file Units.h.

constexpr double genie::units::ub = microbarn
static

Definition at line 80 of file Units.h.

constexpr double genie::units::us = microsecond
static

Definition at line 97 of file Units.h.

constexpr double genie::units::yoctosecond = 1.e-24 *second
static

Definition at line 93 of file Units.h.

constexpr double genie::units::ys = yoctosecond
static

Definition at line 103 of file Units.h.

constexpr double genie::units::zeptosecond = 1.e-21 *second
static

Definition at line 92 of file Units.h.

constexpr double genie::units::zs = zeptosecond
static

Definition at line 102 of file Units.h.