Geant4  10.00.p03
G4IsotopeProperty.hh
Go to the documentation of this file.
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 // $Id: G4IsotopeProperty.hh 69557 2013-05-08 12:01:40Z gcosmo $
28 //
29 //
30 // ------------------------------------------------------------
31 // GEANT 4 class header file
32 //
33 // ------------------------------------------------------------
34 // New design using G4VIsotopeTable 5 Oct. 99 H.Kurashige
35 // Add Magnetic Moment 14 Mar 07 H.Kurashige
36 // Add isomer level 30 Apr. H.Kurashige
37 
38 
39 #ifndef G4IsotopeProperty_h
40 #define G4IsotopeProperty_h 1
41 
42 #include "globals.hh"
43 class G4DecayTable;
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  G4int operator==(const G4IsotopeProperty &right) const;
61  G4int 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 life time
93  G4double GetLifeTime() const;
94  void SetLifeTime(G4double T);
95 
96  // Set/Get decay table
97  G4DecayTable* GetDecayTable() const;
98  void SetDecayTable(G4DecayTable* table);
99 
100  // Dump out information
101  void DumpInfo() const;
102 
103  private:
104  G4int fAtomicNumber; // number of proton
105  G4int fAtomicMass; // number of nucleon
106  G4int fISpin; // total angular momentum (in unit of 1/2)
107  G4double fEnergy; // excited energy
108  G4double fLifeTime; // lifeTime
109  G4DecayTable* fDecayTable; // decay Table
110  G4double fMagneticMoment; // magnetic moment
111  G4int fIsomerLevel; // isomer level
112 };
113 
114 inline
116 {
117  return fAtomicNumber;
118 }
119 
120 inline
122 {
123  fAtomicNumber = Z;
124 }
125 
126 inline
128 {
129  return fAtomicMass;
130 }
131 
132 inline
134 {
135  fAtomicMass = A;
136 }
137 
138 inline
140 {
141  return fISpin;
142 }
143 
144 inline
146 {
147  fISpin = J;
148 }
149 
150 inline
152 {
153  return fMagneticMoment;
154 }
155 
156 inline
158 {
159  fMagneticMoment = M;
160 }
161 
162 inline
164 {
165  return fEnergy;
166 }
167 
168 inline
170 {
171  fEnergy = E;
172 }
173 
174 inline
176 {
177  return fIsomerLevel;
178 }
179 inline
181 {
182  fIsomerLevel = level;
183 }
184 
185 inline
187 {
188  return fLifeTime;
189 }
190 
191 inline
193 {
194  fLifeTime = T;
195 }
196 
197 inline
199 {
200  return fDecayTable;
201 }
202 
203 inline
205 {
206  fDecayTable = table;
207 }
208 #endif
209 
210 
211 
212 
213 
214 
215 
216 
217 
218 
G4double GetMagneticMoment() const
void SetAtomicMass(G4int A)
G4DecayTable * GetDecayTable() const
G4DecayTable * fDecayTable
G4int operator!=(const G4IsotopeProperty &right) const
G4int GetAtomicNumber() const
G4int GetiSpin() const
G4int operator==(const G4IsotopeProperty &right) const
void DumpInfo() const
G4IsotopeProperty & operator=(G4IsotopeProperty &right)
G4int GetIsomerLevel() const
int G4int
Definition: G4Types.hh:78
void SetiSpin(G4int J)
void SetMagneticMoment(G4double M)
void SetLifeTime(G4double T)
G4double GetEnergy() const
virtual ~G4IsotopeProperty()
static const G4double A[nN]
void SetEnergy(G4double E)
void SetDecayTable(G4DecayTable *table)
double G4double
Definition: G4Types.hh:76
void SetAtomicNumber(G4int Z)
G4int GetAtomicMass() const
G4double GetLifeTime() const
void SetIsomerLevel(G4int level)