DD4hep - The AIDA detector description toolkit for high energy physics experiments
DD4hep  Rev:Unversioneddirectory
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Variables
dd4hep Namespace Reference

Utility namespace to support TGeo units. More...

Variables

static const double millimeter = 0.1
 
static const double millimeter2 = millimeter * millimeter
 
static const double millimeter3 = millimeter * millimeter * millimeter
 
static const double centimeter = 10. * millimeter
 
static const double centimeter2 = centimeter * centimeter
 
static const double centimeter3 = centimeter * centimeter * centimeter
 
static const double meter = 1000. * millimeter
 
static const double meter2 = meter * meter
 
static const double meter3 = meter * meter * meter
 
static const double kilometer = 1000. * meter
 
static const double kilometer2 = kilometer * kilometer
 
static const double kilometer3 = kilometer * kilometer * kilometer
 
static const double parsec = 3.0856775807e+16 * meter
 
static const double micrometer = 1.e-6 * meter
 
static const double nanometer = 1.e-9 * meter
 
static const double angstrom = 1.e-10 * meter
 
static const double fermi = 1.e-15 * meter
 
static const double barn = 1.e-28 * meter2
 
static const double millibarn = 1.e-3 * barn
 
static const double microbarn = 1.e-6 * barn
 
static const double nanobarn = 1.e-9 * barn
 
static const double picobarn = 1.e-12 * barn
 
static const double nm = nanometer
 
static const double um = micrometer
 
static const double mm = millimeter
 
static const double mm2 = millimeter2
 
static const double mm3 = millimeter3
 
static const double cm = centimeter
 
static const double cm2 = centimeter2
 
static const double cm3 = centimeter3
 
static const double m = meter
 
static const double m2 = meter2
 
static const double m3 = meter3
 
static const double km = kilometer
 
static const double km2 = kilometer2
 
static const double km3 = kilometer3
 
static const double pc = parsec
 
static const double radian = 1.
 
static const double milliradian = 1.e-3 * radian
 
static const double degree = (3.14159265358979323846/180.0)*radian
 
static const double steradian = 1.
 
static const double rad = radian
 
static const double mrad = milliradian
 
static const double sr = steradian
 
static const double deg = degree
 
static const double nanosecond = 1.e-9
 
static const double second = 1.e+9 * nanosecond
 
static const double millisecond = 1.e-3 * second
 
static const double microsecond = 1.e-6 * second
 
static const double picosecond = 1.e-12 * second
 
static const double hertz = 1. / second
 
static const double kilohertz = 1.e+3 * hertz
 
static const double megahertz = 1.e+6 * hertz
 
static const double ns = nanosecond
 
static const double s = second
 
static const double ms = millisecond
 
static const double eplus = 1.
 
static const double e_SI = 1.602176487e-19
 
static const double coulomb = eplus / e_SI
 
static const double megaelectronvolt = 1.e-3
 
static const double electronvolt = 1.e-6 * megaelectronvolt
 
static const double kiloelectronvolt = 1.e-3 * megaelectronvolt
 
static const double gigaelectronvolt = 1.e+3 * megaelectronvolt
 
static const double teraelectronvolt = 1.e+6 * megaelectronvolt
 
static const double petaelectronvolt = 1.e+9 * megaelectronvolt
 
static const double joule = electronvolt / e_SI
 
static const double MeV = megaelectronvolt
 
static const double eV = electronvolt
 
static const double keV = kiloelectronvolt
 
static const double GeV = gigaelectronvolt
 
static const double TeV = teraelectronvolt
 
static const double PeV = petaelectronvolt
 
static const double kilogram = joule * second * second / (meter * meter)
 
static const double gram = 1.e-3 * kilogram
 
static const double milligram = 1.e-3 * gram
 
static const double kg = kilogram
 
static const double g = gram
 
static const double mg = milligram
 
static const double watt = joule / second
 
static const double newton = joule / meter
 
static const double hep_pascal = newton / m2
 
static const double bar = 100000 * pascal
 
static const double atmosphere = 101325 * pascal
 
static const double ampere = coulomb / second
 
static const double milliampere = 1.e-3 * ampere
 
static const double microampere = 1.e-6 * ampere
 
static const double nanoampere = 1.e-9 * ampere
 
static const double megavolt = megaelectronvolt / eplus
 
static const double kilovolt = 1.e-3 * megavolt
 
static const double volt = 1.e-6 * megavolt
 
static const double ohm = volt / ampere
 
static const double farad = coulomb / volt
 
static const double millifarad = 1.e-3 * farad
 
static const double microfarad = 1.e-6 * farad
 
static const double nanofarad = 1.e-9 * farad
 
static const double picofarad = 1.e-12 * farad
 
static const double weber = volt * second
 
static const double tesla = volt * second / meter2
 
static const double gauss = 1.e-4 * tesla
 
static const double kilogauss = 1.e-1 * tesla
 
static const double henry = weber / ampere
 
static const double kelvin = 1.
 
static const double mole = 1.
 
static const double becquerel = 1. / second
 
static const double curie = 3.7e+10 * becquerel
 
static const double gray = joule / kilogram
 
static const double kilogray = 1.e+3 * gray
 
static const double milligray = 1.e-3 * gray
 
static const double microgray = 1.e-6 * gray
 
static const double candela = 1.
 
static const double lumen = candela * steradian
 
static const double lux = lumen / meter2
 
static const double perCent = 0.01
 
static const double perThousand = 0.001
 
static const double perMillion = 0.000001
 
static const double pi = 3.14159265358979323846
 
static const double twopi = 2 * pi
 
static const double halfpi = pi / 2
 
static const double pi2 = pi * pi
 
static const double Avogadro = 6.02214179e+23 / mole
 
static const double c_light = 2.99792458e+8 * m / s
 
static const double c_squared = c_light * c_light
 
static const double h_Planck = 6.62606896e-34 * joule * s
 
static const double hbar_Planck = h_Planck / twopi
 
static const double hbarc = hbar_Planck * c_light
 
static const double hbarc_squared = hbarc * hbarc
 
static const double electron_charge = -eplus
 
static const double e_squared = eplus * eplus
 
static const double electron_mass_c2 = 0.510998910 * MeV
 
static const double proton_mass_c2 = 938.272013 * MeV
 
static const double neutron_mass_c2 = 939.56536 * MeV
 
static const double amu_c2 = 931.494028 * MeV
 
static const double amu = amu_c2 / c_squared
 
static const double mu0 = 4 * pi * 1.e-7 * henry / m
 
static const double epsilon0 = 1. / (c_squared * mu0)
 
static const double elm_coupling = e_squared / (4 * pi * epsilon0)
 
static const double fine_structure_const = elm_coupling / hbarc
 
static const double classic_electr_radius = elm_coupling / electron_mass_c2
 
static const double electron_Compton_length = hbarc / electron_mass_c2
 
static const double Bohr_radius = electron_Compton_length / fine_structure_const
 
static const double alpha_rcl2 = fine_structure_const * classic_electr_radius * classic_electr_radius
 
static const double twopi_mc2_rcl2 = twopi * electron_mass_c2 * classic_electr_radius * classic_electr_radius
 
static const double k_Boltzmann = 8.617343e-11 * MeV / kelvin
 
static const double STP_Temperature = 273.15 * kelvin
 
static const double STP_Pressure = 1. * atmosphere
 
static const double kGasThreshold = 10. * mg / cm3
 
static const double universe_mean_density = 1.e-25 * g / cm3
 

Detailed Description

Utility namespace to support TGeo units.

Variable Documentation

const double dd4hep::alpha_rcl2 = fine_structure_const * classic_electr_radius * classic_electr_radius
static

Definition at line 374 of file DD4hepUnits.h.

const double dd4hep::ampere = coulomb / second
static

Definition at line 186 of file DD4hepUnits.h.

const double dd4hep::amu = amu_c2 / c_squared
static

Definition at line 356 of file DD4hepUnits.h.

const double dd4hep::amu_c2 = 931.494028 * MeV
static

Definition at line 355 of file DD4hepUnits.h.

const double dd4hep::angstrom = 1.e-10 * meter
static

Definition at line 56 of file DD4hepUnits.h.

const double dd4hep::atmosphere = 101325 * pascal
static

Definition at line 181 of file DD4hepUnits.h.

const double dd4hep::Avogadro = 6.02214179e+23 / mole
static

Definition at line 322 of file DD4hepUnits.h.

const double dd4hep::bar = 100000 * pascal
static

Definition at line 180 of file DD4hepUnits.h.

Referenced by DD4hep::Display::Display().

const double dd4hep::barn = 1.e-28 * meter2
static

Definition at line 59 of file DD4hepUnits.h.

const double dd4hep::becquerel = 1. / second
static

Definition at line 243 of file DD4hepUnits.h.

const double dd4hep::Bohr_radius = electron_Compton_length / fine_structure_const
static

Definition at line 372 of file DD4hepUnits.h.

const double dd4hep::c_light = 2.99792458e+8 * m / s
static

Definition at line 328 of file DD4hepUnits.h.

Referenced by DD4hep::Simulation::boostInteraction().

const double dd4hep::c_squared = c_light * c_light
static

Definition at line 329 of file DD4hepUnits.h.

const double dd4hep::candela = 1.
static

Definition at line 257 of file DD4hepUnits.h.

const double dd4hep::centimeter = 10. * millimeter
static

Definition at line 40 of file DD4hepUnits.h.

const double dd4hep::centimeter2 = centimeter * centimeter
static

Definition at line 41 of file DD4hepUnits.h.

const double dd4hep::centimeter3 = centimeter * centimeter * centimeter
static

Definition at line 42 of file DD4hepUnits.h.

const double dd4hep::classic_electr_radius = elm_coupling / electron_mass_c2
static

Definition at line 370 of file DD4hepUnits.h.

const double dd4hep::cm = centimeter
static
const double dd4hep::cm2 = centimeter2
static

Definition at line 74 of file DD4hepUnits.h.

const double dd4hep::cm3 = centimeter3
static
const double dd4hep::coulomb = eplus / e_SI
static

Definition at line 131 of file DD4hepUnits.h.

const double dd4hep::curie = 3.7e+10 * becquerel
static

Definition at line 244 of file DD4hepUnits.h.

const double dd4hep::deg = degree
static
const double dd4hep::degree = (3.14159265358979323846/180.0)*radian
static

Definition at line 98 of file DD4hepUnits.h.

const double dd4hep::e_SI = 1.602176487e-19
static

Definition at line 130 of file DD4hepUnits.h.

const double dd4hep::e_squared = eplus * eplus
static

Definition at line 345 of file DD4hepUnits.h.

const double dd4hep::electron_charge = -eplus
static

Definition at line 344 of file DD4hepUnits.h.

const double dd4hep::electron_Compton_length = hbarc / electron_mass_c2
static

Definition at line 371 of file DD4hepUnits.h.

const double dd4hep::electron_mass_c2 = 0.510998910 * MeV
static

Definition at line 352 of file DD4hepUnits.h.

const double dd4hep::electronvolt = 1.e-6 * megaelectronvolt
static

Definition at line 137 of file DD4hepUnits.h.

const double dd4hep::elm_coupling = e_squared / (4 * pi * epsilon0)
static

Definition at line 368 of file DD4hepUnits.h.

const double dd4hep::eplus = 1.
static

Definition at line 129 of file DD4hepUnits.h.

const double dd4hep::epsilon0 = 1. / (c_squared * mu0)
static

Definition at line 363 of file DD4hepUnits.h.

const double dd4hep::eV = electronvolt
static

Definition at line 147 of file DD4hepUnits.h.

const double dd4hep::farad = coulomb / volt
static

Definition at line 206 of file DD4hepUnits.h.

const double dd4hep::fermi = 1.e-15 * meter
static

Definition at line 57 of file DD4hepUnits.h.

const double dd4hep::fine_structure_const = elm_coupling / hbarc
static

Definition at line 369 of file DD4hepUnits.h.

const double dd4hep::g = gram
static
const double dd4hep::gauss = 1.e-4 * tesla
static

Definition at line 222 of file DD4hepUnits.h.

const double dd4hep::GeV = gigaelectronvolt
static
const double dd4hep::gigaelectronvolt = 1.e+3 * megaelectronvolt
static

Definition at line 139 of file DD4hepUnits.h.

const double dd4hep::gram = 1.e-3 * kilogram
static
const double dd4hep::gray = joule / kilogram
static

Definition at line 249 of file DD4hepUnits.h.

const double dd4hep::h_Planck = 6.62606896e-34 * joule * s
static

Definition at line 336 of file DD4hepUnits.h.

const double dd4hep::halfpi = pi / 2
static

Definition at line 316 of file DD4hepUnits.h.

const double dd4hep::hbar_Planck = h_Planck / twopi
static

Definition at line 337 of file DD4hepUnits.h.

const double dd4hep::hbarc = hbar_Planck * c_light
static

Definition at line 338 of file DD4hepUnits.h.

const double dd4hep::hbarc_squared = hbarc * hbarc
static

Definition at line 339 of file DD4hepUnits.h.

const double dd4hep::henry = weber / ampere
static

Definition at line 228 of file DD4hepUnits.h.

const double dd4hep::hep_pascal = newton / m2
static

Definition at line 179 of file DD4hepUnits.h.

const double dd4hep::hertz = 1. / second
static

Definition at line 117 of file DD4hepUnits.h.

const double dd4hep::joule = electronvolt / e_SI
static

Definition at line 143 of file DD4hepUnits.h.

const double dd4hep::k_Boltzmann = 8.617343e-11 * MeV / kelvin
static

Definition at line 380 of file DD4hepUnits.h.

const double dd4hep::kelvin = 1.
static

Definition at line 233 of file DD4hepUnits.h.

const double dd4hep::keV = kiloelectronvolt
static
const double dd4hep::kg = kilogram
static

Definition at line 161 of file DD4hepUnits.h.

Referenced by DD4hep::DDRec::createGearForILD().

const double dd4hep::kGasThreshold = 10. * mg / cm3
static

Definition at line 387 of file DD4hepUnits.h.

const double dd4hep::kiloelectronvolt = 1.e-3 * megaelectronvolt
static

Definition at line 138 of file DD4hepUnits.h.

const double dd4hep::kilogauss = 1.e-1 * tesla
static

Definition at line 223 of file DD4hepUnits.h.

const double dd4hep::kilogram = joule * second * second / (meter * meter)
static

Definition at line 156 of file DD4hepUnits.h.

const double dd4hep::kilogray = 1.e+3 * gray
static

Definition at line 250 of file DD4hepUnits.h.

const double dd4hep::kilohertz = 1.e+3 * hertz
static

Definition at line 118 of file DD4hepUnits.h.

const double dd4hep::kilometer = 1000. * meter
static

Definition at line 48 of file DD4hepUnits.h.

const double dd4hep::kilometer2 = kilometer * kilometer
static

Definition at line 49 of file DD4hepUnits.h.

const double dd4hep::kilometer3 = kilometer * kilometer * kilometer
static

Definition at line 50 of file DD4hepUnits.h.

const double dd4hep::kilovolt = 1.e-3 * megavolt
static

Definition at line 195 of file DD4hepUnits.h.

const double dd4hep::km = kilometer
static

Definition at line 81 of file DD4hepUnits.h.

const double dd4hep::km2 = kilometer2
static

Definition at line 82 of file DD4hepUnits.h.

const double dd4hep::km3 = kilometer3
static

Definition at line 83 of file DD4hepUnits.h.

const double dd4hep::lumen = candela * steradian
static

Definition at line 262 of file DD4hepUnits.h.

const double dd4hep::lux = lumen / meter2
static

Definition at line 267 of file DD4hepUnits.h.

const double dd4hep::m = meter
static

Definition at line 77 of file DD4hepUnits.h.

const double dd4hep::m2 = meter2
static

Definition at line 78 of file DD4hepUnits.h.

const double dd4hep::m3 = meter3
static

Definition at line 79 of file DD4hepUnits.h.

Referenced by DD4hep::DDRec::createGearForILD().

const double dd4hep::megaelectronvolt = 1.e-3
static

Definition at line 136 of file DD4hepUnits.h.

const double dd4hep::megahertz = 1.e+6 * hertz
static

Definition at line 119 of file DD4hepUnits.h.

const double dd4hep::megavolt = megaelectronvolt / eplus
static

Definition at line 194 of file DD4hepUnits.h.

const double dd4hep::meter = 1000. * millimeter
static

Definition at line 44 of file DD4hepUnits.h.

const double dd4hep::meter2 = meter * meter
static

Definition at line 45 of file DD4hepUnits.h.

const double dd4hep::meter3 = meter * meter * meter
static

Definition at line 46 of file DD4hepUnits.h.

const double dd4hep::MeV = megaelectronvolt
static
const double dd4hep::mg = milligram
static

Definition at line 163 of file DD4hepUnits.h.

const double dd4hep::microampere = 1.e-6 * ampere
static

Definition at line 188 of file DD4hepUnits.h.

const double dd4hep::microbarn = 1.e-6 * barn
static

Definition at line 61 of file DD4hepUnits.h.

const double dd4hep::microfarad = 1.e-6 * farad
static

Definition at line 208 of file DD4hepUnits.h.

const double dd4hep::microgray = 1.e-6 * gray
static

Definition at line 252 of file DD4hepUnits.h.

const double dd4hep::micrometer = 1.e-6 * meter
static

Definition at line 54 of file DD4hepUnits.h.

const double dd4hep::microsecond = 1.e-6 * second
static

Definition at line 114 of file DD4hepUnits.h.

const double dd4hep::milliampere = 1.e-3 * ampere
static

Definition at line 187 of file DD4hepUnits.h.

const double dd4hep::millibarn = 1.e-3 * barn
static

Definition at line 60 of file DD4hepUnits.h.

const double dd4hep::millifarad = 1.e-3 * farad
static

Definition at line 207 of file DD4hepUnits.h.

const double dd4hep::milligram = 1.e-3 * gram
static

Definition at line 158 of file DD4hepUnits.h.

const double dd4hep::milligray = 1.e-3 * gray
static

Definition at line 251 of file DD4hepUnits.h.

const double dd4hep::millimeter = 0.1
static

Definition at line 36 of file DD4hepUnits.h.

const double dd4hep::millimeter2 = millimeter * millimeter
static

Definition at line 37 of file DD4hepUnits.h.

const double dd4hep::millimeter3 = millimeter * millimeter * millimeter
static

Definition at line 38 of file DD4hepUnits.h.

const double dd4hep::milliradian = 1.e-3 * radian
static

Definition at line 97 of file DD4hepUnits.h.

const double dd4hep::millisecond = 1.e-3 * second
static

Definition at line 113 of file DD4hepUnits.h.

const double dd4hep::mm = millimeter
static
const double dd4hep::mm2 = millimeter2
static

Definition at line 70 of file DD4hepUnits.h.

const double dd4hep::mm3 = millimeter3
static

Definition at line 71 of file DD4hepUnits.h.

const double dd4hep::mole = 1.
static

Definition at line 238 of file DD4hepUnits.h.

Referenced by DD4hep::Simulation::Geant4Converter::handleElement().

const double dd4hep::mrad = milliradian
static

Definition at line 104 of file DD4hepUnits.h.

const double dd4hep::ms = millisecond
static

Definition at line 124 of file DD4hepUnits.h.

const double dd4hep::mu0 = 4 * pi * 1.e-7 * henry / m
static

Definition at line 362 of file DD4hepUnits.h.

const double dd4hep::nanoampere = 1.e-9 * ampere
static

Definition at line 189 of file DD4hepUnits.h.

const double dd4hep::nanobarn = 1.e-9 * barn
static

Definition at line 62 of file DD4hepUnits.h.

const double dd4hep::nanofarad = 1.e-9 * farad
static

Definition at line 209 of file DD4hepUnits.h.

const double dd4hep::nanometer = 1.e-9 * meter
static

Definition at line 55 of file DD4hepUnits.h.

const double dd4hep::nanosecond = 1.e-9
static

Definition at line 111 of file DD4hepUnits.h.

const double dd4hep::neutron_mass_c2 = 939.56536 * MeV
static

Definition at line 354 of file DD4hepUnits.h.

const double dd4hep::newton = joule / meter
static

Definition at line 173 of file DD4hepUnits.h.

const double dd4hep::nm = nanometer
static

Definition at line 66 of file DD4hepUnits.h.

const double dd4hep::ns = nanosecond
static
const double dd4hep::ohm = volt / ampere
static

Definition at line 201 of file DD4hepUnits.h.

const double dd4hep::parsec = 3.0856775807e+16 * meter
static

Definition at line 52 of file DD4hepUnits.h.

const double dd4hep::pc = parsec
static

Definition at line 85 of file DD4hepUnits.h.

Referenced by DD4hep::Geometry::DetElementObject::clone().

const double dd4hep::perCent = 0.01
static

Definition at line 272 of file DD4hepUnits.h.

const double dd4hep::perMillion = 0.000001
static

Definition at line 274 of file DD4hepUnits.h.

const double dd4hep::perThousand = 0.001
static

Definition at line 273 of file DD4hepUnits.h.

const double dd4hep::petaelectronvolt = 1.e+9 * megaelectronvolt
static

Definition at line 141 of file DD4hepUnits.h.

const double dd4hep::PeV = petaelectronvolt
static

Definition at line 151 of file DD4hepUnits.h.

const double dd4hep::pi = 3.14159265358979323846
static

Definition at line 314 of file DD4hepUnits.h.

const double dd4hep::pi2 = pi * pi
static

Definition at line 317 of file DD4hepUnits.h.

const double dd4hep::picobarn = 1.e-12 * barn
static

Definition at line 63 of file DD4hepUnits.h.

const double dd4hep::picofarad = 1.e-12 * farad
static

Definition at line 210 of file DD4hepUnits.h.

const double dd4hep::picosecond = 1.e-12 * second
static

Definition at line 115 of file DD4hepUnits.h.

const double dd4hep::proton_mass_c2 = 938.272013 * MeV
static

Definition at line 353 of file DD4hepUnits.h.

const double dd4hep::rad = radian
static

Definition at line 103 of file DD4hepUnits.h.

const double dd4hep::radian = 1.
static

Definition at line 96 of file DD4hepUnits.h.

const double dd4hep::s = second
static

Definition at line 123 of file DD4hepUnits.h.

const double dd4hep::second = 1.e+9 * nanosecond
static
const double dd4hep::sr = steradian
static

Definition at line 105 of file DD4hepUnits.h.

const double dd4hep::steradian = 1.
static

Definition at line 100 of file DD4hepUnits.h.

const double dd4hep::STP_Pressure = 1. * atmosphere
static

Definition at line 386 of file DD4hepUnits.h.

const double dd4hep::STP_Temperature = 273.15 * kelvin
static

Definition at line 385 of file DD4hepUnits.h.

const double dd4hep::teraelectronvolt = 1.e+6 * megaelectronvolt
static

Definition at line 140 of file DD4hepUnits.h.

const double dd4hep::tesla = volt * second / meter2
static
const double dd4hep::TeV = teraelectronvolt
static

Definition at line 150 of file DD4hepUnits.h.

Referenced by DD4hep::Simulation::HepMC::read_units().

const double dd4hep::twopi = 2 * pi
static

Definition at line 315 of file DD4hepUnits.h.

const double dd4hep::twopi_mc2_rcl2 = twopi * electron_mass_c2 * classic_electr_radius * classic_electr_radius
static

Definition at line 376 of file DD4hepUnits.h.

const double dd4hep::um = micrometer
static
const double dd4hep::universe_mean_density = 1.e-25 * g / cm3
static

Definition at line 392 of file DD4hepUnits.h.

const double dd4hep::volt = 1.e-6 * megavolt
static

Definition at line 196 of file DD4hepUnits.h.

const double dd4hep::watt = joule / second
static

Definition at line 168 of file DD4hepUnits.h.

const double dd4hep::weber = volt * second
static

Definition at line 215 of file DD4hepUnits.h.