Geant4  10.02.p03
python.hepunit Namespace Reference

Variables

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

Detailed Description

# ==================================================================
#   Python module
#
#   This module defines physical units and constants used in HEP,
#   which are imported from CLHEP library.
#
#                                              Q, 2005
# ==================================================================

Variable Documentation

◆ alpha_rcl2

int python.hepunit.alpha_rcl2 = fine_structure_const * classic_electr_radius \

Definition at line 292 of file hepunit.py.

◆ ampere

int python.hepunit.ampere = coulomb/second

Definition at line 156 of file hepunit.py.

◆ amu

float python.hepunit.amu = amu_c2/c_squared

Definition at line 278 of file hepunit.py.

◆ amu_c2

float python.hepunit.amu_c2 = 931.49432 * MeV

Definition at line 277 of file hepunit.py.

◆ angstrom

int python.hepunit.angstrom = 1.e-10*meter

Definition at line 36 of file hepunit.py.

◆ atmosphere

int python.hepunit.atmosphere = 101325*pascal

Definition at line 151 of file hepunit.py.

◆ Avogadro

float python.hepunit.Avogadro = 6.0221367e+23/mole

Definition at line 253 of file hepunit.py.

◆ bar

int python.hepunit.bar = 100000*pascal

Definition at line 150 of file hepunit.py.

◆ barn

int python.hepunit.barn = 1.e-28*meter2

Definition at line 39 of file hepunit.py.

◆ becquerel

int python.hepunit.becquerel = 1./second

Definition at line 213 of file hepunit.py.

◆ Bohr_radius

float python.hepunit.Bohr_radius = electron_Compton_length/fine_structure_const

Definition at line 290 of file hepunit.py.

◆ c_light

float python.hepunit.c_light = 2.99792458e+8 * m/s

Definition at line 257 of file hepunit.py.

◆ c_squared

float python.hepunit.c_squared = c_light * c_light

Definition at line 258 of file hepunit.py.

◆ candela

int python.hepunit.candela = 1.

Definition at line 224 of file hepunit.py.

◆ centimeter

int python.hepunit.centimeter = 10.*millimeter

Definition at line 20 of file hepunit.py.

◆ centimeter2

int python.hepunit.centimeter2 = centimeter*centimeter

Definition at line 21 of file hepunit.py.

◆ centimeter3

int python.hepunit.centimeter3 = centimeter*centimeter*centimeter

Definition at line 22 of file hepunit.py.

◆ classic_electr_radius

int python.hepunit.classic_electr_radius = elm_coupling/electron_mass_c2

Definition at line 288 of file hepunit.py.

◆ cm

int python.hepunit.cm = centimeter

Definition at line 50 of file hepunit.py.

◆ cm2

int python.hepunit.cm2 = centimeter2

Definition at line 51 of file hepunit.py.

◆ cm3

int python.hepunit.cm3 = centimeter3

Definition at line 52 of file hepunit.py.

◆ coulomb

int python.hepunit.coulomb = eplus/e_SI

Definition at line 102 of file hepunit.py.

◆ curie

float python.hepunit.curie = 3.7e+10 * becquerel

Definition at line 214 of file hepunit.py.

◆ deg

tuple python.hepunit.deg = degree

Definition at line 77 of file hepunit.py.

◆ degree

tuple python.hepunit.degree = (3.14159265358979323846/180.0)*radian

Definition at line 69 of file hepunit.py.

◆ e_SI

float python.hepunit.e_SI = 1.60217733e-19

Definition at line 101 of file hepunit.py.

◆ e_squared

int python.hepunit.e_squared = eplus * eplus

Definition at line 270 of file hepunit.py.

◆ electron_charge

int python.hepunit.electron_charge = - eplus

Definition at line 269 of file hepunit.py.

◆ electron_Compton_length

float python.hepunit.electron_Compton_length = hbarc/electron_mass_c2

Definition at line 289 of file hepunit.py.

◆ electron_mass_c2

float python.hepunit.electron_mass_c2 = 0.51099906 * MeV

Definition at line 274 of file hepunit.py.

◆ electronvolt

int python.hepunit.electronvolt = 1.e-6*megaelectronvolt

Definition at line 108 of file hepunit.py.

◆ elm_coupling

int python.hepunit.elm_coupling = e_squared/(4*pi*epsilon0)

Definition at line 286 of file hepunit.py.

◆ eplus

int python.hepunit.eplus = 1.

Definition at line 100 of file hepunit.py.

◆ epsilon0

int python.hepunit.epsilon0 = 1./(c_squared*mu0)

Definition at line 283 of file hepunit.py.

◆ eV

int python.hepunit.eV = electronvolt

Definition at line 118 of file hepunit.py.

◆ farad

int python.hepunit.farad = coulomb/volt

Definition at line 176 of file hepunit.py.

◆ fermi

int python.hepunit.fermi = 1.e-15*meter

Definition at line 37 of file hepunit.py.

◆ fine_structure_const

int python.hepunit.fine_structure_const = elm_coupling/hbarc

Definition at line 287 of file hepunit.py.

◆ g

int python.hepunit.g = gram

Definition at line 133 of file hepunit.py.

◆ gauss

int python.hepunit.gauss = 1.e-4*tesla

Definition at line 192 of file hepunit.py.

◆ GeV

int python.hepunit.GeV = gigaelectronvolt

Definition at line 120 of file hepunit.py.

◆ gigaelectronvolt

int python.hepunit.gigaelectronvolt = 1.e+3*megaelectronvolt

Definition at line 110 of file hepunit.py.

◆ gram

int python.hepunit.gram = 1.e-3*kilogram

Definition at line 128 of file hepunit.py.

◆ gray

int python.hepunit.gray = joule/kilogram

Definition at line 219 of file hepunit.py.

◆ h_Planck

float python.hepunit.h_Planck = 6.6260755e-34 * joule*s

Definition at line 263 of file hepunit.py.

◆ halfpi

float python.hepunit.halfpi = pi/2.

Definition at line 249 of file hepunit.py.

◆ hbar_Planck

float python.hepunit.hbar_Planck = h_Planck/twopi

Definition at line 264 of file hepunit.py.

◆ hbarc

float python.hepunit.hbarc = hbar_Planck * c_light

Definition at line 265 of file hepunit.py.

◆ hbarc_squared

float python.hepunit.hbarc_squared = hbarc * hbarc

Definition at line 266 of file hepunit.py.

◆ henry

int python.hepunit.henry = weber/ampere

Definition at line 198 of file hepunit.py.

◆ hertz

int python.hepunit.hertz = 1./second

Definition at line 88 of file hepunit.py.

◆ joule

int python.hepunit.joule = electronvolt/e_SI

Definition at line 114 of file hepunit.py.

◆ k_Boltzmann

float python.hepunit.k_Boltzmann = 8.617385e-11 * MeV/kelvin

Definition at line 299 of file hepunit.py.

◆ kelvin

int python.hepunit.kelvin = 1.

Definition at line 203 of file hepunit.py.

◆ keV

int python.hepunit.keV = kiloelectronvolt

Definition at line 119 of file hepunit.py.

◆ kg

int python.hepunit.kg = kilogram

Definition at line 132 of file hepunit.py.

◆ kGasThreshold

int python.hepunit.kGasThreshold = 10.*mg/cm3

Definition at line 304 of file hepunit.py.

◆ kiloelectronvolt

int python.hepunit.kiloelectronvolt = 1.e-3*megaelectronvolt

Definition at line 109 of file hepunit.py.

◆ kilogauss

int python.hepunit.kilogauss = 1.e-1*tesla

Definition at line 193 of file hepunit.py.

◆ kilogram

int python.hepunit.kilogram = joule*second*second/(meter*meter)

Definition at line 127 of file hepunit.py.

◆ kilohertz

int python.hepunit.kilohertz = 1.e+3*hertz

Definition at line 89 of file hepunit.py.

◆ kilometer

int python.hepunit.kilometer = 1000.*meter

Definition at line 28 of file hepunit.py.

◆ kilometer2

int python.hepunit.kilometer2 = kilometer*kilometer

Definition at line 29 of file hepunit.py.

◆ kilometer3

int python.hepunit.kilometer3 = kilometer*kilometer*kilometer

Definition at line 30 of file hepunit.py.

◆ kilovolt

int python.hepunit.kilovolt = 1.e-3*megavolt

Definition at line 165 of file hepunit.py.

◆ km

int python.hepunit.km = kilometer

Definition at line 58 of file hepunit.py.

◆ km2

int python.hepunit.km2 = kilometer2

Definition at line 59 of file hepunit.py.

◆ km3

int python.hepunit.km3 = kilometer3

Definition at line 60 of file hepunit.py.

◆ lumen

int python.hepunit.lumen = candela*steradian

Definition at line 229 of file hepunit.py.

◆ lux

int python.hepunit.lux = lumen/meter2

Definition at line 234 of file hepunit.py.

◆ m

int python.hepunit.m = meter

Definition at line 54 of file hepunit.py.

◆ m2

int python.hepunit.m2 = meter2

Definition at line 55 of file hepunit.py.

◆ m3

int python.hepunit.m3 = meter3

Definition at line 56 of file hepunit.py.

◆ megaelectronvolt

int python.hepunit.megaelectronvolt = 1.

Definition at line 107 of file hepunit.py.

◆ megahertz

int python.hepunit.megahertz = 1.e+6*hertz

Definition at line 90 of file hepunit.py.

◆ megavolt

int python.hepunit.megavolt = megaelectronvolt/eplus

Definition at line 164 of file hepunit.py.

◆ meter

int python.hepunit.meter = 1000.*millimeter

Definition at line 24 of file hepunit.py.

◆ meter2

int python.hepunit.meter2 = meter*meter

Definition at line 25 of file hepunit.py.

◆ meter3

int python.hepunit.meter3 = meter*meter*meter

Definition at line 26 of file hepunit.py.

◆ MeV

int python.hepunit.MeV = megaelectronvolt

Definition at line 117 of file hepunit.py.

◆ mg

int python.hepunit.mg = milligram

Definition at line 134 of file hepunit.py.

◆ microampere

int python.hepunit.microampere = 1.e-6*ampere

Definition at line 158 of file hepunit.py.

◆ microbarn

int python.hepunit.microbarn = 1.e-6 *barn

Definition at line 41 of file hepunit.py.

◆ microfarad

int python.hepunit.microfarad = 1.e-6*farad

Definition at line 178 of file hepunit.py.

◆ micrometer

int python.hepunit.micrometer = 1.e-6 *meter

Definition at line 34 of file hepunit.py.

◆ microsecond

int python.hepunit.microsecond = 1.e-6 *second

Definition at line 85 of file hepunit.py.

◆ milliampere

int python.hepunit.milliampere = 1.e-3*ampere

Definition at line 157 of file hepunit.py.

◆ millibarn

int python.hepunit.millibarn = 1.e-3 *barn

Definition at line 40 of file hepunit.py.

◆ millifarad

int python.hepunit.millifarad = 1.e-3*farad

Definition at line 177 of file hepunit.py.

◆ milligram

int python.hepunit.milligram = 1.e-3*gram

Definition at line 129 of file hepunit.py.

◆ millimeter

int python.hepunit.millimeter = 1.

Definition at line 16 of file hepunit.py.

◆ millimeter2

int python.hepunit.millimeter2 = millimeter*millimeter

Definition at line 17 of file hepunit.py.

◆ millimeter3

int python.hepunit.millimeter3 = millimeter*millimeter*millimeter

Definition at line 18 of file hepunit.py.

◆ milliradian

int python.hepunit.milliradian = 1.e-3*radian

Definition at line 68 of file hepunit.py.

◆ millisecond

int python.hepunit.millisecond = 1.e-3 *second

Definition at line 84 of file hepunit.py.

◆ mm

int python.hepunit.mm = millimeter

Definition at line 46 of file hepunit.py.

◆ mm2

int python.hepunit.mm2 = millimeter2

Definition at line 47 of file hepunit.py.

◆ mm3

int python.hepunit.mm3 = millimeter3

Definition at line 48 of file hepunit.py.

◆ mole

int python.hepunit.mole = 1.

Definition at line 208 of file hepunit.py.

◆ mrad

int python.hepunit.mrad = milliradian

Definition at line 75 of file hepunit.py.

◆ ms

int python.hepunit.ms = millisecond

Definition at line 95 of file hepunit.py.

◆ mu0

int python.hepunit.mu0 = 4*pi*1.e-7 * henry/m

Definition at line 282 of file hepunit.py.

◆ nanoampere

int python.hepunit.nanoampere = 1.e-9*ampere

Definition at line 159 of file hepunit.py.

◆ nanobarn

int python.hepunit.nanobarn = 1.e-9 *barn

Definition at line 42 of file hepunit.py.

◆ nanofarad

int python.hepunit.nanofarad = 1.e-9*farad

Definition at line 179 of file hepunit.py.

◆ nanometer

int python.hepunit.nanometer = 1.e-9 *meter

Definition at line 35 of file hepunit.py.

◆ nanosecond

int python.hepunit.nanosecond = 1.

Definition at line 82 of file hepunit.py.

◆ neutron_mass_c2

float python.hepunit.neutron_mass_c2 = 939.56563 * MeV

Definition at line 276 of file hepunit.py.

◆ newton

int python.hepunit.newton = joule/meter

Definition at line 144 of file hepunit.py.

◆ ns

int python.hepunit.ns = nanosecond

Definition at line 93 of file hepunit.py.

◆ ohm

int python.hepunit.ohm = volt/ampere

Definition at line 171 of file hepunit.py.

◆ parsec

float python.hepunit.parsec = 3.0856775807e+16*meter

Definition at line 32 of file hepunit.py.

◆ pascal

int python.hepunit.pascal = newton/m2

Definition at line 149 of file hepunit.py.

◆ pc

float python.hepunit.pc = parsec

Definition at line 62 of file hepunit.py.

◆ perCent

float python.hepunit.perCent = 0.01

Definition at line 239 of file hepunit.py.

◆ perMillion

float python.hepunit.perMillion = 0.000001

Definition at line 241 of file hepunit.py.

◆ perThousand

float python.hepunit.perThousand = 0.001

Definition at line 240 of file hepunit.py.

◆ petaelectronvolt

int python.hepunit.petaelectronvolt = 1.e+9*megaelectronvolt

Definition at line 112 of file hepunit.py.

◆ PeV

int python.hepunit.PeV = petaelectronvolt

Definition at line 122 of file hepunit.py.

◆ pi

float python.hepunit.pi = 3.14159265358979323846

Definition at line 247 of file hepunit.py.

◆ pi2

float python.hepunit.pi2 = pi*pi

Definition at line 250 of file hepunit.py.

◆ picobarn

int python.hepunit.picobarn = 1.e-12*barn

Definition at line 43 of file hepunit.py.

◆ picofarad

int python.hepunit.picofarad = 1.e-12*farad

Definition at line 180 of file hepunit.py.

◆ picosecond

int python.hepunit.picosecond = 1.e-12*second

Definition at line 86 of file hepunit.py.

◆ proton_mass_c2

float python.hepunit.proton_mass_c2 = 938.27231 * MeV

Definition at line 275 of file hepunit.py.

◆ rad

int python.hepunit.rad = radian

Definition at line 74 of file hepunit.py.

◆ radian

int python.hepunit.radian = 1.

Definition at line 67 of file hepunit.py.

◆ s

int python.hepunit.s = second

Definition at line 94 of file hepunit.py.

◆ second

int python.hepunit.second = 1.e+9 *nanosecond

Definition at line 83 of file hepunit.py.

◆ sr

int python.hepunit.sr = steradian

Definition at line 76 of file hepunit.py.

◆ steradian

int python.hepunit.steradian = 1.

Definition at line 71 of file hepunit.py.

◆ STP_Pressure

int python.hepunit.STP_Pressure = 1.*atmosphere

Definition at line 303 of file hepunit.py.

◆ STP_Temperature

float python.hepunit.STP_Temperature = 273.15*kelvin

Definition at line 302 of file hepunit.py.

◆ teraelectronvolt

int python.hepunit.teraelectronvolt = 1.e+6*megaelectronvolt

Definition at line 111 of file hepunit.py.

◆ tesla

int python.hepunit.tesla = volt*second/meter2

Definition at line 190 of file hepunit.py.

◆ TeV

int python.hepunit.TeV = teraelectronvolt

Definition at line 121 of file hepunit.py.

◆ twopi

int python.hepunit.twopi = 2.*pi

Definition at line 248 of file hepunit.py.

◆ twopi_mc2_rcl2

int python.hepunit.twopi_mc2_rcl2 = twopi * electron_mass_c2 \

Definition at line 294 of file hepunit.py.

◆ universe_mean_density

int python.hepunit.universe_mean_density = 1.e-25*g/cm3

Definition at line 307 of file hepunit.py.

◆ volt

int python.hepunit.volt = 1.e-6*megavolt

Definition at line 166 of file hepunit.py.

◆ watt

int python.hepunit.watt = joule/second

Definition at line 139 of file hepunit.py.

◆ weber

int python.hepunit.weber = volt*second

Definition at line 185 of file hepunit.py.