Logo ROOT  
Reference Guide
TGeant4SystemOfUnits.h
Go to the documentation of this file.
1 /*************************************************************************
2  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
3  * All rights reserved. *
4  * *
5  * For the licensing terms see $ROOTSYS/LICENSE. *
6  * For the list of contributors see $ROOTSYS/README/CREDITS. *
7  *************************************************************************/
8 
9 // ----------------------------------------------------------------------
10 // HEP coherent system of Units
11 //
12 // This file has been provided to CLHEP by Geant4 (simulation toolkit for HEP).
13 // Adapted to TGeo units base by Marko Petric
14 //
15 // The basic units are :
16 // millimeter (millimeter)
17 // nanosecond (nanosecond)
18 // Mega electron Volt (MeV)
19 // positron charge (eplus)
20 // degree Kelvin (kelvin)
21 // the amount of substance (mole)
22 // luminous intensity (candela)
23 // radian (radian)
24 // steradian (steradian)
25 //
26 // Below is a non exhaustive list of derived and pratical units
27 // (i.e. mostly the SI units).
28 // You can add your own units.
29 //
30 // The SI numerical value of the positron charge is defined here,
31 // as it is needed for conversion factor : positron charge = e_SI (coulomb)
32 //
33 // The others physical constants are defined in the header file :
34 // PhysicalConstants.h
35 //
36 // Authors: M.Maire, S.Giani
37 //
38 // History:
39 //
40 // 06.02.96 Created.
41 // 28.03.96 Added miscellaneous constants.
42 // 05.12.97 E.Tcherniaev: Redefined pascal (to avoid warnings on WinNT)
43 // 20.05.98 names: meter, second, gram, radian, degree
44 // (from Brian.Lasiuk@yale.edu (STAR)). Added luminous units.
45 // 05.08.98 angstrom, picobarn, microsecond, picosecond, petaelectronvolt
46 // 01.03.01 parsec
47 // 31.01.06 kilogray, milligray, microgray
48 // 29.04.08 use PDG 2006 value of e_SI
49 // 03.11.08 use PDG 2008 value of e_SI
50 // 19.08.15 added liter and its sub units (mma)
51 // 12.01.16 added symbols for microsecond (us) and picosecond (ps) (mma)
52 // 02.10.17 addopted units from CLHEP 2.3.4.3 and converted to TGeo unit base
53 
54 #ifndef TGEANT4_SYSTEM_OF_UNITS_H
55 #define TGEANT4_SYSTEM_OF_UNITS_H
56 
57 namespace TGeant4Unit {
58 
59  //
60  // TGeo follows Geant3 convention as specified in manual
61  // "Unless otherwise specified, the following units are used throughout the program:
62  // centimeter, second, degree, GeV"
63 
64  //
65  //
66  //
67  static constexpr double pi = 3.14159265358979323846;
68  static constexpr double twopi = 2 * pi;
69  static constexpr double halfpi = pi / 2;
70  static constexpr double pi2 = pi * pi;
71 
72  //
73  // Length [L]
74  //
75  static constexpr double millimeter = 1.0;
76  static constexpr double millimeter2 = millimeter * millimeter;
77  static constexpr double millimeter3 = millimeter * millimeter * millimeter;
78 
79  static constexpr double centimeter = 10. * millimeter; // Base unit
80  static constexpr double centimeter2 = centimeter * centimeter;
81  static constexpr double centimeter3 = centimeter * centimeter * centimeter;
82 
83  static constexpr double meter = 1000. * millimeter;
84  static constexpr double meter2 = meter * meter;
85  static constexpr double meter3 = meter * meter * meter;
86 
87  static constexpr double kilometer = 1000. * meter;
88  static constexpr double kilometer2 = kilometer * kilometer;
89  static constexpr double kilometer3 = kilometer * kilometer * kilometer;
90 
91  static constexpr double parsec = 3.0856775807e+16 * meter;
92 
93  static constexpr double micrometer = 1.e-6 * meter;
94  static constexpr double nanometer = 1.e-9 * meter;
95  static constexpr double angstrom = 1.e-10 * meter;
96  static constexpr double fermi = 1.e-15 * meter;
97 
98  static constexpr double barn = 1.e-28 * meter2;
99  static constexpr double millibarn = 1.e-3 * barn;
100  static constexpr double microbarn = 1.e-6 * barn;
101  static constexpr double nanobarn = 1.e-9 * barn;
102  static constexpr double picobarn = 1.e-12 * barn;
103 
104  // symbols
105  static constexpr double nm = nanometer;
106  static constexpr double um = micrometer;
107 
108  static constexpr double mm = millimeter;
109  static constexpr double mm2 = millimeter2;
110  static constexpr double mm3 = millimeter3;
111 
112  static constexpr double cm = centimeter;
113  static constexpr double cm2 = centimeter2;
114  static constexpr double cm3 = centimeter3;
115 
116  static constexpr double liter = 1.e+3 * cm3;
117  static constexpr double L = liter;
118  static constexpr double dL = 1.e-1 * liter;
119  static constexpr double cL = 1.e-2 * liter;
120  static constexpr double mL = 1.e-3 * liter;
121 
122  static constexpr double m = meter;
123  static constexpr double m2 = meter2;
124  static constexpr double m3 = meter3;
125 
126  static constexpr double km = kilometer;
127  static constexpr double km2 = kilometer2;
128  static constexpr double km3 = kilometer3;
129 
130  static constexpr double pc = parsec;
131 
132  //
133  // Angle
134  //
135  static constexpr double degree = 1.0; // Base unit
136  static constexpr double radian = (180.0 / pi) * degree;
137  static constexpr double milliradian = 1.e-3 * radian;
138 
139  static constexpr double steradian = 1.;
140 
141  // symbols
142  static constexpr double rad = radian;
143  static constexpr double mrad = milliradian;
144  static constexpr double sr = steradian;
145  static constexpr double deg = degree;
146 
147  //
148  // Time [T]
149  //
150  static constexpr double nanosecond = 1.0;
151  static constexpr double second = 1.e+9 * nanosecond; // Base unit
152  static constexpr double millisecond = 1.e-3 * second;
153  static constexpr double microsecond = 1.e-6 * second;
154  static constexpr double picosecond = 1.e-12 * second;
155 
156  static constexpr double hertz = 1. / second;
157  static constexpr double kilohertz = 1.e+3 * hertz;
158  static constexpr double megahertz = 1.e+6 * hertz;
159 
160  // symbols
161  static constexpr double ns = nanosecond;
162  static constexpr double s = second;
163  static constexpr double ms = millisecond;
164  static constexpr double us = microsecond;
165  static constexpr double ps = picosecond;
166 
167  //
168  // Electric charge [Q]
169  //
170  static constexpr double eplus = 1.; // positron charge
171  static constexpr double e_SI = 1.602176487e-19; // positron charge in coulomb
172  static constexpr double coulomb = eplus / e_SI; // coulomb = 6.24150 e+18 * eplus
173 
174  //
175  // Energy [E]
176  //
177  static constexpr double megaelectronvolt = 1.0;
178  static constexpr double electronvolt = 1.e-6 * megaelectronvolt;
179  static constexpr double kiloelectronvolt = 1.e-3 * megaelectronvolt;
180  static constexpr double gigaelectronvolt = 1.e+3 * megaelectronvolt; // Base unit
181  static constexpr double teraelectronvolt = 1.e+6 * megaelectronvolt;
182  static constexpr double petaelectronvolt = 1.e+9 * megaelectronvolt;
183 
184  static constexpr double joule = electronvolt / e_SI; // joule = 6.24150 e+12 * MeV
185 
186  // symbols
187  static constexpr double MeV = megaelectronvolt;
188  static constexpr double eV = electronvolt;
189  static constexpr double keV = kiloelectronvolt;
190  static constexpr double GeV = gigaelectronvolt;
191  static constexpr double TeV = teraelectronvolt;
192  static constexpr double PeV = petaelectronvolt;
193 
194  //
195  // Mass [E][T^2][L^-2]
196  //
197  static constexpr double kilogram = joule * second * second / (meter * meter);
198  static constexpr double gram = 1.e-3 * kilogram;
199  static constexpr double milligram = 1.e-3 * gram;
200 
201  // symbols
202  static constexpr double kg = kilogram;
203  static constexpr double g = gram;
204  static constexpr double mg = milligram;
205 
206  //
207  // Power [E][T^-1]
208  //
209  static constexpr double watt = joule / second; // watt = 6.24150 e+3 * MeV/ns
210 
211  //
212  // Force [E][L^-1]
213  //
214  static constexpr double newton = joule / meter; // newton = 6.24150 e+9 * MeV/mm
215 
216  //
217  // Pressure [E][L^-3]
218  //
219 #define pascal hep_pascal // a trick to avoid warnings
220  static constexpr double hep_pascal = newton / m2; // pascal = 6.24150 e+3 * MeV/mm3
221  static constexpr double bar = 100000 * pascal; // bar = 6.24150 e+8 * MeV/mm3
222  static constexpr double atmosphere = 101325 * pascal; // atm = 6.32420 e+8 * MeV/mm3
223 
224  //
225  // Electric current [Q][T^-1]
226  //
227  static constexpr double ampere = coulomb / second; // ampere = 6.24150 e+9 * eplus/ns
228  static constexpr double milliampere = 1.e-3 * ampere;
229  static constexpr double microampere = 1.e-6 * ampere;
230  static constexpr double nanoampere = 1.e-9 * ampere;
231 
232  //
233  // Electric potential [E][Q^-1]
234  //
235  static constexpr double megavolt = megaelectronvolt / eplus;
236  static constexpr double kilovolt = 1.e-3 * megavolt;
237  static constexpr double volt = 1.e-6 * megavolt;
238 
239  //
240  // Electric resistance [E][T][Q^-2]
241  //
242  static constexpr double ohm = volt / ampere; // ohm = 1.60217e-16*(MeV/eplus)/(eplus/ns)
243 
244  //
245  // Electric capacitance [Q^2][E^-1]
246  //
247  static constexpr double farad = coulomb / volt; // farad = 6.24150e+24 * eplus/Megavolt
248  static constexpr double millifarad = 1.e-3 * farad;
249  static constexpr double microfarad = 1.e-6 * farad;
250  static constexpr double nanofarad = 1.e-9 * farad;
251  static constexpr double picofarad = 1.e-12 * farad;
252 
253  //
254  // Magnetic Flux [T][E][Q^-1]
255  //
256  static constexpr double weber = volt * second; // weber = 1000*megavolt*ns
257 
258  //
259  // Magnetic Field [T][E][Q^-1][L^-2]
260  //
261  static constexpr double tesla = volt * second / meter2; // tesla =0.001*megavolt*ns/mm2
262 
263  static constexpr double gauss = 1.e-4 * tesla;
264  static constexpr double kilogauss = 1.e-1 * tesla;
265 
266  //
267  // Inductance [T^2][E][Q^-2]
268  //
269  static constexpr double henry = weber / ampere; // henry = 1.60217e-7*MeV*(ns/eplus)**2
270 
271  //
272  // Temperature
273  //
274  static constexpr double kelvin = 1.;
275 
276  //
277  // Amount of substance
278  //
279  static constexpr double mole = 1.;
280 
281  //
282  // Activity [T^-1]
283  //
284  static constexpr double becquerel = 1. / second;
285  static constexpr double curie = 3.7e+10 * becquerel;
286  static constexpr double kilobecquerel = 1.e+3 * becquerel;
287  static constexpr double megabecquerel = 1.e+6 * becquerel;
288  static constexpr double gigabecquerel = 1.e+9 * becquerel;
289  static constexpr double millicurie = 1.e-3 * curie;
290  static constexpr double microcurie = 1.e-6 * curie;
291  static constexpr double Bq = becquerel;
292  static constexpr double kBq = kilobecquerel;
293  static constexpr double MBq = megabecquerel;
294  static constexpr double GBq = gigabecquerel;
295  static constexpr double Ci = curie;
296  static constexpr double mCi = millicurie;
297  static constexpr double uCi = microcurie;
298 
299  //
300  // Absorbed dose [L^2][T^-2]
301  //
302  static constexpr double gray = joule / kilogram;
303  static constexpr double kilogray = 1.e+3 * gray;
304  static constexpr double milligray = 1.e-3 * gray;
305  static constexpr double microgray = 1.e-6 * gray;
306 
307  //
308  // Luminous intensity [I]
309  //
310  static constexpr double candela = 1.;
311 
312  //
313  // Luminous flux [I]
314  //
315  static constexpr double lumen = candela * steradian;
316 
317  //
318  // Illuminance [I][L^-2]
319  //
320  static constexpr double lux = lumen / meter2;
321 
322  //
323  // Miscellaneous
324  //
325  static constexpr double perCent = 0.01;
326  static constexpr double perThousand = 0.001;
327  static constexpr double perMillion = 0.000001;
328 
329  /// System of units flavor. Must be kept in sync with TGeoUnits::UnitType
330  enum UnitType {
331  kTGeoUnits = 1<<0,
333  };
334 
335  /// Access the currently set units type
337  /// Set the currently used unit type (Only ONCE possible)
339 
340 } // namespace TGeoUnit
341 
342 #endif /* TGEANT4_SYSTEM_OF_UNITS_H */
TGeant4Unit::mg
static constexpr double mg
Definition: TGeant4SystemOfUnits.h:210
TGeant4Unit::picofarad
static constexpr double picofarad
Definition: TGeant4SystemOfUnits.h:257
TGeant4Unit::MeV
static constexpr double MeV
Definition: TGeant4SystemOfUnits.h:193
TGeant4Unit::angstrom
static constexpr double angstrom
Definition: TGeant4SystemOfUnits.h:101
TGeant4Unit::micrometer
static constexpr double micrometer
Definition: TGeant4SystemOfUnits.h:99
TGeant4Unit::eplus
static constexpr double eplus
Definition: TGeant4SystemOfUnits.h:176
TGeant4Unit::megavolt
static constexpr double megavolt
Definition: TGeant4SystemOfUnits.h:241
TGeant4Unit::perCent
static constexpr double perCent
Definition: TGeant4SystemOfUnits.h:331
TGeant4Unit::millimeter3
static constexpr double millimeter3
Definition: TGeant4SystemOfUnits.h:83
TGeant4Unit::millimeter
static constexpr double millimeter
Definition: TGeant4SystemOfUnits.h:81
TGeant4Unit::MBq
static constexpr double MBq
Definition: TGeant4SystemOfUnits.h:299
TGeant4Unit::milliampere
static constexpr double milliampere
Definition: TGeant4SystemOfUnits.h:234
TGeant4Unit::petaelectronvolt
static constexpr double petaelectronvolt
Definition: TGeant4SystemOfUnits.h:188
TGeant4Unit::kilometer
static constexpr double kilometer
Definition: TGeant4SystemOfUnits.h:93
TGeant4Unit::kilogram
static constexpr double kilogram
Definition: TGeant4SystemOfUnits.h:203
TGeant4Unit::Bq
static constexpr double Bq
Definition: TGeant4SystemOfUnits.h:297
TGeant4Unit::perThousand
static constexpr double perThousand
Definition: TGeant4SystemOfUnits.h:332
TGeant4Unit::degree
static constexpr double degree
Definition: TGeant4SystemOfUnits.h:141
TGeant4Unit::megahertz
static constexpr double megahertz
Definition: TGeant4SystemOfUnits.h:164
TGeant4Unit::kilovolt
static constexpr double kilovolt
Definition: TGeant4SystemOfUnits.h:242
TGeant4Unit::fermi
static constexpr double fermi
Definition: TGeant4SystemOfUnits.h:102
TGeant4Unit::m
static constexpr double m
Definition: TGeant4SystemOfUnits.h:128
TGeant4Unit::parsec
static constexpr double parsec
Definition: TGeant4SystemOfUnits.h:97
TGeant4Unit::cL
static constexpr double cL
Definition: TGeant4SystemOfUnits.h:125
TGeant4Unit::setUnitType
UnitType setUnitType(UnitType new_type)
Set the currently used unit type (Only ONCE possible)
Definition: TGeoUnit.cxx:50
TGeant4Unit::PeV
static constexpr double PeV
Definition: TGeant4SystemOfUnits.h:198
TGeant4Unit::eV
static constexpr double eV
Definition: TGeant4SystemOfUnits.h:194
TGeant4Unit::kilogauss
static constexpr double kilogauss
Definition: TGeant4SystemOfUnits.h:270
TGeant4Unit::cm2
static constexpr double cm2
Definition: TGeant4SystemOfUnits.h:119
TGeant4Unit::megabecquerel
static constexpr double megabecquerel
Definition: TGeant4SystemOfUnits.h:293
TGeant4Unit::kTGeoUnits
@ kTGeoUnits
Definition: TGeant4SystemOfUnits.h:337
TGeant4Unit::lux
static constexpr double lux
Definition: TGeant4SystemOfUnits.h:326
pascal
#define pascal
Definition: TGeant4SystemOfUnits.h:225
TGeant4Unit::milligray
static constexpr double milligray
Definition: TGeant4SystemOfUnits.h:310
TGeant4Unit::mL
static constexpr double mL
Definition: TGeant4SystemOfUnits.h:126
TGeant4Unit::candela
static constexpr double candela
Definition: TGeant4SystemOfUnits.h:316
TGeant4Unit::s
static constexpr double s
Definition: TGeant4SystemOfUnits.h:168
TGeant4Unit::ps
static constexpr double ps
Definition: TGeant4SystemOfUnits.h:171
TGeant4Unit::pc
static constexpr double pc
Definition: TGeant4SystemOfUnits.h:136
TGeant4Unit::millicurie
static constexpr double millicurie
Definition: TGeant4SystemOfUnits.h:295
TGeant4Unit::nanosecond
static constexpr double nanosecond
Definition: TGeant4SystemOfUnits.h:156
TGeant4Unit::meter
static constexpr double meter
Definition: TGeant4SystemOfUnits.h:89
TGeant4Unit::twopi
static constexpr double twopi
Definition: TGeant4SystemOfUnits.h:74
TGeant4Unit::nanometer
static constexpr double nanometer
Definition: TGeant4SystemOfUnits.h:100
TGeant4Unit::gigabecquerel
static constexpr double gigabecquerel
Definition: TGeant4SystemOfUnits.h:294
TGeant4Unit::e_SI
static constexpr double e_SI
Definition: TGeant4SystemOfUnits.h:177
TGeant4Unit::lumen
static constexpr double lumen
Definition: TGeant4SystemOfUnits.h:321
TGeant4Unit::deg
static constexpr double deg
Definition: TGeant4SystemOfUnits.h:151
TGeant4Unit::bar
static constexpr double bar
Definition: TGeant4SystemOfUnits.h:227
TGeant4Unit::becquerel
static constexpr double becquerel
Definition: TGeant4SystemOfUnits.h:290
TGeant4Unit::cm
static constexpr double cm
Definition: TGeant4SystemOfUnits.h:118
TGeant4Unit::g
static constexpr double g
Definition: TGeant4SystemOfUnits.h:209
TGeant4Unit::milliradian
static constexpr double milliradian
Definition: TGeant4SystemOfUnits.h:143
TGeant4Unit::kilometer3
static constexpr double kilometer3
Definition: TGeant4SystemOfUnits.h:95
TGeant4Unit::kTGeant4Units
@ kTGeant4Units
Definition: TGeant4SystemOfUnits.h:338
TGeant4Unit::GBq
static constexpr double GBq
Definition: TGeant4SystemOfUnits.h:300
TGeant4Unit::UnitType
UnitType
System of units flavor. Must be kept in sync with TGeoUnits::UnitType.
Definition: TGeant4SystemOfUnits.h:336
TGeant4Unit::kelvin
static constexpr double kelvin
Definition: TGeant4SystemOfUnits.h:280
TGeant4Unit::electronvolt
static constexpr double electronvolt
Definition: TGeant4SystemOfUnits.h:184
TGeant4Unit::kg
static constexpr double kg
Definition: TGeant4SystemOfUnits.h:208
TGeant4Unit::milligram
static constexpr double milligram
Definition: TGeant4SystemOfUnits.h:205
TGeant4Unit::microgray
static constexpr double microgray
Definition: TGeant4SystemOfUnits.h:311
TGeant4Unit::liter
static constexpr double liter
Definition: TGeant4SystemOfUnits.h:122
TGeant4Unit::gray
static constexpr double gray
Definition: TGeant4SystemOfUnits.h:308
TGeant4Unit::L
static constexpr double L
Definition: TGeant4SystemOfUnits.h:123
TGeant4Unit::microfarad
static constexpr double microfarad
Definition: TGeant4SystemOfUnits.h:255
TGeant4Unit::microsecond
static constexpr double microsecond
Definition: TGeant4SystemOfUnits.h:159
TGeant4Unit::m2
static constexpr double m2
Definition: TGeant4SystemOfUnits.h:129
TGeant4Unit::tesla
static constexpr double tesla
Definition: TGeant4SystemOfUnits.h:267
TGeant4Unit::henry
static constexpr double henry
Definition: TGeant4SystemOfUnits.h:275
TGeant4Unit::GeV
static constexpr double GeV
Definition: TGeant4SystemOfUnits.h:196
TGeant4Unit::gigaelectronvolt
static constexpr double gigaelectronvolt
Definition: TGeant4SystemOfUnits.h:186
TGeant4Unit::millimeter2
static constexpr double millimeter2
Definition: TGeant4SystemOfUnits.h:82
TGeant4Unit::microcurie
static constexpr double microcurie
Definition: TGeant4SystemOfUnits.h:296
TGeant4Unit::ohm
static constexpr double ohm
Definition: TGeant4SystemOfUnits.h:248
TGeant4Unit::nanofarad
static constexpr double nanofarad
Definition: TGeant4SystemOfUnits.h:256
TGeant4Unit::gauss
static constexpr double gauss
Definition: TGeant4SystemOfUnits.h:269
TGeant4Unit::hep_pascal
static constexpr double hep_pascal
Definition: TGeant4SystemOfUnits.h:226
TGeant4Unit::us
static constexpr double us
Definition: TGeant4SystemOfUnits.h:170
TGeant4Unit::mrad
static constexpr double mrad
Definition: TGeant4SystemOfUnits.h:149
TGeant4Unit::halfpi
static constexpr double halfpi
Definition: TGeant4SystemOfUnits.h:75
TGeant4Unit::gram
static constexpr double gram
Definition: TGeant4SystemOfUnits.h:204
TGeant4Unit::barn
static constexpr double barn
Definition: TGeant4SystemOfUnits.h:104
TGeant4Unit::sr
static constexpr double sr
Definition: TGeant4SystemOfUnits.h:150
TGeant4Unit::ns
static constexpr double ns
Definition: TGeant4SystemOfUnits.h:167
TGeant4Unit::mm2
static constexpr double mm2
Definition: TGeant4SystemOfUnits.h:115
TGeant4Unit::kiloelectronvolt
static constexpr double kiloelectronvolt
Definition: TGeant4SystemOfUnits.h:185
TGeant4Unit::volt
static constexpr double volt
Definition: TGeant4SystemOfUnits.h:243
TGeant4Unit::km2
static constexpr double km2
Definition: TGeant4SystemOfUnits.h:133
TGeant4Unit::coulomb
static constexpr double coulomb
Definition: TGeant4SystemOfUnits.h:178
TGeant4Unit::curie
static constexpr double curie
Definition: TGeant4SystemOfUnits.h:291
TGeant4Unit::m3
static constexpr double m3
Definition: TGeant4SystemOfUnits.h:130
TGeant4Unit::keV
static constexpr double keV
Definition: TGeant4SystemOfUnits.h:195
TGeant4Unit::farad
static constexpr double farad
Definition: TGeant4SystemOfUnits.h:253
TGeant4Unit::kBq
static constexpr double kBq
Definition: TGeant4SystemOfUnits.h:298
TGeant4Unit
Definition: TGeant4PhysicalConstants.h:38
TGeant4Unit::ampere
static constexpr double ampere
Definition: TGeant4SystemOfUnits.h:233
TGeant4Unit::kilogray
static constexpr double kilogray
Definition: TGeant4SystemOfUnits.h:309
TGeant4Unit::weber
static constexpr double weber
Definition: TGeant4SystemOfUnits.h:262
TGeant4Unit::millibarn
static constexpr double millibarn
Definition: TGeant4SystemOfUnits.h:105
TGeant4Unit::rad
static constexpr double rad
Definition: TGeant4SystemOfUnits.h:148
TGeant4Unit::pi2
static constexpr double pi2
Definition: TGeant4SystemOfUnits.h:76
TGeant4Unit::watt
static constexpr double watt
Definition: TGeant4SystemOfUnits.h:215
TGeant4Unit::mm
static constexpr double mm
Definition: TGeant4SystemOfUnits.h:114
TGeant4Unit::Ci
static constexpr double Ci
Definition: TGeant4SystemOfUnits.h:301
TGeant4Unit::unitType
UnitType unitType()
Access the currently set units type.
Definition: TGeoUnit.cxx:46
TGeant4Unit::TeV
static constexpr double TeV
Definition: TGeant4SystemOfUnits.h:197
TGeant4Unit::picosecond
static constexpr double picosecond
Definition: TGeant4SystemOfUnits.h:160
TGeant4Unit::centimeter2
static constexpr double centimeter2
Definition: TGeant4SystemOfUnits.h:86
TGeant4Unit::mole
static constexpr double mole
Definition: TGeant4SystemOfUnits.h:285
TGeant4Unit::millisecond
static constexpr double millisecond
Definition: TGeant4SystemOfUnits.h:158
TGeant4Unit::kilobecquerel
static constexpr double kilobecquerel
Definition: TGeant4SystemOfUnits.h:292
TGeant4Unit::km3
static constexpr double km3
Definition: TGeant4SystemOfUnits.h:134
TGeant4Unit::steradian
static constexpr double steradian
Definition: TGeant4SystemOfUnits.h:145
TGeant4Unit::millifarad
static constexpr double millifarad
Definition: TGeant4SystemOfUnits.h:254
TGeant4Unit::mCi
static constexpr double mCi
Definition: TGeant4SystemOfUnits.h:302
TGeant4Unit::perMillion
static constexpr double perMillion
Definition: TGeant4SystemOfUnits.h:333
TGeant4Unit::microampere
static constexpr double microampere
Definition: TGeant4SystemOfUnits.h:235
TGeant4Unit::pi
static constexpr double pi
Definition: TGeant4SystemOfUnits.h:73
TGeant4Unit::picobarn
static constexpr double picobarn
Definition: TGeant4SystemOfUnits.h:108
TGeant4Unit::um
static constexpr double um
Definition: TGeant4SystemOfUnits.h:112
TGeant4Unit::meter2
static constexpr double meter2
Definition: TGeant4SystemOfUnits.h:90
TGeant4Unit::teraelectronvolt
static constexpr double teraelectronvolt
Definition: TGeant4SystemOfUnits.h:187
TGeant4Unit::km
static constexpr double km
Definition: TGeant4SystemOfUnits.h:132
TGeant4Unit::kilohertz
static constexpr double kilohertz
Definition: TGeant4SystemOfUnits.h:163
TGeant4Unit::kilometer2
static constexpr double kilometer2
Definition: TGeant4SystemOfUnits.h:94
TGeant4Unit::centimeter3
static constexpr double centimeter3
Definition: TGeant4SystemOfUnits.h:87
TGeant4Unit::radian
static constexpr double radian
Definition: TGeant4SystemOfUnits.h:142
TGeant4Unit::joule
static constexpr double joule
Definition: TGeant4SystemOfUnits.h:190
TGeant4Unit::ms
static constexpr double ms
Definition: TGeant4SystemOfUnits.h:169
TGeant4Unit::dL
static constexpr double dL
Definition: TGeant4SystemOfUnits.h:124
TGeant4Unit::mm3
static constexpr double mm3
Definition: TGeant4SystemOfUnits.h:116
TGeant4Unit::nm
static constexpr double nm
Definition: TGeant4SystemOfUnits.h:111
TGeant4Unit::cm3
static constexpr double cm3
Definition: TGeant4SystemOfUnits.h:120
TGeant4Unit::nanobarn
static constexpr double nanobarn
Definition: TGeant4SystemOfUnits.h:107
TGeant4Unit::second
static constexpr double second
Definition: TGeant4SystemOfUnits.h:157
TGeant4Unit::megaelectronvolt
static constexpr double megaelectronvolt
Definition: TGeant4SystemOfUnits.h:183
TGeant4Unit::hertz
static constexpr double hertz
Definition: TGeant4SystemOfUnits.h:162
TGeant4Unit::atmosphere
static constexpr double atmosphere
Definition: TGeant4SystemOfUnits.h:228
TGeant4Unit::centimeter
static constexpr double centimeter
Definition: TGeant4SystemOfUnits.h:85
TGeant4Unit::microbarn
static constexpr double microbarn
Definition: TGeant4SystemOfUnits.h:106
TGeant4Unit::meter3
static constexpr double meter3
Definition: TGeant4SystemOfUnits.h:91
TGeant4Unit::nanoampere
static constexpr double nanoampere
Definition: TGeant4SystemOfUnits.h:236
TGeant4Unit::uCi
static constexpr double uCi
Definition: TGeant4SystemOfUnits.h:303
TGeant4Unit::newton
static constexpr double newton
Definition: TGeant4SystemOfUnits.h:220