Geant4 VMC
Version 6.8
Toggle main menu visibility
Loading...
Searching...
No Matches
source
global
include
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
27
class
TG4G3Units
28
{
29
public
:
30
~TG4G3Units
();
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
:
55
TG4G3Units
();
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
81
inline
G4double
TG4G3Units::Length
()
82
{
84
return
fgkLength
;
85
}
86
87
inline
G4double
TG4G3Units::Angle
()
88
{
90
return
fgkAngle
;
91
}
92
93
inline
G4double
TG4G3Units::Time
()
94
{
96
return
fgkTime
;
97
}
98
99
inline
G4double
TG4G3Units::Charge
()
100
{
102
return
fgkCharge
;
103
}
104
105
inline
G4double
TG4G3Units::Energy
()
106
{
108
return
fgkEnergy
;
109
}
110
111
inline
G4double
TG4G3Units::Mass
()
112
{
114
return
fgkMass
;
115
}
116
117
inline
G4double
TG4G3Units::MassDensity
()
118
{
120
return
fgkMassDensity
;
121
}
122
123
inline
G4double
TG4G3Units::AtomicWeight
()
124
{
126
return
fgkAtomicWeight
;
127
}
128
129
inline
G4double
TG4G3Units::Field
()
130
{
132
return
fgkField
;
133
}
134
135
inline
G4double
TG4G3Units::InverseLength
() {
136
return
fgkInverseLength
;
137
}
138
139
inline
G4double
TG4G3Units::InverseAngle
()
140
{
142
return
fgkInverseAngle
;
143
}
144
145
inline
G4double
TG4G3Units::InverseTime
()
146
{
148
return
fgkInverseTime
;
149
}
150
151
inline
G4double
TG4G3Units::InverseCharge
()
152
{
154
return
fgkInverseCharge
;
155
}
156
157
inline
G4double
TG4G3Units::InverseEnergy
()
158
{
160
return
fgkInverseEnergy
;
161
}
162
163
inline
G4double
TG4G3Units::InverseMass
()
164
{
166
return
fgkInverseMass
;
167
}
168
169
inline
G4double
TG4G3Units::InverseMassDensity
()
170
{
172
return
fgkInverseMassDensity
;
173
}
174
175
inline
G4double
TG4G3Units::InverseAtomicWeight
()
176
{
178
return
fgkInverseAtomicWeight
;
179
}
180
181
inline
G4double
TG4G3Units::InverseField
()
182
{
184
return
fgkInverseField
;
185
}
186
187
#endif
// TG4_G3_UNITS_H
TG4G3Units::fgkInverseAtomicWeight
static const G4double fgkInverseAtomicWeight
1 over G3 atomic weight unit
Definition
TG4G3Units.h:75
TG4G3Units::fgkInverseCharge
static const G4double fgkInverseCharge
1 over G3 charge unit
Definition
TG4G3Units.h:71
TG4G3Units::fgkField
static const G4double fgkField
G3 magnetic field unit.
Definition
TG4G3Units.h:66
TG4G3Units::Mass
static G4double Mass()
Definition
TG4G3Units.h:111
TG4G3Units::fgkTime
static const G4double fgkTime
G3 time unit.
Definition
TG4G3Units.h:60
TG4G3Units::Charge
static G4double Charge()
Definition
TG4G3Units.h:99
TG4G3Units::fgkInverseTime
static const G4double fgkInverseTime
1 over G3 time unit
Definition
TG4G3Units.h:70
TG4G3Units::Energy
static G4double Energy()
Definition
TG4G3Units.h:105
TG4G3Units::InverseCharge
static G4double InverseCharge()
Definition
TG4G3Units.h:151
TG4G3Units::InverseField
static G4double InverseField()
Definition
TG4G3Units.h:181
TG4G3Units::fgkInverseAngle
static const G4double fgkInverseAngle
1 over G3 angle unit
Definition
TG4G3Units.h:69
TG4G3Units::Length
static G4double Length()
Definition
TG4G3Units.h:81
TG4G3Units::InverseMass
static G4double InverseMass()
Definition
TG4G3Units.h:163
TG4G3Units::fgkInverseMass
static const G4double fgkInverseMass
1 over G3 mass unit
Definition
TG4G3Units.h:73
TG4G3Units::fgkCharge
static const G4double fgkCharge
G3 charge unit.
Definition
TG4G3Units.h:61
TG4G3Units::Field
static G4double Field()
Definition
TG4G3Units.h:129
TG4G3Units::fgkInverseMassDensity
static const G4double fgkInverseMassDensity
1 over G3 mass density unit
Definition
TG4G3Units.h:74
TG4G3Units::TG4G3Units
TG4G3Units()
TG4G3Units::InverseLength
static G4double InverseLength()
Definition
TG4G3Units.h:135
TG4G3Units::AtomicWeight
static G4double AtomicWeight()
Definition
TG4G3Units.h:123
TG4G3Units::InverseAngle
static G4double InverseAngle()
Definition
TG4G3Units.h:139
TG4G3Units::fgkEnergy
static const G4double fgkEnergy
G3 energy unit.
Definition
TG4G3Units.h:62
TG4G3Units::InverseMassDensity
static G4double InverseMassDensity()
Definition
TG4G3Units.h:169
TG4G3Units::InverseAtomicWeight
static G4double InverseAtomicWeight()
Definition
TG4G3Units.h:175
TG4G3Units::fgkLength
static const G4double fgkLength
G3 length unit.
Definition
TG4G3Units.h:58
TG4G3Units::fgkAngle
static const G4double fgkAngle
G3 angle unit.
Definition
TG4G3Units.h:59
TG4G3Units::fgkMassDensity
static const G4double fgkMassDensity
G3 mass density unit.
Definition
TG4G3Units.h:64
TG4G3Units::~TG4G3Units
~TG4G3Units()
Definition
TG4G3Units.cxx:42
TG4G3Units::InverseTime
static G4double InverseTime()
Definition
TG4G3Units.h:145
TG4G3Units::Angle
static G4double Angle()
Definition
TG4G3Units.h:87
TG4G3Units::fgkAtomicWeight
static const G4double fgkAtomicWeight
G3 atomic weight unit.
Definition
TG4G3Units.h:65
TG4G3Units::fgkInverseEnergy
static const G4double fgkInverseEnergy
1 over G3 energy unit
Definition
TG4G3Units.h:72
TG4G3Units::InverseEnergy
static G4double InverseEnergy()
Definition
TG4G3Units.h:157
TG4G3Units::fgkInverseLength
static const G4double fgkInverseLength
1 over G3 length unit
Definition
TG4G3Units.h:68
TG4G3Units::Time
static G4double Time()
Definition
TG4G3Units.h:93
TG4G3Units::MassDensity
static G4double MassDensity()
Definition
TG4G3Units.h:117
TG4G3Units::fgkInverseField
static const G4double fgkInverseField
1 over G3 magnetic field unit
Definition
TG4G3Units.h:76
TG4G3Units::fgkMass
static const G4double fgkMass
G3 mass unit.
Definition
TG4G3Units.h:63
Generated on
for Geant4 VMC by
1.17.0