SND@LHC Software
Loading...
Searching...
No Matches
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
 
int twopi_mc2_rcl2
 
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 hepunit.alpha_rcl2
Initial value:
1= fine_structure_const * classic_electr_radius \
2 * classic_electr_radius

Definition at line 294 of file hepunit.py.

◆ ampere

int hepunit.ampere = coulomb/second

Definition at line 158 of file hepunit.py.

◆ amu

float hepunit.amu = amu_c2/c_squared

Definition at line 280 of file hepunit.py.

◆ amu_c2

float hepunit.amu_c2 = 931.49432 * MeV

Definition at line 279 of file hepunit.py.

◆ angstrom

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

Definition at line 38 of file hepunit.py.

◆ atmosphere

int hepunit.atmosphere = 101325*pascal

Definition at line 153 of file hepunit.py.

◆ Avogadro

float hepunit.Avogadro = 6.0221367e+23/mole

Definition at line 255 of file hepunit.py.

◆ bar

int hepunit.bar = 100000*pascal

Definition at line 152 of file hepunit.py.

◆ barn

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

Definition at line 41 of file hepunit.py.

◆ becquerel

int hepunit.becquerel = 1./second

Definition at line 215 of file hepunit.py.

◆ Bohr_radius

float hepunit.Bohr_radius = electron_Compton_length/fine_structure_const

Definition at line 292 of file hepunit.py.

◆ c_light

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

Definition at line 259 of file hepunit.py.

◆ c_squared

float hepunit.c_squared = c_light * c_light

Definition at line 260 of file hepunit.py.

◆ candela

int hepunit.candela = 1.

Definition at line 226 of file hepunit.py.

◆ centimeter

int hepunit.centimeter = 10.*millimeter

Definition at line 22 of file hepunit.py.

◆ centimeter2

int hepunit.centimeter2 = centimeter*centimeter

Definition at line 23 of file hepunit.py.

◆ centimeter3

int hepunit.centimeter3 = centimeter*centimeter*centimeter

Definition at line 24 of file hepunit.py.

◆ classic_electr_radius

int hepunit.classic_electr_radius = elm_coupling/electron_mass_c2

Definition at line 290 of file hepunit.py.

◆ cm

int hepunit.cm = centimeter

Definition at line 52 of file hepunit.py.

◆ cm2

int hepunit.cm2 = centimeter2

Definition at line 53 of file hepunit.py.

◆ cm3

int hepunit.cm3 = centimeter3

Definition at line 54 of file hepunit.py.

◆ coulomb

int hepunit.coulomb = eplus/e_SI

Definition at line 104 of file hepunit.py.

◆ curie

float hepunit.curie = 3.7e+10 * becquerel

Definition at line 216 of file hepunit.py.

◆ deg

tuple hepunit.deg = degree

Definition at line 79 of file hepunit.py.

◆ degree

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

Definition at line 71 of file hepunit.py.

◆ e_SI

float hepunit.e_SI = 1.60217733e-19

Definition at line 103 of file hepunit.py.

◆ e_squared

int hepunit.e_squared = eplus * eplus

Definition at line 272 of file hepunit.py.

◆ electron_charge

int hepunit.electron_charge = - eplus

Definition at line 271 of file hepunit.py.

◆ electron_Compton_length

float hepunit.electron_Compton_length = hbarc/electron_mass_c2

Definition at line 291 of file hepunit.py.

◆ electron_mass_c2

float hepunit.electron_mass_c2 = 0.51099906 * MeV

Definition at line 276 of file hepunit.py.

◆ electronvolt

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

Definition at line 110 of file hepunit.py.

◆ elm_coupling

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

Definition at line 288 of file hepunit.py.

◆ eplus

int hepunit.eplus = 1.

Definition at line 102 of file hepunit.py.

◆ epsilon0

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

Definition at line 285 of file hepunit.py.

◆ eV

int hepunit.eV = electronvolt

Definition at line 120 of file hepunit.py.

◆ farad

int hepunit.farad = coulomb/volt

Definition at line 178 of file hepunit.py.

◆ fermi

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

Definition at line 39 of file hepunit.py.

◆ fine_structure_const

int hepunit.fine_structure_const = elm_coupling/hbarc

Definition at line 289 of file hepunit.py.

◆ g

int hepunit.g = gram

Definition at line 135 of file hepunit.py.

◆ gauss

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

Definition at line 194 of file hepunit.py.

◆ GeV

int hepunit.GeV = gigaelectronvolt

Definition at line 122 of file hepunit.py.

◆ gigaelectronvolt

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

Definition at line 112 of file hepunit.py.

◆ gram

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

Definition at line 130 of file hepunit.py.

◆ gray

int hepunit.gray = joule/kilogram

Definition at line 221 of file hepunit.py.

◆ h_Planck

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

Definition at line 265 of file hepunit.py.

◆ halfpi

float hepunit.halfpi = pi/2.

Definition at line 251 of file hepunit.py.

◆ hbar_Planck

float hepunit.hbar_Planck = h_Planck/twopi

Definition at line 266 of file hepunit.py.

◆ hbarc

float hepunit.hbarc = hbar_Planck * c_light

Definition at line 267 of file hepunit.py.

◆ hbarc_squared

float hepunit.hbarc_squared = hbarc * hbarc

Definition at line 268 of file hepunit.py.

◆ henry

int hepunit.henry = weber/ampere

Definition at line 200 of file hepunit.py.

◆ hertz

int hepunit.hertz = 1./second

Definition at line 90 of file hepunit.py.

◆ joule

int hepunit.joule = electronvolt/e_SI

Definition at line 116 of file hepunit.py.

◆ k_Boltzmann

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

Definition at line 301 of file hepunit.py.

◆ kelvin

int hepunit.kelvin = 1.

Definition at line 205 of file hepunit.py.

◆ keV

int hepunit.keV = kiloelectronvolt

Definition at line 121 of file hepunit.py.

◆ kg

int hepunit.kg = kilogram

Definition at line 134 of file hepunit.py.

◆ kGasThreshold

int hepunit.kGasThreshold = 10.*mg/cm3

Definition at line 306 of file hepunit.py.

◆ kiloelectronvolt

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

Definition at line 111 of file hepunit.py.

◆ kilogauss

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

Definition at line 195 of file hepunit.py.

◆ kilogram

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

Definition at line 129 of file hepunit.py.

◆ kilohertz

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

Definition at line 91 of file hepunit.py.

◆ kilometer

int hepunit.kilometer = 1000.*meter

Definition at line 30 of file hepunit.py.

◆ kilometer2

int hepunit.kilometer2 = kilometer*kilometer

Definition at line 31 of file hepunit.py.

◆ kilometer3

int hepunit.kilometer3 = kilometer*kilometer*kilometer

Definition at line 32 of file hepunit.py.

◆ kilovolt

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

Definition at line 167 of file hepunit.py.

◆ km

int hepunit.km = kilometer

Definition at line 60 of file hepunit.py.

◆ km2

int hepunit.km2 = kilometer2

Definition at line 61 of file hepunit.py.

◆ km3

int hepunit.km3 = kilometer3

Definition at line 62 of file hepunit.py.

◆ lumen

int hepunit.lumen = candela*steradian

Definition at line 231 of file hepunit.py.

◆ lux

int hepunit.lux = lumen/meter2

Definition at line 236 of file hepunit.py.

◆ m

int hepunit.m = meter

Definition at line 56 of file hepunit.py.

◆ m2

int hepunit.m2 = meter2

Definition at line 57 of file hepunit.py.

◆ m3

int hepunit.m3 = meter3

Definition at line 58 of file hepunit.py.

◆ megaelectronvolt

int hepunit.megaelectronvolt = 1.

Definition at line 109 of file hepunit.py.

◆ megahertz

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

Definition at line 92 of file hepunit.py.

◆ megavolt

int hepunit.megavolt = megaelectronvolt/eplus

Definition at line 166 of file hepunit.py.

◆ meter

int hepunit.meter = 1000.*millimeter

Definition at line 26 of file hepunit.py.

◆ meter2

int hepunit.meter2 = meter*meter

Definition at line 27 of file hepunit.py.

◆ meter3

int hepunit.meter3 = meter*meter*meter

Definition at line 28 of file hepunit.py.

◆ MeV

int hepunit.MeV = megaelectronvolt

Definition at line 119 of file hepunit.py.

◆ mg

int hepunit.mg = milligram

Definition at line 136 of file hepunit.py.

◆ microampere

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

Definition at line 160 of file hepunit.py.

◆ microbarn

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

Definition at line 43 of file hepunit.py.

◆ microfarad

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

Definition at line 180 of file hepunit.py.

◆ micrometer

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

Definition at line 36 of file hepunit.py.

◆ microsecond

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

Definition at line 87 of file hepunit.py.

◆ milliampere

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

Definition at line 159 of file hepunit.py.

◆ millibarn

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

Definition at line 42 of file hepunit.py.

◆ millifarad

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

Definition at line 179 of file hepunit.py.

◆ milligram

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

Definition at line 131 of file hepunit.py.

◆ millimeter

int hepunit.millimeter = 1.

Definition at line 18 of file hepunit.py.

◆ millimeter2

int hepunit.millimeter2 = millimeter*millimeter

Definition at line 19 of file hepunit.py.

◆ millimeter3

int hepunit.millimeter3 = millimeter*millimeter*millimeter

Definition at line 20 of file hepunit.py.

◆ milliradian

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

Definition at line 70 of file hepunit.py.

◆ millisecond

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

Definition at line 86 of file hepunit.py.

◆ mm

int hepunit.mm = millimeter

Definition at line 48 of file hepunit.py.

◆ mm2

int hepunit.mm2 = millimeter2

Definition at line 49 of file hepunit.py.

◆ mm3

int hepunit.mm3 = millimeter3

Definition at line 50 of file hepunit.py.

◆ mole

int hepunit.mole = 1.

Definition at line 210 of file hepunit.py.

◆ mrad

int hepunit.mrad = milliradian

Definition at line 77 of file hepunit.py.

◆ ms

int hepunit.ms = millisecond

Definition at line 97 of file hepunit.py.

◆ mu0

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

Definition at line 284 of file hepunit.py.

◆ nanoampere

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

Definition at line 161 of file hepunit.py.

◆ nanobarn

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

Definition at line 44 of file hepunit.py.

◆ nanofarad

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

Definition at line 181 of file hepunit.py.

◆ nanometer

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

Definition at line 37 of file hepunit.py.

◆ nanosecond

int hepunit.nanosecond = 1.

Definition at line 84 of file hepunit.py.

◆ neutron_mass_c2

float hepunit.neutron_mass_c2 = 939.56563 * MeV

Definition at line 278 of file hepunit.py.

◆ newton

int hepunit.newton = joule/meter

Definition at line 146 of file hepunit.py.

◆ ns

int hepunit.ns = nanosecond

Definition at line 95 of file hepunit.py.

◆ ohm

int hepunit.ohm = volt/ampere

Definition at line 173 of file hepunit.py.

◆ parsec

float hepunit.parsec = 3.0856775807e+16*meter

Definition at line 34 of file hepunit.py.

◆ pascal

int hepunit.pascal = newton/m2

Definition at line 151 of file hepunit.py.

◆ pc

float hepunit.pc = parsec

Definition at line 64 of file hepunit.py.

◆ perCent

float hepunit.perCent = 0.01

Definition at line 241 of file hepunit.py.

◆ perMillion

float hepunit.perMillion = 0.000001

Definition at line 243 of file hepunit.py.

◆ perThousand

float hepunit.perThousand = 0.001

Definition at line 242 of file hepunit.py.

◆ petaelectronvolt

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

Definition at line 114 of file hepunit.py.

◆ PeV

int hepunit.PeV = petaelectronvolt

Definition at line 124 of file hepunit.py.

◆ pi

float hepunit.pi = 3.14159265358979323846

Definition at line 249 of file hepunit.py.

◆ pi2

float hepunit.pi2 = pi*pi

Definition at line 252 of file hepunit.py.

◆ picobarn

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

Definition at line 45 of file hepunit.py.

◆ picofarad

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

Definition at line 182 of file hepunit.py.

◆ picosecond

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

Definition at line 88 of file hepunit.py.

◆ proton_mass_c2

float hepunit.proton_mass_c2 = 938.27231 * MeV

Definition at line 277 of file hepunit.py.

◆ rad

int hepunit.rad = radian

Definition at line 76 of file hepunit.py.

◆ radian

int hepunit.radian = 1.

Definition at line 69 of file hepunit.py.

◆ s

int hepunit.s = second

Definition at line 96 of file hepunit.py.

◆ second

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

Definition at line 85 of file hepunit.py.

◆ sr

int hepunit.sr = steradian

Definition at line 78 of file hepunit.py.

◆ steradian

int hepunit.steradian = 1.

Definition at line 73 of file hepunit.py.

◆ STP_Pressure

int hepunit.STP_Pressure = 1.*atmosphere

Definition at line 305 of file hepunit.py.

◆ STP_Temperature

float hepunit.STP_Temperature = 273.15*kelvin

Definition at line 304 of file hepunit.py.

◆ teraelectronvolt

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

Definition at line 113 of file hepunit.py.

◆ tesla

int hepunit.tesla = volt*second/meter2

Definition at line 192 of file hepunit.py.

◆ TeV

int hepunit.TeV = teraelectronvolt

Definition at line 123 of file hepunit.py.

◆ twopi

int hepunit.twopi = 2.*pi

Definition at line 250 of file hepunit.py.

◆ twopi_mc2_rcl2

int hepunit.twopi_mc2_rcl2
Initial value:
1= twopi * electron_mass_c2 \
2 * classic_electr_radius \
3 * classic_electr_radius

Definition at line 296 of file hepunit.py.

◆ universe_mean_density

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

Definition at line 309 of file hepunit.py.

◆ volt

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

Definition at line 168 of file hepunit.py.

◆ watt

int hepunit.watt = joule/second

Definition at line 141 of file hepunit.py.

◆ weber

int hepunit.weber = volt*second

Definition at line 187 of file hepunit.py.