Variables
wirecell.units Namespace Reference

Variables

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

Detailed Description

Provide Python access to Wire Cell system of units.

It is made from WireCellUtil/Units.h by one time Emacs hackery and a
few extra added for convenience.

Variable Documentation

wirecell.units.ampere = coulomb/second

Definition at line 167 of file units.py.

int wirecell.units.angstrom = 1

Definition at line 39 of file units.py.

int wirecell.units.atmosphere = 101325

Definition at line 162 of file units.py.

int wirecell.units.bar = 100000

Definition at line 161 of file units.py.

int wirecell.units.barn = 1

Definition at line 42 of file units.py.

int wirecell.units.becquerel = 1

Definition at line 227 of file units.py.

wirecell.units.Bq = becquerel

Definition at line 234 of file units.py.

int wirecell.units.candela = 1

Definition at line 253 of file units.py.

int wirecell.units.centimeter = 10

Definition at line 23 of file units.py.

wirecell.units.centimeter2 = centimeter*centimeter

Definition at line 24 of file units.py.

wirecell.units.centimeter3 = centimeter*centimeter*centimeter

Definition at line 25 of file units.py.

wirecell.units.Ci = curie

Definition at line 238 of file units.py.

float wirecell.units.clight = 2.99792458e8

Definition at line 274 of file units.py.

wirecell.units.cm = centimeter

Definition at line 56 of file units.py.

wirecell.units.cm2 = centimeter2

Definition at line 57 of file units.py.

wirecell.units.cm3 = centimeter3

Definition at line 58 of file units.py.

wirecell.units.coulomb = eplus/e_SI

Definition at line 112 of file units.py.

float wirecell.units.curie = 3.7e+10

Definition at line 228 of file units.py.

wirecell.units.deg = degree

Definition at line 83 of file units.py.

tuple wirecell.units.degree = (pi/180.0)*radian

Definition at line 75 of file units.py.

float wirecell.units.e_SI = 1.602176487e-19

Definition at line 111 of file units.py.

int wirecell.units.electronvolt = 1

Definition at line 119 of file units.py.

int wirecell.units.eplus = 1

Definition at line 110 of file units.py.

wirecell.units.eV = electronvolt

Definition at line 129 of file units.py.

wirecell.units.farad = coulomb/volt

Definition at line 190 of file units.py.

float wirecell.units.fC = 1.0e-15

Definition at line 113 of file units.py.

int wirecell.units.femtocoulomb = 1

Definition at line 278 of file units.py.

int wirecell.units.fermi = 1

Definition at line 40 of file units.py.

wirecell.units.g = gram

Definition at line 144 of file units.py.

int wirecell.units.gauss = 1

Definition at line 206 of file units.py.

wirecell.units.GBq = gigabecquerel

Definition at line 237 of file units.py.

wirecell.units.GeV = gigaelectronvolt

Definition at line 131 of file units.py.

int wirecell.units.gigabecquerel = 1

Definition at line 231 of file units.py.

int wirecell.units.gigaelectronvolt = 1

Definition at line 121 of file units.py.

int wirecell.units.gram = 1

Definition at line 139 of file units.py.

wirecell.units.gray = joule/kilogram

Definition at line 245 of file units.py.

int wirecell.units.halfpi = pi/2

Definition at line 13 of file units.py.

wirecell.units.henry = weber/ampere

Definition at line 212 of file units.py.

int wirecell.units.hertz = 1

Definition at line 94 of file units.py.

wirecell.units.Hz = hertz

Definition at line 97 of file units.py.

wirecell.units.joule = electronvolt/e_SI

Definition at line 125 of file units.py.

wirecell.units.kBq = kilobecquerel

Definition at line 235 of file units.py.

int wirecell.units.kelvin = 1

Definition at line 217 of file units.py.

wirecell.units.keV = kiloelectronvolt

Definition at line 130 of file units.py.

wirecell.units.kg = kilogram

Definition at line 143 of file units.py.

wirecell.units.kHz = kilohertz

Definition at line 98 of file units.py.

int wirecell.units.kilobecquerel = 1

Definition at line 229 of file units.py.

int wirecell.units.kiloelectronvolt = 1

Definition at line 120 of file units.py.

int wirecell.units.kilogauss = 1

Definition at line 207 of file units.py.

wirecell.units.kilogram = joule*second*second/(meter*meter)

Definition at line 138 of file units.py.

int wirecell.units.kilogray = 1

Definition at line 246 of file units.py.

int wirecell.units.kilohertz = 1

Definition at line 95 of file units.py.

int wirecell.units.kilometer = 1000

Definition at line 31 of file units.py.

wirecell.units.kilometer2 = kilometer*kilometer

Definition at line 32 of file units.py.

wirecell.units.kilometer3 = kilometer*kilometer*kilometer

Definition at line 33 of file units.py.

int wirecell.units.kilovolt = 1

Definition at line 177 of file units.py.

wirecell.units.km = kilometer

Definition at line 64 of file units.py.

wirecell.units.km2 = kilometer2

Definition at line 65 of file units.py.

wirecell.units.km3 = kilometer3

Definition at line 66 of file units.py.

wirecell.units.lumen = candela*steradian

Definition at line 258 of file units.py.

wirecell.units.lux = lumen/meter2

Definition at line 263 of file units.py.

wirecell.units.m = meter

Definition at line 60 of file units.py.

wirecell.units.m2 = meter2

Definition at line 61 of file units.py.

wirecell.units.m3 = meter3

Definition at line 62 of file units.py.

wirecell.units.MBq = megabecquerel

Definition at line 236 of file units.py.

wirecell.units.mCi = millicurie

Definition at line 239 of file units.py.

int wirecell.units.megabecquerel = 1

Definition at line 230 of file units.py.

int wirecell.units.megaelectronvolt = 1

Definition at line 118 of file units.py.

int wirecell.units.megahertz = 1

Definition at line 96 of file units.py.

wirecell.units.megavolt = megaelectronvolt/eplus

Definition at line 176 of file units.py.

int wirecell.units.meter = 1000

Definition at line 27 of file units.py.

wirecell.units.meter2 = meter*meter

Definition at line 28 of file units.py.

wirecell.units.meter3 = meter*meter*meter

Definition at line 29 of file units.py.

wirecell.units.MeV = megaelectronvolt

Definition at line 128 of file units.py.

wirecell.units.mg = milligram

Definition at line 145 of file units.py.

wirecell.units.MHz = megahertz

Definition at line 99 of file units.py.

int wirecell.units.microampere = 1

Definition at line 169 of file units.py.

int wirecell.units.microbarn = 1

Definition at line 44 of file units.py.

int wirecell.units.microcurie = 1

Definition at line 233 of file units.py.

int wirecell.units.microfarad = 1

Definition at line 192 of file units.py.

int wirecell.units.microgray = 1

Definition at line 248 of file units.py.

int wirecell.units.micrometer = 1

Definition at line 37 of file units.py.

int wirecell.units.microsecond = 1

Definition at line 91 of file units.py.

int wirecell.units.milliampere = 1

Definition at line 168 of file units.py.

int wirecell.units.millibarn = 1

Definition at line 43 of file units.py.

int wirecell.units.millicurie = 1

Definition at line 232 of file units.py.

int wirecell.units.millifarad = 1

Definition at line 191 of file units.py.

int wirecell.units.milligram = 1

Definition at line 140 of file units.py.

int wirecell.units.milligray = 1

Definition at line 247 of file units.py.

int wirecell.units.millimeter = 1

Definition at line 19 of file units.py.

wirecell.units.millimeter2 = millimeter*millimeter

Definition at line 20 of file units.py.

wirecell.units.millimeter3 = millimeter*millimeter*millimeter

Definition at line 21 of file units.py.

int wirecell.units.milliradian = 1

Definition at line 74 of file units.py.

int wirecell.units.millisecond = 1

Definition at line 90 of file units.py.

int wirecell.units.millivolt = 1

Definition at line 179 of file units.py.

wirecell.units.mm = millimeter

Definition at line 52 of file units.py.

wirecell.units.mm2 = millimeter2

Definition at line 53 of file units.py.

wirecell.units.mm3 = millimeter3

Definition at line 54 of file units.py.

int wirecell.units.mole = 1

Definition at line 222 of file units.py.

wirecell.units.mrad = milliradian

Definition at line 81 of file units.py.

wirecell.units.ms = millisecond

Definition at line 104 of file units.py.

wirecell.units.mV = millivolt

Definition at line 180 of file units.py.

int wirecell.units.nanoampere = 1

Definition at line 170 of file units.py.

int wirecell.units.nanobarn = 1

Definition at line 45 of file units.py.

int wirecell.units.nanofarad = 1

Definition at line 193 of file units.py.

int wirecell.units.nanometer = 1

Definition at line 38 of file units.py.

int wirecell.units.nanosecond = 1

Definition at line 88 of file units.py.

wirecell.units.newton = joule/meter

Definition at line 155 of file units.py.

wirecell.units.nm = nanometer

Definition at line 49 of file units.py.

wirecell.units.ns = nanosecond

Definition at line 102 of file units.py.

wirecell.units.ohm = volt/ampere

Definition at line 185 of file units.py.

float wirecell.units.parsec = 3.0856775807e+16

Definition at line 35 of file units.py.

wirecell.units.pascal = newton/m2

Definition at line 160 of file units.py.

wirecell.units.pc = parsec

Definition at line 68 of file units.py.

float wirecell.units.perCent = 0.01

Definition at line 268 of file units.py.

float wirecell.units.perMillion = 0.000001

Definition at line 270 of file units.py.

float wirecell.units.perThousand = 0.001

Definition at line 269 of file units.py.

int wirecell.units.petaelectronvolt = 1

Definition at line 123 of file units.py.

wirecell.units.PeV = petaelectronvolt

Definition at line 133 of file units.py.

float wirecell.units.pi = 3.14159265358979323846

Definition at line 11 of file units.py.

wirecell.units.pi2 = pi*pi

Definition at line 14 of file units.py.

int wirecell.units.picoampere = 1

Definition at line 171 of file units.py.

int wirecell.units.picobarn = 1

Definition at line 46 of file units.py.

int wirecell.units.picofarad = 1

Definition at line 194 of file units.py.

int wirecell.units.picosecond = 1

Definition at line 92 of file units.py.

wirecell.units.rad = radian

Definition at line 80 of file units.py.

int wirecell.units.radian = 1

Definition at line 73 of file units.py.

wirecell.units.s = second

Definition at line 103 of file units.py.

int wirecell.units.second = 1

Definition at line 89 of file units.py.

wirecell.units.sr = steradian

Definition at line 82 of file units.py.

int wirecell.units.steradian = 1

Definition at line 77 of file units.py.

int wirecell.units.teraelectronvolt = 1

Definition at line 122 of file units.py.

wirecell.units.tesla = volt*second/meter2

Definition at line 204 of file units.py.

wirecell.units.TeV = teraelectronvolt

Definition at line 132 of file units.py.

int wirecell.units.twopi = 2

Definition at line 12 of file units.py.

wirecell.units.uCi = microcurie

Definition at line 240 of file units.py.

wirecell.units.um = micrometer

Definition at line 50 of file units.py.

wirecell.units.us = microsecond

Definition at line 105 of file units.py.

int wirecell.units.volt = 1

Definition at line 178 of file units.py.

wirecell.units.watt = joule/second

Definition at line 150 of file units.py.

wirecell.units.weber = volt*second

Definition at line 199 of file units.py.