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

Variables

float millimeter = 1.0 / 10.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 um = micrometer
 
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 / 1000.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 kilogauss = 1.0
 
int tesla = 10 * kilogauss
 
float gauss = 1.0e-4 * 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
 
int speedOfLight = 299792458 * m / s
 

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

Definition at line 303 of file shipunit.py.

◆ ampere

float shipunit.ampere = coulomb / second

Definition at line 163 of file shipunit.py.

◆ amu

float shipunit.amu = amu_c2 / c_squared

Definition at line 289 of file shipunit.py.

◆ amu_c2

float shipunit.amu_c2 = 931.49432 * MeV

Definition at line 288 of file shipunit.py.

◆ angstrom

float shipunit.angstrom = 1.0e-10 * meter

Definition at line 41 of file shipunit.py.

◆ atmosphere

int shipunit.atmosphere = 101325 * pascal

Definition at line 158 of file shipunit.py.

◆ Avogadro

float shipunit.Avogadro = 6.0221367e23 / mole

Definition at line 264 of file shipunit.py.

◆ bar

int shipunit.bar = 100000 * pascal

Definition at line 157 of file shipunit.py.

◆ barn

float shipunit.barn = 1.0e-28 * meter2

Definition at line 44 of file shipunit.py.

◆ becquerel

float shipunit.becquerel = 1.0 / second

Definition at line 224 of file shipunit.py.

◆ Bohr_radius

float shipunit.Bohr_radius = electron_Compton_length / fine_structure_const

Definition at line 301 of file shipunit.py.

◆ c_light

float shipunit.c_light = 2.99792458e8 * m / s

Definition at line 268 of file shipunit.py.

◆ c_squared

float shipunit.c_squared = c_light * c_light

Definition at line 269 of file shipunit.py.

◆ candela

float shipunit.candela = 1.0

Definition at line 235 of file shipunit.py.

◆ centimeter

float shipunit.centimeter = 10.0 * millimeter

Definition at line 25 of file shipunit.py.

◆ centimeter2

float shipunit.centimeter2 = centimeter * centimeter

Definition at line 26 of file shipunit.py.

◆ centimeter3

float shipunit.centimeter3 = centimeter * centimeter * centimeter

Definition at line 27 of file shipunit.py.

◆ classic_electr_radius

float shipunit.classic_electr_radius = elm_coupling / electron_mass_c2

Definition at line 299 of file shipunit.py.

◆ cm

float shipunit.cm = centimeter

Definition at line 57 of file shipunit.py.

◆ cm2

float shipunit.cm2 = centimeter2

Definition at line 58 of file shipunit.py.

◆ cm3

float shipunit.cm3 = centimeter3

Definition at line 59 of file shipunit.py.

◆ coulomb

float shipunit.coulomb = eplus / e_SI

Definition at line 109 of file shipunit.py.

◆ curie

float shipunit.curie = 3.7e10 * becquerel

Definition at line 225 of file shipunit.py.

◆ deg

tuple shipunit.deg = degree

Definition at line 84 of file shipunit.py.

◆ degree

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

Definition at line 76 of file shipunit.py.

◆ e_SI

float shipunit.e_SI = 1.60217733e-19

Definition at line 108 of file shipunit.py.

◆ e_squared

float shipunit.e_squared = eplus * eplus

Definition at line 281 of file shipunit.py.

◆ electron_charge

float shipunit.electron_charge = -eplus

Definition at line 280 of file shipunit.py.

◆ electron_Compton_length

float shipunit.electron_Compton_length = hbarc / electron_mass_c2

Definition at line 300 of file shipunit.py.

◆ electron_mass_c2

float shipunit.electron_mass_c2 = 0.51099906 * MeV

Definition at line 285 of file shipunit.py.

◆ electronvolt

float shipunit.electronvolt = 1.0e-6 * megaelectronvolt

Definition at line 115 of file shipunit.py.

◆ elm_coupling

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

Definition at line 297 of file shipunit.py.

◆ eplus

float shipunit.eplus = 1.0

Definition at line 107 of file shipunit.py.

◆ epsilon0

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

Definition at line 294 of file shipunit.py.

◆ eV

float shipunit.eV = electronvolt

Definition at line 125 of file shipunit.py.

◆ farad

float shipunit.farad = coulomb / volt

Definition at line 183 of file shipunit.py.

◆ fermi

float shipunit.fermi = 1.0e-15 * meter

Definition at line 42 of file shipunit.py.

◆ fine_structure_const

float shipunit.fine_structure_const = elm_coupling / hbarc

Definition at line 298 of file shipunit.py.

◆ g

float shipunit.g = gram

Definition at line 140 of file shipunit.py.

◆ gauss

float shipunit.gauss = 1.0e-4 * tesla

Definition at line 205 of file shipunit.py.

◆ GeV

float shipunit.GeV = gigaelectronvolt

Definition at line 127 of file shipunit.py.

◆ gigaelectronvolt

float shipunit.gigaelectronvolt = 1.0e3 * megaelectronvolt

Definition at line 117 of file shipunit.py.

◆ gram

float shipunit.gram = 1.0e-3 * kilogram

Definition at line 135 of file shipunit.py.

◆ gray

float shipunit.gray = joule / kilogram

Definition at line 230 of file shipunit.py.

◆ h_Planck

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

Definition at line 274 of file shipunit.py.

◆ halfpi

float shipunit.halfpi = pi / 2.0

Definition at line 260 of file shipunit.py.

◆ hbar_Planck

float shipunit.hbar_Planck = h_Planck / twopi

Definition at line 275 of file shipunit.py.

◆ hbarc

float shipunit.hbarc = hbar_Planck * c_light

Definition at line 276 of file shipunit.py.

◆ hbarc_squared

float shipunit.hbarc_squared = hbarc * hbarc

Definition at line 277 of file shipunit.py.

◆ henry

float shipunit.henry = weber / ampere

Definition at line 209 of file shipunit.py.

◆ hertz

float shipunit.hertz = 1.0 / second

Definition at line 95 of file shipunit.py.

◆ joule

float shipunit.joule = electronvolt / e_SI

Definition at line 121 of file shipunit.py.

◆ k_Boltzmann

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

Definition at line 307 of file shipunit.py.

◆ kelvin

float shipunit.kelvin = 1.0

Definition at line 214 of file shipunit.py.

◆ keV

float shipunit.keV = kiloelectronvolt

Definition at line 126 of file shipunit.py.

◆ kg

float shipunit.kg = kilogram

Definition at line 139 of file shipunit.py.

◆ kGasThreshold

float shipunit.kGasThreshold = 10.0 * mg / cm3

Definition at line 312 of file shipunit.py.

◆ kiloelectronvolt

float shipunit.kiloelectronvolt = 1.0e-3 * megaelectronvolt

Definition at line 116 of file shipunit.py.

◆ kilogauss

float shipunit.kilogauss = 1.0

Definition at line 203 of file shipunit.py.

◆ kilogram

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

Definition at line 134 of file shipunit.py.

◆ kilohertz

float shipunit.kilohertz = 1.0e3 * hertz

Definition at line 96 of file shipunit.py.

◆ kilometer

float shipunit.kilometer = 1000.0 * meter

Definition at line 33 of file shipunit.py.

◆ kilometer2

float shipunit.kilometer2 = kilometer * kilometer

Definition at line 34 of file shipunit.py.

◆ kilometer3

float shipunit.kilometer3 = kilometer * kilometer * kilometer

Definition at line 35 of file shipunit.py.

◆ kilovolt

float shipunit.kilovolt = 1.0e-3 * megavolt

Definition at line 172 of file shipunit.py.

◆ km

float shipunit.km = kilometer

Definition at line 65 of file shipunit.py.

◆ km2

float shipunit.km2 = kilometer2

Definition at line 66 of file shipunit.py.

◆ km3

float shipunit.km3 = kilometer3

Definition at line 67 of file shipunit.py.

◆ lumen

float shipunit.lumen = candela * steradian

Definition at line 240 of file shipunit.py.

◆ lux

float shipunit.lux = lumen / meter2

Definition at line 245 of file shipunit.py.

◆ m

float shipunit.m = meter

Definition at line 61 of file shipunit.py.

◆ m2

float shipunit.m2 = meter2

Definition at line 62 of file shipunit.py.

◆ m3

float shipunit.m3 = meter3

Definition at line 63 of file shipunit.py.

◆ megaelectronvolt

float shipunit.megaelectronvolt = 1.0 / 1000.0

Definition at line 114 of file shipunit.py.

◆ megahertz

float shipunit.megahertz = 1.0e6 * hertz

Definition at line 97 of file shipunit.py.

◆ megavolt

float shipunit.megavolt = megaelectronvolt / eplus

Definition at line 171 of file shipunit.py.

◆ meter

float shipunit.meter = 1000.0 * millimeter

Definition at line 29 of file shipunit.py.

◆ meter2

float shipunit.meter2 = meter * meter

Definition at line 30 of file shipunit.py.

◆ meter3

float shipunit.meter3 = meter * meter * meter

Definition at line 31 of file shipunit.py.

◆ MeV

float shipunit.MeV = megaelectronvolt

Definition at line 124 of file shipunit.py.

◆ mg

float shipunit.mg = milligram

Definition at line 141 of file shipunit.py.

◆ microampere

float shipunit.microampere = 1.0e-6 * ampere

Definition at line 165 of file shipunit.py.

◆ microbarn

float shipunit.microbarn = 1.0e-6 * barn

Definition at line 46 of file shipunit.py.

◆ microfarad

float shipunit.microfarad = 1.0e-6 * farad

Definition at line 185 of file shipunit.py.

◆ micrometer

float shipunit.micrometer = 1.0e-6 * meter

Definition at line 39 of file shipunit.py.

◆ microsecond

float shipunit.microsecond = 1.0e-6 * second

Definition at line 92 of file shipunit.py.

◆ milliampere

float shipunit.milliampere = 1.0e-3 * ampere

Definition at line 164 of file shipunit.py.

◆ millibarn

float shipunit.millibarn = 1.0e-3 * barn

Definition at line 45 of file shipunit.py.

◆ millifarad

float shipunit.millifarad = 1.0e-3 * farad

Definition at line 184 of file shipunit.py.

◆ milligram

float shipunit.milligram = 1.0e-3 * gram

Definition at line 136 of file shipunit.py.

◆ millimeter

float shipunit.millimeter = 1.0 / 10.0

Definition at line 21 of file shipunit.py.

◆ millimeter2

float shipunit.millimeter2 = millimeter * millimeter

Definition at line 22 of file shipunit.py.

◆ millimeter3

float shipunit.millimeter3 = millimeter * millimeter * millimeter

Definition at line 23 of file shipunit.py.

◆ milliradian

float shipunit.milliradian = 1.0e-3 * radian

Definition at line 75 of file shipunit.py.

◆ millisecond

float shipunit.millisecond = 1.0e-3 * second

Definition at line 91 of file shipunit.py.

◆ mm

float shipunit.mm = millimeter

Definition at line 53 of file shipunit.py.

◆ mm2

float shipunit.mm2 = millimeter2

Definition at line 54 of file shipunit.py.

◆ mm3

float shipunit.mm3 = millimeter3

Definition at line 55 of file shipunit.py.

◆ mole

float shipunit.mole = 1.0

Definition at line 219 of file shipunit.py.

◆ mrad

float shipunit.mrad = milliradian

Definition at line 82 of file shipunit.py.

◆ ms

float shipunit.ms = millisecond

Definition at line 102 of file shipunit.py.

◆ mu0

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

Definition at line 293 of file shipunit.py.

◆ nanoampere

float shipunit.nanoampere = 1.0e-9 * ampere

Definition at line 166 of file shipunit.py.

◆ nanobarn

float shipunit.nanobarn = 1.0e-9 * barn

Definition at line 47 of file shipunit.py.

◆ nanofarad

float shipunit.nanofarad = 1.0e-9 * farad

Definition at line 186 of file shipunit.py.

◆ nanometer

float shipunit.nanometer = 1.0e-9 * meter

Definition at line 40 of file shipunit.py.

◆ nanosecond

float shipunit.nanosecond = 1.0

Definition at line 89 of file shipunit.py.

◆ neutron_mass_c2

float shipunit.neutron_mass_c2 = 939.56563 * MeV

Definition at line 287 of file shipunit.py.

◆ newton

float shipunit.newton = joule / meter

Definition at line 151 of file shipunit.py.

◆ ns

float shipunit.ns = nanosecond

Definition at line 100 of file shipunit.py.

◆ ohm

float shipunit.ohm = volt / ampere

Definition at line 178 of file shipunit.py.

◆ parsec

float shipunit.parsec = 3.0856775807e16 * meter

Definition at line 37 of file shipunit.py.

◆ pascal

float shipunit.pascal = newton / m2

Definition at line 156 of file shipunit.py.

◆ pc

float shipunit.pc = parsec

Definition at line 69 of file shipunit.py.

◆ perCent

float shipunit.perCent = 0.01

Definition at line 250 of file shipunit.py.

◆ perMillion

float shipunit.perMillion = 0.000001

Definition at line 252 of file shipunit.py.

◆ perThousand

float shipunit.perThousand = 0.001

Definition at line 251 of file shipunit.py.

◆ petaelectronvolt

float shipunit.petaelectronvolt = 1.0e9 * megaelectronvolt

Definition at line 119 of file shipunit.py.

◆ PeV

float shipunit.PeV = petaelectronvolt

Definition at line 129 of file shipunit.py.

◆ pi

float shipunit.pi = 3.14159265358979323846

Definition at line 258 of file shipunit.py.

◆ pi2

float shipunit.pi2 = pi * pi

Definition at line 261 of file shipunit.py.

◆ picobarn

float shipunit.picobarn = 1.0e-12 * barn

Definition at line 48 of file shipunit.py.

◆ picofarad

float shipunit.picofarad = 1.0e-12 * farad

Definition at line 187 of file shipunit.py.

◆ picosecond

float shipunit.picosecond = 1.0e-12 * second

Definition at line 93 of file shipunit.py.

◆ proton_mass_c2

float shipunit.proton_mass_c2 = 938.27231 * MeV

Definition at line 286 of file shipunit.py.

◆ rad

float shipunit.rad = radian

Definition at line 81 of file shipunit.py.

◆ radian

float shipunit.radian = 1.0

Definition at line 74 of file shipunit.py.

◆ s

float shipunit.s = second

Definition at line 101 of file shipunit.py.

◆ second

float shipunit.second = 1.0e9 * nanosecond

Definition at line 90 of file shipunit.py.

◆ speedOfLight

int shipunit.speedOfLight = 299792458 * m / s

Definition at line 317 of file shipunit.py.

◆ sr

float shipunit.sr = steradian

Definition at line 83 of file shipunit.py.

◆ steradian

float shipunit.steradian = 1.0

Definition at line 78 of file shipunit.py.

◆ STP_Pressure

float shipunit.STP_Pressure = 1.0 * atmosphere

Definition at line 311 of file shipunit.py.

◆ STP_Temperature

float shipunit.STP_Temperature = 273.15 * kelvin

Definition at line 310 of file shipunit.py.

◆ teraelectronvolt

float shipunit.teraelectronvolt = 1.0e6 * megaelectronvolt

Definition at line 118 of file shipunit.py.

◆ tesla

int shipunit.tesla = 10 * kilogauss

Definition at line 204 of file shipunit.py.

◆ TeV

float shipunit.TeV = teraelectronvolt

Definition at line 128 of file shipunit.py.

◆ twopi

float shipunit.twopi = 2.0 * pi

Definition at line 259 of file shipunit.py.

◆ twopi_mc2_rcl2

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

Definition at line 304 of file shipunit.py.

◆ um

float shipunit.um = micrometer

Definition at line 51 of file shipunit.py.

◆ universe_mean_density

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

Definition at line 315 of file shipunit.py.

◆ volt

float shipunit.volt = 1.0e-6 * megavolt

Definition at line 173 of file shipunit.py.

◆ watt

float shipunit.watt = joule / second

Definition at line 146 of file shipunit.py.

◆ weber

float shipunit.weber = volt * second

Definition at line 192 of file shipunit.py.