ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
G4IsotopeProperty.hh
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4IsotopeProperty.hh
1
//
2
// ********************************************************************
3
// * License and Disclaimer *
4
// * *
5
// * The Geant4 software is copyright of the Copyright Holders of *
6
// * the Geant4 Collaboration. It is provided under the terms and *
7
// * conditions of the Geant4 Software License, included in the file *
8
// * LICENSE and available at http://cern.ch/geant4/license . These *
9
// * include a list of copyright holders. *
10
// * *
11
// * Neither the authors of this software system, nor their employing *
12
// * institutes,nor the agencies providing financial support for this *
13
// * work make any representation or warranty, express or implied, *
14
// * regarding this software system or assume any liability for its *
15
// * use. Please see the license in the file LICENSE and URL above *
16
// * for the full disclaimer and the limitation of liability. *
17
// * *
18
// * This code implementation is the result of the scientific and *
19
// * technical work of the GEANT4 collaboration. *
20
// * By using, copying, modifying or distributing the software (or *
21
// * any work based on the software) you agree to acknowledge its *
22
// * use in resulting scientific publications, and indicate your *
23
// * acceptance of all terms of the Geant4 Software license. *
24
// ********************************************************************
25
//
26
//
27
//
28
//
29
// ------------------------------------------------------------
30
// GEANT 4 class header file
31
//
32
// ------------------------------------------------------------
33
// New design using G4VIsotopeTable 5 Oct. 99 H.Kurashige
34
// Add Magnetic Moment 14 Mar 07 H.Kurashige
35
// Add isomer level 30 Apr. H.Kurashige
36
37
38
#ifndef G4IsotopeProperty_h
39
#define G4IsotopeProperty_h 1
40
41
#include "
globals.hh
"
42
class
G4DecayTable
;
43
#include "
G4Ions.hh
"
44
class
G4IsotopeProperty
45
{
46
// Class Description
47
// G4IsotopeProperty contains properties of an isotope
48
//
49
50
public
:
51
G4IsotopeProperty
();
52
53
// copy construictor
54
G4IsotopeProperty
(
const
G4IsotopeProperty
&
right
);
55
56
// Assignment operator
57
G4IsotopeProperty
&
operator=
(
G4IsotopeProperty
& right);
58
59
// equal / unequal operator
60
G4bool
operator==
(
const
G4IsotopeProperty
&right)
const
;
61
G4bool
operator!=
(
const
G4IsotopeProperty
&right)
const
;
62
63
// destructor
64
virtual
~G4IsotopeProperty
();
65
66
67
public
:
// With Description
68
// Set/Get Atomic Number
69
G4int
GetAtomicNumber
()
const
;
70
void
SetAtomicNumber
(
G4int
Z
);
71
72
// Set/Get Atomic Mass
73
G4int
GetAtomicMass
()
const
;
74
void
SetAtomicMass
(
G4int
A
);
75
76
// Set/Get spin
77
G4int
GetiSpin
()
const
;
78
void
SetiSpin
(
G4int
J);
79
80
// Set/Get Magentic Moment
81
G4double
GetMagneticMoment
()
const
;
82
void
SetMagneticMoment
(
G4double
M);
83
84
// Set/Get Excited Energy
85
G4double
GetEnergy
()
const
;
86
void
SetEnergy
(
G4double
E
);
87
88
// Set/Get isomer lervel
89
G4int
GetIsomerLevel
()
const
;
90
void
SetIsomerLevel
(
G4int
level);
91
92
// Set/Get floating level base
93
G4Ions::G4FloatLevelBase
GetFloatLevelBase
()
const
;
94
void
SetFloatLevelBase
(
G4Ions::G4FloatLevelBase
flb);
95
void
SetFloatLevelBase
(
G4int
flbIndex);
96
97
// Set/Get life time
98
G4double
GetLifeTime
()
const
;
99
void
SetLifeTime
(
G4double
T
);
100
101
// Set/Get decay table
102
G4DecayTable
*
GetDecayTable
()
const
;
103
void
SetDecayTable
(
G4DecayTable
* table);
104
105
// Dump out information
106
void
DumpInfo
()
const
;
107
108
private
:
109
G4int
fAtomicNumber
;
// number of proton
110
G4int
fAtomicMass
;
// number of nucleon
111
G4int
fISpin
;
// total angular momentum (in unit of 1/2)
112
G4double
fEnergy
;
// excited energy
113
G4double
fLifeTime
;
// lifeTime
114
G4DecayTable
*
fDecayTable
;
// decay Table
115
G4double
fMagneticMoment
;
// magnetic moment
116
G4int
fIsomerLevel
;
// isomer level
117
G4Ions::G4FloatLevelBase
fFloatLevelBase
;
// floating level base
118
};
119
120
inline
121
G4int
G4IsotopeProperty::GetAtomicNumber
()
const
122
{
123
return
fAtomicNumber
;
124
}
125
126
inline
127
void
G4IsotopeProperty::SetAtomicNumber
(
G4int
Z
)
128
{
129
fAtomicNumber
=
Z
;
130
}
131
132
inline
133
G4int
G4IsotopeProperty::GetAtomicMass
()
const
134
{
135
return
fAtomicMass
;
136
}
137
138
inline
139
void
G4IsotopeProperty::SetAtomicMass
(
G4int
A
)
140
{
141
fAtomicMass
=
A
;
142
}
143
144
inline
145
G4int
G4IsotopeProperty::GetiSpin
()
const
146
{
147
return
fISpin
;
148
}
149
150
inline
151
void
G4IsotopeProperty::SetiSpin
(
G4int
J)
152
{
153
fISpin
= J;
154
}
155
156
inline
157
G4double
G4IsotopeProperty::GetMagneticMoment
()
const
158
{
159
return
fMagneticMoment
;
160
}
161
162
inline
163
void
G4IsotopeProperty::SetMagneticMoment
(
G4double
M)
164
{
165
fMagneticMoment
= M;
166
}
167
168
inline
169
G4double
G4IsotopeProperty::GetEnergy
()
const
170
{
171
return
fEnergy
;
172
}
173
174
inline
175
void
G4IsotopeProperty::SetEnergy
(
G4double
E
)
176
{
177
fEnergy
=
E
;
178
}
179
180
inline
181
G4int
G4IsotopeProperty::GetIsomerLevel
()
const
182
{
183
return
fIsomerLevel
;
184
}
185
inline
186
void
G4IsotopeProperty::SetIsomerLevel
(
G4int
level)
187
{
188
fIsomerLevel
= level;
189
}
190
191
inline
192
G4double
G4IsotopeProperty::GetLifeTime
()
const
193
{
194
return
fLifeTime
;
195
}
196
197
inline
198
void
G4IsotopeProperty::SetLifeTime
(
G4double
T
)
199
{
200
fLifeTime
=
T
;
201
}
202
203
inline
204
G4DecayTable
*
G4IsotopeProperty::GetDecayTable
()
const
205
{
206
return
fDecayTable
;
207
}
208
209
inline
210
void
G4IsotopeProperty::SetDecayTable
(
G4DecayTable
* table)
211
{
212
fDecayTable
= table;
213
}
214
215
inline
216
G4Ions::G4FloatLevelBase
G4IsotopeProperty::GetFloatLevelBase
()
const
217
{
218
return
fFloatLevelBase
;
219
}
220
221
inline
222
void
G4IsotopeProperty::SetFloatLevelBase
(
G4Ions::G4FloatLevelBase
flb)
223
{
224
fFloatLevelBase
= flb;
225
}
226
227
inline
228
void
G4IsotopeProperty::SetFloatLevelBase
(
G4int
flbIndex)
229
{
230
fFloatLevelBase
=
G4Ions::FloatLevelBase
(flbIndex);
231
}
232
233
#endif
234
235
236
237
238
239
240
241
geant4
tree
geant4-10.6-release
source
particles
management
include
G4IsotopeProperty.hh
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:24
using
1.8.2 with
ECCE GitHub integration