Namespaces | Variables
units.py File Reference

Go to the source code of this file.

Namespaces

 wirecell.units
 

Variables

float wirecell.units.pi = 3.14159265358979323846
 
int wirecell.units.twopi = 2
 
int wirecell.units.halfpi = pi/2
 
 wirecell.units.pi2 = pi*pi
 
int wirecell.units.millimeter = 1
 
 wirecell.units.millimeter2 = millimeter*millimeter
 
 wirecell.units.millimeter3 = millimeter*millimeter*millimeter
 
int wirecell.units.centimeter = 10
 
 wirecell.units.centimeter2 = centimeter*centimeter
 
 wirecell.units.centimeter3 = centimeter*centimeter*centimeter
 
int wirecell.units.meter = 1000
 
 wirecell.units.meter2 = meter*meter
 
 wirecell.units.meter3 = meter*meter*meter
 
int wirecell.units.kilometer = 1000
 
 wirecell.units.kilometer2 = kilometer*kilometer
 
 wirecell.units.kilometer3 = kilometer*kilometer*kilometer
 
float wirecell.units.parsec = 3.0856775807e+16
 
int wirecell.units.micrometer = 1
 
int wirecell.units.nanometer = 1
 
int wirecell.units.angstrom = 1
 
int wirecell.units.fermi = 1
 
int wirecell.units.barn = 1
 
int wirecell.units.millibarn = 1
 
int wirecell.units.microbarn = 1
 
int wirecell.units.nanobarn = 1
 
int wirecell.units.picobarn = 1
 
 wirecell.units.nm = nanometer
 
 wirecell.units.um = micrometer
 
 wirecell.units.mm = millimeter
 
 wirecell.units.mm2 = millimeter2
 
 wirecell.units.mm3 = millimeter3
 
 wirecell.units.cm = centimeter
 
 wirecell.units.cm2 = centimeter2
 
 wirecell.units.cm3 = centimeter3
 
 wirecell.units.m = meter
 
 wirecell.units.m2 = meter2
 
 wirecell.units.m3 = meter3
 
 wirecell.units.km = kilometer
 
 wirecell.units.km2 = kilometer2
 
 wirecell.units.km3 = kilometer3
 
 wirecell.units.pc = parsec
 
int wirecell.units.radian = 1
 
int wirecell.units.milliradian = 1
 
tuple wirecell.units.degree = (pi/180.0)*radian
 
int wirecell.units.steradian = 1
 
 wirecell.units.rad = radian
 
 wirecell.units.mrad = milliradian
 
 wirecell.units.sr = steradian
 
 wirecell.units.deg = degree
 
int wirecell.units.nanosecond = 1
 
int wirecell.units.second = 1
 
int wirecell.units.millisecond = 1
 
int wirecell.units.microsecond = 1
 
int wirecell.units.picosecond = 1
 
int wirecell.units.hertz = 1
 
int wirecell.units.kilohertz = 1
 
int wirecell.units.megahertz = 1
 
 wirecell.units.Hz = hertz
 
 wirecell.units.kHz = kilohertz
 
 wirecell.units.MHz = megahertz
 
 wirecell.units.ns = nanosecond
 
 wirecell.units.s = second
 
 wirecell.units.ms = millisecond
 
 wirecell.units.us = microsecond
 
int wirecell.units.eplus = 1
 
float wirecell.units.e_SI = 1.602176487e-19
 
 wirecell.units.coulomb = eplus/e_SI
 
float wirecell.units.fC = 1.0e-15
 
int wirecell.units.megaelectronvolt = 1
 
int wirecell.units.electronvolt = 1
 
int wirecell.units.kiloelectronvolt = 1
 
int wirecell.units.gigaelectronvolt = 1
 
int wirecell.units.teraelectronvolt = 1
 
int wirecell.units.petaelectronvolt = 1
 
 wirecell.units.joule = electronvolt/e_SI
 
 wirecell.units.MeV = megaelectronvolt
 
 wirecell.units.eV = electronvolt
 
 wirecell.units.keV = kiloelectronvolt
 
 wirecell.units.GeV = gigaelectronvolt
 
 wirecell.units.TeV = teraelectronvolt
 
 wirecell.units.PeV = petaelectronvolt
 
 wirecell.units.kilogram = joule*second*second/(meter*meter)
 
int wirecell.units.gram = 1
 
int wirecell.units.milligram = 1
 
 wirecell.units.kg = kilogram
 
 wirecell.units.g = gram
 
 wirecell.units.mg = milligram
 
 wirecell.units.watt = joule/second
 
 wirecell.units.newton = joule/meter
 
 wirecell.units.pascal = newton/m2
 
int wirecell.units.bar = 100000
 
int wirecell.units.atmosphere = 101325
 
 wirecell.units.ampere = coulomb/second
 
int wirecell.units.milliampere = 1
 
int wirecell.units.microampere = 1
 
int wirecell.units.nanoampere = 1
 
int wirecell.units.picoampere = 1
 
 wirecell.units.megavolt = megaelectronvolt/eplus
 
int wirecell.units.kilovolt = 1
 
int wirecell.units.volt = 1
 
int wirecell.units.millivolt = 1
 
 wirecell.units.mV = millivolt
 
 wirecell.units.ohm = volt/ampere
 
 wirecell.units.farad = coulomb/volt
 
int wirecell.units.millifarad = 1
 
int wirecell.units.microfarad = 1
 
int wirecell.units.nanofarad = 1
 
int wirecell.units.picofarad = 1
 
 wirecell.units.weber = volt*second
 
 wirecell.units.tesla = volt*second/meter2
 
int wirecell.units.gauss = 1
 
int wirecell.units.kilogauss = 1
 
 wirecell.units.henry = weber/ampere
 
int wirecell.units.kelvin = 1
 
int wirecell.units.mole = 1
 
int wirecell.units.becquerel = 1
 
float wirecell.units.curie = 3.7e+10
 
int wirecell.units.kilobecquerel = 1
 
int wirecell.units.megabecquerel = 1
 
int wirecell.units.gigabecquerel = 1
 
int wirecell.units.millicurie = 1
 
int wirecell.units.microcurie = 1
 
 wirecell.units.Bq = becquerel
 
 wirecell.units.kBq = kilobecquerel
 
 wirecell.units.MBq = megabecquerel
 
 wirecell.units.GBq = gigabecquerel
 
 wirecell.units.Ci = curie
 
 wirecell.units.mCi = millicurie
 
 wirecell.units.uCi = microcurie
 
 wirecell.units.gray = joule/kilogram
 
int wirecell.units.kilogray = 1
 
int wirecell.units.milligray = 1
 
int wirecell.units.microgray = 1
 
int wirecell.units.candela = 1
 
 wirecell.units.lumen = candela*steradian
 
 wirecell.units.lux = lumen/meter2
 
float wirecell.units.perCent = 0.01
 
float wirecell.units.perThousand = 0.001
 
float wirecell.units.perMillion = 0.000001
 
float wirecell.units.clight = 2.99792458e8
 
int wirecell.units.femtocoulomb = 1