Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
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$
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
37#ifndef G4IsotopeProperty_h
38#define G4IsotopeProperty_h 1
39
40#include "globals.hh"
41class G4DecayTable;
43{
44 // Class Description
45 // G4IsotopeProperty contains properties of an isotope
46 //
47
48 public:
50
51 // copy construictor
53
54 // Assignment operator
56
57 // equal / unequal operator
58 G4int operator==(const G4IsotopeProperty &right) const;
59 G4int operator!=(const G4IsotopeProperty &right) const;
60
61 // destructor
62 virtual ~G4IsotopeProperty();
63
64
65 public: // With Description
66 // Set/Get Atomic Number
67 G4int GetAtomicNumber() const;
68 void SetAtomicNumber(G4int Z);
69
70 // Set/Get Atomic Mass
71 G4int GetAtomicMass() const;
72 void SetAtomicMass(G4int A);
73
74 // Set/Get spin
75 G4int GetiSpin() const;
76 void SetiSpin(G4int J);
77
78 // Set/Get Magentic Moment
81
82 // Set/Get Excited Energy
83 G4double GetEnergy() const;
84 void SetEnergy(G4double E);
85
86 // Set/Get life time
87 G4double GetLifeTime() const;
88 void SetLifeTime(G4double T);
89
90 // Set/Get decay table
92 void SetDecayTable(G4DecayTable* table);
93
94 // Dump out information
95 void DumpInfo() const;
96
97 private:
98 G4int fAtomicNumber; // number of proton
99 G4int fAtomicMass; // number of nucleon
100 G4int fISpin; // total angular momentum (in unit of 1/2)
101 G4double fEnergy; // excited energy
102 G4double fLifeTime; // lifeTime
103 G4DecayTable* fDecayTable; // decay Table
104 G4double fMagneticMoment; // magnetic moment
105};
106
107inline
109{
110 return fAtomicNumber;
111}
112
113inline
115{
116 fAtomicNumber = Z;
117}
118
119inline
121{
122 return fAtomicMass;
123}
124
125inline
127{
128 fAtomicMass = A;
129}
130
131inline
133{
134 return fISpin;
135}
136
137inline
139{
140 fISpin = J;
141}
142
143inline
145{
146 return fMagneticMoment;
147}
148
149inline
151{
152 fMagneticMoment = M;
153}
154
155inline
157{
158 return fEnergy;
159}
160
161inline
163{
164 fEnergy = E;
165}
166
167inline
169{
170 return fLifeTime;
171}
172
173inline
175{
176 fLifeTime = T;
177}
178
179inline
181{
182 return fDecayTable;
183}
184
185inline
187{
188 fDecayTable = table;
189}
190#endif
191
192
193
194
195
196
197
198
199
200
double G4double
Definition: G4Types.hh:64
int G4int
Definition: G4Types.hh:66
void SetAtomicMass(G4int A)
void SetDecayTable(G4DecayTable *table)
void SetEnergy(G4double E)
void SetiSpin(G4int J)
void SetAtomicNumber(G4int Z)
G4int GetiSpin() const
G4DecayTable * GetDecayTable() const
G4IsotopeProperty & operator=(G4IsotopeProperty &right)
virtual ~G4IsotopeProperty()
G4double GetEnergy() const
G4int GetAtomicMass() const
G4int GetAtomicNumber() const
G4int operator==(const G4IsotopeProperty &right) const
void SetLifeTime(G4double T)
void SetMagneticMoment(G4double M)
G4int operator!=(const G4IsotopeProperty &right) const
G4double GetLifeTime() const
G4double GetMagneticMoment() const