Geant4 VMC Version 6.6
Loading...
Searching...
No Matches
TG4G3Units.h
Go to the documentation of this file.
1#ifndef TG4_G3_UNITS_H
2#define TG4_G3_UNITS_H
3
4//------------------------------------------------
5// The Geant4 Virtual Monte Carlo package
6// Copyright (C) 2007 - 2014 Ivana Hrivnacova
7// All rights reserved.
8//
9// For the licensing terms see geant4_vmc/LICENSE.
10// Contact: root-vmc@cern.ch
11//-------------------------------------------------
12
17
18#include <globals.hh>
19
26
28{
29 public:
31
32 // static get methods
33 static G4double Length();
34 static G4double Angle();
35 static G4double Time();
36 static G4double Charge();
37 static G4double Energy();
38 static G4double Mass();
39 static G4double MassDensity();
40 static G4double AtomicWeight();
41 static G4double Field();
42 // inverse values
43 static G4double InverseLength();
44 static G4double InverseAngle();
45 static G4double InverseTime();
46 static G4double InverseCharge();
47 static G4double InverseEnergy();
48 static G4double InverseMass();
49 static G4double InverseMassDensity();
50 static G4double InverseAtomicWeight();
51 static G4double InverseField();
52
53
54 private:
56
57 // static data members
58 static const G4double fgkLength;
59 static const G4double fgkAngle;
60 static const G4double fgkTime;
61 static const G4double fgkCharge;
62 static const G4double fgkEnergy;
63 static const G4double fgkMass;
64 static const G4double fgkMassDensity;
65 static const G4double fgkAtomicWeight;
66 static const G4double fgkField;
67 // inverse values
68 static const G4double fgkInverseLength;
69 static const G4double fgkInverseAngle;
70 static const G4double fgkInverseTime;
71 static const G4double fgkInverseCharge;
72 static const G4double fgkInverseEnergy;
73 static const G4double fgkInverseMass;
74 static const G4double fgkInverseMassDensity;
75 static const G4double fgkInverseAtomicWeight;
76 static const G4double fgkInverseField;
77};
78
79// inline methods
80
81inline G4double TG4G3Units::Length()
82{
84 return fgkLength;
85}
86
87inline G4double TG4G3Units::Angle()
88{
90 return fgkAngle;
91}
92
93inline G4double TG4G3Units::Time()
94{
96 return fgkTime;
97}
98
99inline G4double TG4G3Units::Charge()
100{
102 return fgkCharge;
103}
104
105inline G4double TG4G3Units::Energy()
106{
108 return fgkEnergy;
109}
110
111inline G4double TG4G3Units::Mass()
112{
114 return fgkMass;
115}
116
117inline G4double TG4G3Units::MassDensity()
118{
120 return fgkMassDensity;
121}
122
124{
126 return fgkAtomicWeight;
127}
128
129inline G4double TG4G3Units::Field()
130{
132 return fgkField;
133}
134
135inline G4double TG4G3Units::InverseLength() {
136 return fgkInverseLength;
137}
138
140{
142 return fgkInverseAngle;
143}
144
145inline G4double TG4G3Units::InverseTime()
146{
148 return fgkInverseTime;
149}
150
152{
154 return fgkInverseCharge;
155}
156
158{
160 return fgkInverseEnergy;
161}
162
163inline G4double TG4G3Units::InverseMass()
164{
166 return fgkInverseMass;
167}
168
170{
173}
174
176{
179}
180
182{
184 return fgkInverseField;
185}
186
187#endif // TG4_G3_UNITS_H
G3 default units of physical quantities;.
Definition TG4G3Units.h:28
static const G4double fgkInverseAtomicWeight
1 over G3 atomic weight unit
Definition TG4G3Units.h:75
static const G4double fgkInverseCharge
1 over G3 charge unit
Definition TG4G3Units.h:71
static const G4double fgkField
G3 magnetic field unit.
Definition TG4G3Units.h:66
static G4double Mass()
Definition TG4G3Units.h:111
static const G4double fgkTime
G3 time unit.
Definition TG4G3Units.h:60
static G4double Charge()
Definition TG4G3Units.h:99
static const G4double fgkInverseTime
1 over G3 time unit
Definition TG4G3Units.h:70
static G4double Energy()
Definition TG4G3Units.h:105
static G4double InverseCharge()
Definition TG4G3Units.h:151
static G4double InverseField()
Definition TG4G3Units.h:181
static const G4double fgkInverseAngle
1 over G3 angle unit
Definition TG4G3Units.h:69
static G4double Length()
Definition TG4G3Units.h:81
static G4double InverseMass()
Definition TG4G3Units.h:163
static const G4double fgkInverseMass
1 over G3 mass unit
Definition TG4G3Units.h:73
static const G4double fgkCharge
G3 charge unit.
Definition TG4G3Units.h:61
static G4double Field()
Definition TG4G3Units.h:129
static const G4double fgkInverseMassDensity
1 over G3 mass density unit
Definition TG4G3Units.h:74
static G4double InverseLength()
Definition TG4G3Units.h:135
static G4double AtomicWeight()
Definition TG4G3Units.h:123
static G4double InverseAngle()
Definition TG4G3Units.h:139
static const G4double fgkEnergy
G3 energy unit.
Definition TG4G3Units.h:62
static G4double InverseMassDensity()
Definition TG4G3Units.h:169
static G4double InverseAtomicWeight()
Definition TG4G3Units.h:175
static const G4double fgkLength
G3 length unit.
Definition TG4G3Units.h:58
static const G4double fgkAngle
G3 angle unit.
Definition TG4G3Units.h:59
static const G4double fgkMassDensity
G3 mass density unit.
Definition TG4G3Units.h:64
static G4double InverseTime()
Definition TG4G3Units.h:145
static G4double Angle()
Definition TG4G3Units.h:87
static const G4double fgkAtomicWeight
G3 atomic weight unit.
Definition TG4G3Units.h:65
static const G4double fgkInverseEnergy
1 over G3 energy unit
Definition TG4G3Units.h:72
static G4double InverseEnergy()
Definition TG4G3Units.h:157
static const G4double fgkInverseLength
1 over G3 length unit
Definition TG4G3Units.h:68
static G4double Time()
Definition TG4G3Units.h:93
static G4double MassDensity()
Definition TG4G3Units.h:117
static const G4double fgkInverseField
1 over G3 magnetic field unit
Definition TG4G3Units.h:76
static const G4double fgkMass
G3 mass unit.
Definition TG4G3Units.h:63