ECCE @ EIC Software
 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"
45 {
46  // Class Description
47  // G4IsotopeProperty contains properties of an isotope
48  //
49 
50  public:
52 
53  // copy construictor
55 
56  // Assignment operator
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
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
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
118 };
119 
120 inline
122 {
123  return fAtomicNumber;
124 }
125 
126 inline
128 {
129  fAtomicNumber = Z;
130 }
131 
132 inline
134 {
135  return fAtomicMass;
136 }
137 
138 inline
140 {
141  fAtomicMass = A;
142 }
143 
144 inline
146 {
147  return fISpin;
148 }
149 
150 inline
152 {
153  fISpin = J;
154 }
155 
156 inline
158 {
159  return fMagneticMoment;
160 }
161 
162 inline
164 {
165  fMagneticMoment = M;
166 }
167 
168 inline
170 {
171  return fEnergy;
172 }
173 
174 inline
176 {
177  fEnergy = E;
178 }
179 
180 inline
182 {
183  return fIsomerLevel;
184 }
185 inline
187 {
188  fIsomerLevel = level;
189 }
190 
191 inline
193 {
194  return fLifeTime;
195 }
196 
197 inline
199 {
200  fLifeTime = T;
201 }
202 
203 inline
205 {
206  return fDecayTable;
207 }
208 
209 inline
211 {
212  fDecayTable = table;
213 }
214 
215 inline
217 {
218  return fFloatLevelBase;
219 }
220 
221 inline
223 {
224  fFloatLevelBase = flb;
225 }
226 
227 inline
229 {
231 }
232 
233 #endif
234 
235 
236 
237 
238 
239 
240 
241