SND@LHC Software
Loading...
Searching...
No Matches
shipunit Namespace Reference

Variables

int millimeter = 1./10.
 
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 um = micrometer
 
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./1000.
 
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 kilogauss = 1.
 
int tesla = 10*kilogauss
 
int gauss = 1.e-4*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
 
int speedOfLight = 299792458*m/s
 
float snd_freq = 160.316*megahertz
 
tuple snd_TDC2ns = (1E9/snd_freq)*ns
 

Detailed Description

# ==================================================================
#   Python module
#
#   This module defines physical units and constants used in HEP,
#   which are imported from CLHEP library, matched to be used for 
#        FAIROOT
#   centimeter = 1   
#   GeV        = 1 
#                                              Q, 2005
# ==================================================================

Variable Documentation

◆ alpha_rcl2

int shipunit.alpha_rcl2
Initial value:
1= fine_structure_const * classic_electr_radius \
2 * classic_electr_radius

Definition at line 302 of file shipunit.py.

◆ ampere

int shipunit.ampere = coulomb/second

Definition at line 162 of file shipunit.py.

◆ amu

float shipunit.amu = amu_c2/c_squared

Definition at line 288 of file shipunit.py.

◆ amu_c2

float shipunit.amu_c2 = 931.49432 * MeV

Definition at line 287 of file shipunit.py.

◆ angstrom

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

Definition at line 40 of file shipunit.py.

◆ atmosphere

int shipunit.atmosphere = 101325*pascal

Definition at line 157 of file shipunit.py.

◆ Avogadro

float shipunit.Avogadro = 6.0221367e+23/mole

Definition at line 263 of file shipunit.py.

◆ bar

int shipunit.bar = 100000*pascal

Definition at line 156 of file shipunit.py.

◆ barn

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

Definition at line 43 of file shipunit.py.

◆ becquerel

int shipunit.becquerel = 1./second

Definition at line 223 of file shipunit.py.

◆ Bohr_radius

float shipunit.Bohr_radius = electron_Compton_length/fine_structure_const

Definition at line 300 of file shipunit.py.

◆ c_light

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

Definition at line 267 of file shipunit.py.

◆ c_squared

float shipunit.c_squared = c_light * c_light

Definition at line 268 of file shipunit.py.

◆ candela

int shipunit.candela = 1.

Definition at line 234 of file shipunit.py.

◆ centimeter

int shipunit.centimeter = 10.*millimeter

Definition at line 24 of file shipunit.py.

◆ centimeter2

int shipunit.centimeter2 = centimeter*centimeter

Definition at line 25 of file shipunit.py.

◆ centimeter3

int shipunit.centimeter3 = centimeter*centimeter*centimeter

Definition at line 26 of file shipunit.py.

◆ classic_electr_radius

int shipunit.classic_electr_radius = elm_coupling/electron_mass_c2

Definition at line 298 of file shipunit.py.

◆ cm

int shipunit.cm = centimeter

Definition at line 56 of file shipunit.py.

◆ cm2

int shipunit.cm2 = centimeter2

Definition at line 57 of file shipunit.py.

◆ cm3

int shipunit.cm3 = centimeter3

Definition at line 58 of file shipunit.py.

◆ coulomb

int shipunit.coulomb = eplus/e_SI

Definition at line 108 of file shipunit.py.

◆ curie

float shipunit.curie = 3.7e+10 * becquerel

Definition at line 224 of file shipunit.py.

◆ deg

tuple shipunit.deg = degree

Definition at line 83 of file shipunit.py.

◆ degree

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

Definition at line 75 of file shipunit.py.

◆ e_SI

float shipunit.e_SI = 1.60217733e-19

Definition at line 107 of file shipunit.py.

◆ e_squared

int shipunit.e_squared = eplus * eplus

Definition at line 280 of file shipunit.py.

◆ electron_charge

int shipunit.electron_charge = - eplus

Definition at line 279 of file shipunit.py.

◆ electron_Compton_length

float shipunit.electron_Compton_length = hbarc/electron_mass_c2

Definition at line 299 of file shipunit.py.

◆ electron_mass_c2

float shipunit.electron_mass_c2 = 0.51099906 * MeV

Definition at line 284 of file shipunit.py.

◆ electronvolt

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

Definition at line 114 of file shipunit.py.

◆ elm_coupling

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

Definition at line 296 of file shipunit.py.

◆ eplus

int shipunit.eplus = 1.

Definition at line 106 of file shipunit.py.

◆ epsilon0

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

Definition at line 293 of file shipunit.py.

◆ eV

int shipunit.eV = electronvolt

Definition at line 124 of file shipunit.py.

◆ farad

int shipunit.farad = coulomb/volt

Definition at line 182 of file shipunit.py.

◆ fermi

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

Definition at line 41 of file shipunit.py.

◆ fine_structure_const

int shipunit.fine_structure_const = elm_coupling/hbarc

Definition at line 297 of file shipunit.py.

◆ g

int shipunit.g = gram

Definition at line 139 of file shipunit.py.

◆ gauss

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

Definition at line 204 of file shipunit.py.

◆ GeV

int shipunit.GeV = gigaelectronvolt

Definition at line 126 of file shipunit.py.

◆ gigaelectronvolt

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

Definition at line 116 of file shipunit.py.

◆ gram

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

Definition at line 134 of file shipunit.py.

◆ gray

int shipunit.gray = joule/kilogram

Definition at line 229 of file shipunit.py.

◆ h_Planck

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

Definition at line 273 of file shipunit.py.

◆ halfpi

float shipunit.halfpi = pi/2.

Definition at line 259 of file shipunit.py.

◆ hbar_Planck

float shipunit.hbar_Planck = h_Planck/twopi

Definition at line 274 of file shipunit.py.

◆ hbarc

float shipunit.hbarc = hbar_Planck * c_light

Definition at line 275 of file shipunit.py.

◆ hbarc_squared

float shipunit.hbarc_squared = hbarc * hbarc

Definition at line 276 of file shipunit.py.

◆ henry

int shipunit.henry = weber/ampere

Definition at line 208 of file shipunit.py.

◆ hertz

int shipunit.hertz = 1./second

Definition at line 94 of file shipunit.py.

◆ joule

int shipunit.joule = electronvolt/e_SI

Definition at line 120 of file shipunit.py.

◆ k_Boltzmann

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

Definition at line 309 of file shipunit.py.

◆ kelvin

int shipunit.kelvin = 1.

Definition at line 213 of file shipunit.py.

◆ keV

int shipunit.keV = kiloelectronvolt

Definition at line 125 of file shipunit.py.

◆ kg

int shipunit.kg = kilogram

Definition at line 138 of file shipunit.py.

◆ kGasThreshold

int shipunit.kGasThreshold = 10.*mg/cm3

Definition at line 314 of file shipunit.py.

◆ kiloelectronvolt

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

Definition at line 115 of file shipunit.py.

◆ kilogauss

int shipunit.kilogauss = 1.

Definition at line 202 of file shipunit.py.

◆ kilogram

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

Definition at line 133 of file shipunit.py.

◆ kilohertz

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

Definition at line 95 of file shipunit.py.

◆ kilometer

int shipunit.kilometer = 1000.*meter

Definition at line 32 of file shipunit.py.

◆ kilometer2

int shipunit.kilometer2 = kilometer*kilometer

Definition at line 33 of file shipunit.py.

◆ kilometer3

int shipunit.kilometer3 = kilometer*kilometer*kilometer

Definition at line 34 of file shipunit.py.

◆ kilovolt

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

Definition at line 171 of file shipunit.py.

◆ km

int shipunit.km = kilometer

Definition at line 64 of file shipunit.py.

◆ km2

int shipunit.km2 = kilometer2

Definition at line 65 of file shipunit.py.

◆ km3

int shipunit.km3 = kilometer3

Definition at line 66 of file shipunit.py.

◆ lumen

int shipunit.lumen = candela*steradian

Definition at line 239 of file shipunit.py.

◆ lux

int shipunit.lux = lumen/meter2

Definition at line 244 of file shipunit.py.

◆ m

int shipunit.m = meter

Definition at line 60 of file shipunit.py.

◆ m2

int shipunit.m2 = meter2

Definition at line 61 of file shipunit.py.

◆ m3

int shipunit.m3 = meter3

Definition at line 62 of file shipunit.py.

◆ megaelectronvolt

int shipunit.megaelectronvolt = 1./1000.

Definition at line 113 of file shipunit.py.

◆ megahertz

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

Definition at line 96 of file shipunit.py.

◆ megavolt

int shipunit.megavolt = megaelectronvolt/eplus

Definition at line 170 of file shipunit.py.

◆ meter

int shipunit.meter = 1000.*millimeter

Definition at line 28 of file shipunit.py.

◆ meter2

int shipunit.meter2 = meter*meter

Definition at line 29 of file shipunit.py.

◆ meter3

int shipunit.meter3 = meter*meter*meter

Definition at line 30 of file shipunit.py.

◆ MeV

int shipunit.MeV = megaelectronvolt

Definition at line 123 of file shipunit.py.

◆ mg

int shipunit.mg = milligram

Definition at line 140 of file shipunit.py.

◆ microampere

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

Definition at line 164 of file shipunit.py.

◆ microbarn

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

Definition at line 45 of file shipunit.py.

◆ microfarad

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

Definition at line 184 of file shipunit.py.

◆ micrometer

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

Definition at line 38 of file shipunit.py.

◆ microsecond

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

Definition at line 91 of file shipunit.py.

◆ milliampere

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

Definition at line 163 of file shipunit.py.

◆ millibarn

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

Definition at line 44 of file shipunit.py.

◆ millifarad

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

Definition at line 183 of file shipunit.py.

◆ milligram

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

Definition at line 135 of file shipunit.py.

◆ millimeter

int shipunit.millimeter = 1./10.

Definition at line 20 of file shipunit.py.

◆ millimeter2

int shipunit.millimeter2 = millimeter*millimeter

Definition at line 21 of file shipunit.py.

◆ millimeter3

int shipunit.millimeter3 = millimeter*millimeter*millimeter

Definition at line 22 of file shipunit.py.

◆ milliradian

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

Definition at line 74 of file shipunit.py.

◆ millisecond

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

Definition at line 90 of file shipunit.py.

◆ mm

int shipunit.mm = millimeter

Definition at line 52 of file shipunit.py.

◆ mm2

int shipunit.mm2 = millimeter2

Definition at line 53 of file shipunit.py.

◆ mm3

int shipunit.mm3 = millimeter3

Definition at line 54 of file shipunit.py.

◆ mole

int shipunit.mole = 1.

Definition at line 218 of file shipunit.py.

◆ mrad

int shipunit.mrad = milliradian

Definition at line 81 of file shipunit.py.

◆ ms

int shipunit.ms = millisecond

Definition at line 101 of file shipunit.py.

◆ mu0

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

Definition at line 292 of file shipunit.py.

◆ nanoampere

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

Definition at line 165 of file shipunit.py.

◆ nanobarn

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

Definition at line 46 of file shipunit.py.

◆ nanofarad

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

Definition at line 185 of file shipunit.py.

◆ nanometer

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

Definition at line 39 of file shipunit.py.

◆ nanosecond

int shipunit.nanosecond = 1.

Definition at line 88 of file shipunit.py.

◆ neutron_mass_c2

float shipunit.neutron_mass_c2 = 939.56563 * MeV

Definition at line 286 of file shipunit.py.

◆ newton

int shipunit.newton = joule/meter

Definition at line 150 of file shipunit.py.

◆ ns

int shipunit.ns = nanosecond

Definition at line 99 of file shipunit.py.

◆ ohm

int shipunit.ohm = volt/ampere

Definition at line 177 of file shipunit.py.

◆ parsec

float shipunit.parsec = 3.0856775807e+16*meter

Definition at line 36 of file shipunit.py.

◆ pascal

int shipunit.pascal = newton/m2

Definition at line 155 of file shipunit.py.

◆ pc

float shipunit.pc = parsec

Definition at line 68 of file shipunit.py.

◆ perCent

float shipunit.perCent = 0.01

Definition at line 249 of file shipunit.py.

◆ perMillion

float shipunit.perMillion = 0.000001

Definition at line 251 of file shipunit.py.

◆ perThousand

float shipunit.perThousand = 0.001

Definition at line 250 of file shipunit.py.

◆ petaelectronvolt

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

Definition at line 118 of file shipunit.py.

◆ PeV

int shipunit.PeV = petaelectronvolt

Definition at line 128 of file shipunit.py.

◆ pi

float shipunit.pi = 3.14159265358979323846

Definition at line 257 of file shipunit.py.

◆ pi2

float shipunit.pi2 = pi*pi

Definition at line 260 of file shipunit.py.

◆ picobarn

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

Definition at line 47 of file shipunit.py.

◆ picofarad

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

Definition at line 186 of file shipunit.py.

◆ picosecond

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

Definition at line 92 of file shipunit.py.

◆ proton_mass_c2

float shipunit.proton_mass_c2 = 938.27231 * MeV

Definition at line 285 of file shipunit.py.

◆ rad

int shipunit.rad = radian

Definition at line 80 of file shipunit.py.

◆ radian

int shipunit.radian = 1.

Definition at line 73 of file shipunit.py.

◆ s

int shipunit.s = second

Definition at line 100 of file shipunit.py.

◆ second

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

Definition at line 89 of file shipunit.py.

◆ snd_freq

float shipunit.snd_freq = 160.316*megahertz

Definition at line 321 of file shipunit.py.

◆ snd_TDC2ns

tuple shipunit.snd_TDC2ns = (1E9/snd_freq)*ns

Definition at line 322 of file shipunit.py.

◆ speedOfLight

int shipunit.speedOfLight = 299792458*m/s

Definition at line 319 of file shipunit.py.

◆ sr

int shipunit.sr = steradian

Definition at line 82 of file shipunit.py.

◆ steradian

int shipunit.steradian = 1.

Definition at line 77 of file shipunit.py.

◆ STP_Pressure

int shipunit.STP_Pressure = 1.*atmosphere

Definition at line 313 of file shipunit.py.

◆ STP_Temperature

float shipunit.STP_Temperature = 273.15*kelvin

Definition at line 312 of file shipunit.py.

◆ teraelectronvolt

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

Definition at line 117 of file shipunit.py.

◆ tesla

int shipunit.tesla = 10*kilogauss

Definition at line 203 of file shipunit.py.

◆ TeV

int shipunit.TeV = teraelectronvolt

Definition at line 127 of file shipunit.py.

◆ twopi

int shipunit.twopi = 2.*pi

Definition at line 258 of file shipunit.py.

◆ twopi_mc2_rcl2

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

Definition at line 304 of file shipunit.py.

◆ um

int shipunit.um = micrometer

Definition at line 50 of file shipunit.py.

◆ universe_mean_density

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

Definition at line 317 of file shipunit.py.

◆ volt

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

Definition at line 172 of file shipunit.py.

◆ watt

int shipunit.watt = joule/second

Definition at line 145 of file shipunit.py.

◆ weber

int shipunit.weber = volt*second

Definition at line 191 of file shipunit.py.