FairShip
Loading...
Searching...
No Matches
hepunit Namespace Reference

Variables

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

Definition at line 295 of file hepunit.py.

◆ ampere

float hepunit.ampere = coulomb / second

Definition at line 159 of file hepunit.py.

◆ amu

float hepunit.amu = amu_c2 / c_squared

Definition at line 281 of file hepunit.py.

◆ amu_c2

float hepunit.amu_c2 = 931.49432 * MeV

Definition at line 280 of file hepunit.py.

◆ angstrom

float hepunit.angstrom = 1.0e-10 * meter

Definition at line 39 of file hepunit.py.

◆ atmosphere

int hepunit.atmosphere = 101325 * pascal

Definition at line 154 of file hepunit.py.

◆ Avogadro

float hepunit.Avogadro = 6.0221367e23 / mole

Definition at line 256 of file hepunit.py.

◆ bar

int hepunit.bar = 100000 * pascal

Definition at line 153 of file hepunit.py.

◆ barn

float hepunit.barn = 1.0e-28 * meter2

Definition at line 42 of file hepunit.py.

◆ becquerel

float hepunit.becquerel = 1.0 / second

Definition at line 216 of file hepunit.py.

◆ Bohr_radius

float hepunit.Bohr_radius = electron_Compton_length / fine_structure_const

Definition at line 293 of file hepunit.py.

◆ c_light

float hepunit.c_light = 2.99792458e8 * m / s

Definition at line 260 of file hepunit.py.

◆ c_squared

float hepunit.c_squared = c_light * c_light

Definition at line 261 of file hepunit.py.

◆ candela

float hepunit.candela = 1.0

Definition at line 227 of file hepunit.py.

◆ centimeter

float hepunit.centimeter = 10.0 * millimeter

Definition at line 23 of file hepunit.py.

◆ centimeter2

float hepunit.centimeter2 = centimeter * centimeter

Definition at line 24 of file hepunit.py.

◆ centimeter3

float hepunit.centimeter3 = centimeter * centimeter * centimeter

Definition at line 25 of file hepunit.py.

◆ classic_electr_radius

float hepunit.classic_electr_radius = elm_coupling / electron_mass_c2

Definition at line 291 of file hepunit.py.

◆ cm

float hepunit.cm = centimeter

Definition at line 53 of file hepunit.py.

◆ cm2

float hepunit.cm2 = centimeter2

Definition at line 54 of file hepunit.py.

◆ cm3

float hepunit.cm3 = centimeter3

Definition at line 55 of file hepunit.py.

◆ coulomb

float hepunit.coulomb = eplus / e_SI

Definition at line 105 of file hepunit.py.

◆ curie

float hepunit.curie = 3.7e10 * becquerel

Definition at line 217 of file hepunit.py.

◆ deg

tuple hepunit.deg = degree

Definition at line 80 of file hepunit.py.

◆ degree

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

Definition at line 72 of file hepunit.py.

◆ e_SI

float hepunit.e_SI = 1.60217733e-19

Definition at line 104 of file hepunit.py.

◆ e_squared

float hepunit.e_squared = eplus * eplus

Definition at line 273 of file hepunit.py.

◆ electron_charge

float hepunit.electron_charge = -eplus

Definition at line 272 of file hepunit.py.

◆ electron_Compton_length

float hepunit.electron_Compton_length = hbarc / electron_mass_c2

Definition at line 292 of file hepunit.py.

◆ electron_mass_c2

float hepunit.electron_mass_c2 = 0.51099906 * MeV

Definition at line 277 of file hepunit.py.

◆ electronvolt

float hepunit.electronvolt = 1.0e-6 * megaelectronvolt

Definition at line 111 of file hepunit.py.

◆ elm_coupling

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

Definition at line 289 of file hepunit.py.

◆ eplus

float hepunit.eplus = 1.0

Definition at line 103 of file hepunit.py.

◆ epsilon0

float hepunit.epsilon0 = 1.0 / (c_squared * mu0)

Definition at line 286 of file hepunit.py.

◆ eV

float hepunit.eV = electronvolt

Definition at line 121 of file hepunit.py.

◆ farad

float hepunit.farad = coulomb / volt

Definition at line 179 of file hepunit.py.

◆ fermi

float hepunit.fermi = 1.0e-15 * meter

Definition at line 40 of file hepunit.py.

◆ fine_structure_const

float hepunit.fine_structure_const = elm_coupling / hbarc

Definition at line 290 of file hepunit.py.

◆ g

float hepunit.g = gram

Definition at line 136 of file hepunit.py.

◆ gauss

float hepunit.gauss = 1.0e-4 * tesla

Definition at line 195 of file hepunit.py.

◆ GeV

float hepunit.GeV = gigaelectronvolt

Definition at line 123 of file hepunit.py.

◆ gigaelectronvolt

float hepunit.gigaelectronvolt = 1.0e3 * megaelectronvolt

Definition at line 113 of file hepunit.py.

◆ gram

float hepunit.gram = 1.0e-3 * kilogram

Definition at line 131 of file hepunit.py.

◆ gray

float hepunit.gray = joule / kilogram

Definition at line 222 of file hepunit.py.

◆ h_Planck

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

Definition at line 266 of file hepunit.py.

◆ halfpi

float hepunit.halfpi = pi / 2.0

Definition at line 252 of file hepunit.py.

◆ hbar_Planck

float hepunit.hbar_Planck = h_Planck / twopi

Definition at line 267 of file hepunit.py.

◆ hbarc

float hepunit.hbarc = hbar_Planck * c_light

Definition at line 268 of file hepunit.py.

◆ hbarc_squared

float hepunit.hbarc_squared = hbarc * hbarc

Definition at line 269 of file hepunit.py.

◆ henry

float hepunit.henry = weber / ampere

Definition at line 201 of file hepunit.py.

◆ hertz

float hepunit.hertz = 1.0 / second

Definition at line 91 of file hepunit.py.

◆ joule

float hepunit.joule = electronvolt / e_SI

Definition at line 117 of file hepunit.py.

◆ k_Boltzmann

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

Definition at line 299 of file hepunit.py.

◆ kelvin

float hepunit.kelvin = 1.0

Definition at line 206 of file hepunit.py.

◆ keV

float hepunit.keV = kiloelectronvolt

Definition at line 122 of file hepunit.py.

◆ kg

float hepunit.kg = kilogram

Definition at line 135 of file hepunit.py.

◆ kGasThreshold

float hepunit.kGasThreshold = 10.0 * mg / cm3

Definition at line 304 of file hepunit.py.

◆ kiloelectronvolt

float hepunit.kiloelectronvolt = 1.0e-3 * megaelectronvolt

Definition at line 112 of file hepunit.py.

◆ kilogauss

float hepunit.kilogauss = 1.0e-1 * tesla

Definition at line 196 of file hepunit.py.

◆ kilogram

float hepunit.kilogram = joule * second * second / (meter * meter)

Definition at line 130 of file hepunit.py.

◆ kilohertz

float hepunit.kilohertz = 1.0e3 * hertz

Definition at line 92 of file hepunit.py.

◆ kilometer

float hepunit.kilometer = 1000.0 * meter

Definition at line 31 of file hepunit.py.

◆ kilometer2

float hepunit.kilometer2 = kilometer * kilometer

Definition at line 32 of file hepunit.py.

◆ kilometer3

float hepunit.kilometer3 = kilometer * kilometer * kilometer

Definition at line 33 of file hepunit.py.

◆ kilovolt

float hepunit.kilovolt = 1.0e-3 * megavolt

Definition at line 168 of file hepunit.py.

◆ km

float hepunit.km = kilometer

Definition at line 61 of file hepunit.py.

◆ km2

float hepunit.km2 = kilometer2

Definition at line 62 of file hepunit.py.

◆ km3

float hepunit.km3 = kilometer3

Definition at line 63 of file hepunit.py.

◆ lumen

float hepunit.lumen = candela * steradian

Definition at line 232 of file hepunit.py.

◆ lux

float hepunit.lux = lumen / meter2

Definition at line 237 of file hepunit.py.

◆ m

float hepunit.m = meter

Definition at line 57 of file hepunit.py.

◆ m2

float hepunit.m2 = meter2

Definition at line 58 of file hepunit.py.

◆ m3

float hepunit.m3 = meter3

Definition at line 59 of file hepunit.py.

◆ megaelectronvolt

float hepunit.megaelectronvolt = 1.0

Definition at line 110 of file hepunit.py.

◆ megahertz

float hepunit.megahertz = 1.0e6 * hertz

Definition at line 93 of file hepunit.py.

◆ megavolt

float hepunit.megavolt = megaelectronvolt / eplus

Definition at line 167 of file hepunit.py.

◆ meter

float hepunit.meter = 1000.0 * millimeter

Definition at line 27 of file hepunit.py.

◆ meter2

float hepunit.meter2 = meter * meter

Definition at line 28 of file hepunit.py.

◆ meter3

float hepunit.meter3 = meter * meter * meter

Definition at line 29 of file hepunit.py.

◆ MeV

float hepunit.MeV = megaelectronvolt

Definition at line 120 of file hepunit.py.

◆ mg

float hepunit.mg = milligram

Definition at line 137 of file hepunit.py.

◆ microampere

float hepunit.microampere = 1.0e-6 * ampere

Definition at line 161 of file hepunit.py.

◆ microbarn

float hepunit.microbarn = 1.0e-6 * barn

Definition at line 44 of file hepunit.py.

◆ microfarad

float hepunit.microfarad = 1.0e-6 * farad

Definition at line 181 of file hepunit.py.

◆ micrometer

float hepunit.micrometer = 1.0e-6 * meter

Definition at line 37 of file hepunit.py.

◆ microsecond

float hepunit.microsecond = 1.0e-6 * second

Definition at line 88 of file hepunit.py.

◆ milliampere

float hepunit.milliampere = 1.0e-3 * ampere

Definition at line 160 of file hepunit.py.

◆ millibarn

float hepunit.millibarn = 1.0e-3 * barn

Definition at line 43 of file hepunit.py.

◆ millifarad

float hepunit.millifarad = 1.0e-3 * farad

Definition at line 180 of file hepunit.py.

◆ milligram

float hepunit.milligram = 1.0e-3 * gram

Definition at line 132 of file hepunit.py.

◆ millimeter

float hepunit.millimeter = 1.0

Definition at line 19 of file hepunit.py.

◆ millimeter2

float hepunit.millimeter2 = millimeter * millimeter

Definition at line 20 of file hepunit.py.

◆ millimeter3

float hepunit.millimeter3 = millimeter * millimeter * millimeter

Definition at line 21 of file hepunit.py.

◆ milliradian

float hepunit.milliradian = 1.0e-3 * radian

Definition at line 71 of file hepunit.py.

◆ millisecond

float hepunit.millisecond = 1.0e-3 * second

Definition at line 87 of file hepunit.py.

◆ mm

float hepunit.mm = millimeter

Definition at line 49 of file hepunit.py.

◆ mm2

float hepunit.mm2 = millimeter2

Definition at line 50 of file hepunit.py.

◆ mm3

float hepunit.mm3 = millimeter3

Definition at line 51 of file hepunit.py.

◆ mole

float hepunit.mole = 1.0

Definition at line 211 of file hepunit.py.

◆ mrad

float hepunit.mrad = milliradian

Definition at line 78 of file hepunit.py.

◆ ms

float hepunit.ms = millisecond

Definition at line 98 of file hepunit.py.

◆ mu0

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

Definition at line 285 of file hepunit.py.

◆ nanoampere

float hepunit.nanoampere = 1.0e-9 * ampere

Definition at line 162 of file hepunit.py.

◆ nanobarn

float hepunit.nanobarn = 1.0e-9 * barn

Definition at line 45 of file hepunit.py.

◆ nanofarad

float hepunit.nanofarad = 1.0e-9 * farad

Definition at line 182 of file hepunit.py.

◆ nanometer

float hepunit.nanometer = 1.0e-9 * meter

Definition at line 38 of file hepunit.py.

◆ nanosecond

float hepunit.nanosecond = 1.0

Definition at line 85 of file hepunit.py.

◆ neutron_mass_c2

float hepunit.neutron_mass_c2 = 939.56563 * MeV

Definition at line 279 of file hepunit.py.

◆ newton

float hepunit.newton = joule / meter

Definition at line 147 of file hepunit.py.

◆ ns

float hepunit.ns = nanosecond

Definition at line 96 of file hepunit.py.

◆ ohm

float hepunit.ohm = volt / ampere

Definition at line 174 of file hepunit.py.

◆ parsec

float hepunit.parsec = 3.0856775807e16 * meter

Definition at line 35 of file hepunit.py.

◆ pascal

float hepunit.pascal = newton / m2

Definition at line 152 of file hepunit.py.

◆ pc

float hepunit.pc = parsec

Definition at line 65 of file hepunit.py.

◆ perCent

float hepunit.perCent = 0.01

Definition at line 242 of file hepunit.py.

◆ perMillion

float hepunit.perMillion = 0.000001

Definition at line 244 of file hepunit.py.

◆ perThousand

float hepunit.perThousand = 0.001

Definition at line 243 of file hepunit.py.

◆ petaelectronvolt

float hepunit.petaelectronvolt = 1.0e9 * megaelectronvolt

Definition at line 115 of file hepunit.py.

◆ PeV

float hepunit.PeV = petaelectronvolt

Definition at line 125 of file hepunit.py.

◆ pi

float hepunit.pi = 3.14159265358979323846

Definition at line 250 of file hepunit.py.

◆ pi2

float hepunit.pi2 = pi * pi

Definition at line 253 of file hepunit.py.

◆ picobarn

float hepunit.picobarn = 1.0e-12 * barn

Definition at line 46 of file hepunit.py.

◆ picofarad

float hepunit.picofarad = 1.0e-12 * farad

Definition at line 183 of file hepunit.py.

◆ picosecond

float hepunit.picosecond = 1.0e-12 * second

Definition at line 89 of file hepunit.py.

◆ proton_mass_c2

float hepunit.proton_mass_c2 = 938.27231 * MeV

Definition at line 278 of file hepunit.py.

◆ rad

float hepunit.rad = radian

Definition at line 77 of file hepunit.py.

◆ radian

float hepunit.radian = 1.0

Definition at line 70 of file hepunit.py.

◆ s

float hepunit.s = second

Definition at line 97 of file hepunit.py.

◆ second

float hepunit.second = 1.0e9 * nanosecond

Definition at line 86 of file hepunit.py.

◆ sr

float hepunit.sr = steradian

Definition at line 79 of file hepunit.py.

◆ steradian

float hepunit.steradian = 1.0

Definition at line 74 of file hepunit.py.

◆ STP_Pressure

float hepunit.STP_Pressure = 1.0 * atmosphere

Definition at line 303 of file hepunit.py.

◆ STP_Temperature

float hepunit.STP_Temperature = 273.15 * kelvin

Definition at line 302 of file hepunit.py.

◆ teraelectronvolt

float hepunit.teraelectronvolt = 1.0e6 * megaelectronvolt

Definition at line 114 of file hepunit.py.

◆ tesla

float hepunit.tesla = volt * second / meter2

Definition at line 193 of file hepunit.py.

◆ TeV

float hepunit.TeV = teraelectronvolt

Definition at line 124 of file hepunit.py.

◆ twopi

float hepunit.twopi = 2.0 * pi

Definition at line 251 of file hepunit.py.

◆ twopi_mc2_rcl2

float hepunit.twopi_mc2_rcl2 = twopi * electron_mass_c2 * classic_electr_radius * classic_electr_radius

Definition at line 296 of file hepunit.py.

◆ universe_mean_density

float hepunit.universe_mean_density = 1.0e-25 * g / cm3

Definition at line 307 of file hepunit.py.

◆ volt

float hepunit.volt = 1.0e-6 * megavolt

Definition at line 169 of file hepunit.py.

◆ watt

float hepunit.watt = joule / second

Definition at line 142 of file hepunit.py.

◆ weber

float hepunit.weber = volt * second

Definition at line 188 of file hepunit.py.