3 Provide Python access to Wire Cell system of units. 5 It is made from WireCellUtil/Units.h by one time Emacs hackery and a 6 few extra added for convenience. 11 pi = 3.14159265358979323846
20 millimeter2 = millimeter*millimeter
21 millimeter3 = millimeter*millimeter*millimeter
23 centimeter = 10.*millimeter
24 centimeter2 = centimeter*centimeter
25 centimeter3 = centimeter*centimeter*centimeter
27 meter = 1000.*millimeter
29 meter3 = meter*meter*meter
31 kilometer = 1000.*meter
32 kilometer2 = kilometer*kilometer
33 kilometer3 = kilometer*kilometer*kilometer
35 parsec = 3.0856775807e+16*meter
37 micrometer = 1.e-6 *meter
38 nanometer = 1.e-9 *meter
39 angstrom = 1.e-10*meter
43 millibarn = 1.e-3 *barn
44 microbarn = 1.e-6 *barn
45 nanobarn = 1.e-9 *barn
46 picobarn = 1.e-12*barn
74 milliradian = 1.e-3*radian
75 degree = (pi/180.0)*radian
89 second = 1.e+9 *nanosecond
90 millisecond = 1.e-3 *second
91 microsecond = 1.e-6 *second
92 picosecond = 1.e-12*second
95 kilohertz = 1.e+3*hertz
96 megahertz = 1.e+6*hertz
111 e_SI = 1.602176487e-19
118 megaelectronvolt = 1.
119 electronvolt = 1.e-6*megaelectronvolt
120 kiloelectronvolt = 1.e-3*megaelectronvolt
121 gigaelectronvolt = 1.e+3*megaelectronvolt
122 teraelectronvolt = 1.e+6*megaelectronvolt
123 petaelectronvolt = 1.e+9*megaelectronvolt
125 joule = electronvolt/e_SI
128 MeV = megaelectronvolt
130 keV = kiloelectronvolt
131 GeV = gigaelectronvolt
132 TeV = teraelectronvolt
133 PeV = petaelectronvolt
138 kilogram = joule*second*second/(meter*meter)
139 gram = 1.e-3*kilogram
140 milligram = 1.e-3*gram
162 atmosphere = 101325*pascal
167 ampere = coulomb/second
168 milliampere = 1.e-3*ampere
169 microampere = 1.e-6*ampere
170 nanoampere = 1.e-9*ampere
171 picoampere = 1.e-12*ampere
176 megavolt = megaelectronvolt/eplus
177 kilovolt = 1.e-3*megavolt
178 volt = 1.e-6*megavolt
179 millivolt = 1.e-3*volt
191 millifarad = 1.e-3*farad
192 microfarad = 1.e-6*farad
193 nanofarad = 1.e-9*farad
194 picofarad = 1.e-12*farad
204 tesla = volt*second/meter2
207 kilogauss = 1.e-1*tesla
227 becquerel = 1./second
228 curie = 3.7e+10 * becquerel
229 kilobecquerel = 1.e+3*becquerel
230 megabecquerel = 1.e+6*becquerel
231 gigabecquerel = 1.e+9*becquerel
232 millicurie = 1.e-3*curie
233 microcurie = 1.e-6*curie
245 gray = joule/kilogram
246 kilogray = 1.e+3*gray
247 milligray = 1.e-3*gray
248 microgray = 1.e-6*gray
258 lumen = candela*steradian
270 perMillion = 0.000001
274 clight = 2.99792458e8*meter/second
278 femtocoulomb = fC = 1.e-15*coulomb