Geant4  10.02.p03
G4IsotopeProperty Class Reference

#include <G4IsotopeProperty.hh>

Collaboration diagram for G4IsotopeProperty:

Public Member Functions

 G4IsotopeProperty ()
 
 G4IsotopeProperty (const G4IsotopeProperty &right)
 
G4IsotopePropertyoperator= (G4IsotopeProperty &right)
 
G4int operator== (const G4IsotopeProperty &right) const
 
G4int operator!= (const G4IsotopeProperty &right) const
 
virtual ~G4IsotopeProperty ()
 
G4int GetAtomicNumber () const
 
void SetAtomicNumber (G4int Z)
 
G4int GetAtomicMass () const
 
void SetAtomicMass (G4int A)
 
G4int GetiSpin () const
 
void SetiSpin (G4int J)
 
G4double GetMagneticMoment () const
 
void SetMagneticMoment (G4double M)
 
G4double GetEnergy () const
 
void SetEnergy (G4double E)
 
G4int GetIsomerLevel () const
 
void SetIsomerLevel (G4int level)
 
G4double GetLifeTime () const
 
void SetLifeTime (G4double T)
 
G4DecayTableGetDecayTable () const
 
void SetDecayTable (G4DecayTable *table)
 
void DumpInfo () const
 

Private Attributes

G4int fAtomicNumber
 
G4int fAtomicMass
 
G4int fISpin
 
G4double fEnergy
 
G4double fLifeTime
 
G4DecayTablefDecayTable
 
G4double fMagneticMoment
 
G4int fIsomerLevel
 

Detailed Description

Definition at line 44 of file G4IsotopeProperty.hh.

Constructor & Destructor Documentation

◆ G4IsotopeProperty() [1/2]

G4IsotopeProperty::G4IsotopeProperty ( )

Definition at line 48 of file G4IsotopeProperty.cc.

48  :
50  fISpin(0),fEnergy(0.0),
51  fLifeTime(-1.0),fDecayTable(0),
52  fMagneticMoment(0.0),
53  fIsomerLevel(-1)
54 {
55 }
G4DecayTable * fDecayTable

◆ G4IsotopeProperty() [2/2]

G4IsotopeProperty::G4IsotopeProperty ( const G4IsotopeProperty right)

Definition at line 63 of file G4IsotopeProperty.cc.

64 {
66  fAtomicMass = right.fAtomicMass;
67  fISpin = right.fISpin;
69  fEnergy = right.fEnergy;
70  fLifeTime = right.fLifeTime;
71  fIsomerLevel = right.fIsomerLevel;
72  // decay table is not copied because G4DecayTable has no copy constructor
73  fDecayTable = 0;
74 }
G4DecayTable * fDecayTable

◆ ~G4IsotopeProperty()

G4IsotopeProperty::~G4IsotopeProperty ( )
virtual

Definition at line 58 of file G4IsotopeProperty.cc.

59 {
60  if (fDecayTable != 0) delete fDecayTable;
61 }
G4DecayTable * fDecayTable

Member Function Documentation

◆ DumpInfo()

void G4IsotopeProperty::DumpInfo ( ) const

Definition at line 113 of file G4IsotopeProperty.cc.

114 {
115 #ifdef G4VERBOSE
116  G4cout << "AtomicNumber: " << fAtomicNumber << ", "
117  << "AtomicMass: " << fAtomicMass << G4endl;
118  if (fISpin %2){
119  G4cout << "Spin: " << fISpin << "/2";
120  } else {
121  G4cout << "Spin: " << fISpin /2;
122  }
123  G4cout << ", " << "MagneticMoment: "
124  << fMagneticMoment/MeV*tesla << "[MeV/T]" <<G4endl;
125  G4cout << "Isomer Level: "
126  << fIsomerLevel
127  << ", Excited Energy: "
128  << std::setprecision(1)
129  << fEnergy/keV << "[keV]"
130  << ", "
131  << std::setprecision(6)
132  << "Life Time: "
133  << fLifeTime/ns << "[ns]" << G4endl;
134  if (fDecayTable != 0) {
136  } else {
137  // G4cout << "Decay Table is not defined !" << G4endl;
138  }
139 #endif
140 }
static const double MeV
Definition: G4SIunits.hh:211
G4DecayTable * fDecayTable
G4GLOB_DLL std::ostream G4cout
void DumpInfo() const
#define G4endl
Definition: G4ios.hh:61
static const double keV
Definition: G4SIunits.hh:213
static const double tesla
Definition: G4SIunits.hh:265
#define ns
Definition: xmlparse.cc:614
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetAtomicMass()

G4int G4IsotopeProperty::GetAtomicMass ( ) const
inline

Definition at line 127 of file G4IsotopeProperty.hh.

128 {
129  return fAtomicMass;
130 }
Here is the caller graph for this function:

◆ GetAtomicNumber()

G4int G4IsotopeProperty::GetAtomicNumber ( ) const
inline

Definition at line 115 of file G4IsotopeProperty.hh.

116 {
117  return fAtomicNumber;
118 }
Here is the caller graph for this function:

◆ GetDecayTable()

G4DecayTable * G4IsotopeProperty::GetDecayTable ( ) const
inline

Definition at line 198 of file G4IsotopeProperty.hh.

199 {
200  return fDecayTable;
201 }
G4DecayTable * fDecayTable
Here is the caller graph for this function:

◆ GetEnergy()

G4double G4IsotopeProperty::GetEnergy ( ) const
inline

Definition at line 163 of file G4IsotopeProperty.hh.

164 {
165  return fEnergy;
166 }
Here is the caller graph for this function:

◆ GetIsomerLevel()

G4int G4IsotopeProperty::GetIsomerLevel ( ) const
inline

Definition at line 175 of file G4IsotopeProperty.hh.

176 {
177  return fIsomerLevel;
178 }
Here is the caller graph for this function:

◆ GetiSpin()

G4int G4IsotopeProperty::GetiSpin ( ) const
inline

Definition at line 139 of file G4IsotopeProperty.hh.

140 {
141  return fISpin;
142 }
Here is the caller graph for this function:

◆ GetLifeTime()

G4double G4IsotopeProperty::GetLifeTime ( ) const
inline

Definition at line 186 of file G4IsotopeProperty.hh.

187 {
188  return fLifeTime;
189 }
Here is the caller graph for this function:

◆ GetMagneticMoment()

G4double G4IsotopeProperty::GetMagneticMoment ( ) const
inline

Definition at line 151 of file G4IsotopeProperty.hh.

152 {
153  return fMagneticMoment;
154 }
Here is the caller graph for this function:

◆ operator!=()

G4int G4IsotopeProperty::operator!= ( const G4IsotopeProperty right) const

Definition at line 108 of file G4IsotopeProperty.cc.

109 {
110  return !(*this == right);
111 }

◆ operator=()

G4IsotopeProperty & G4IsotopeProperty::operator= ( G4IsotopeProperty right)

Definition at line 77 of file G4IsotopeProperty.cc.

78 {
79  if (this != &right) {
81  fAtomicMass = right.fAtomicMass;
82  fISpin = right.fISpin;
84  fEnergy = right.fEnergy;
85  fLifeTime = right.fLifeTime;
86  fIsomerLevel = right.fIsomerLevel;
87  // decay table is not copied because G4DecayTable has no copy constructor
88  fDecayTable = 0;
89  }
90  return *this;
91 }
G4DecayTable * fDecayTable

◆ operator==()

G4int G4IsotopeProperty::operator== ( const G4IsotopeProperty right) const

Definition at line 95 of file G4IsotopeProperty.cc.

96 {
97  G4bool value = true;
98  value = value && ( fAtomicNumber == right.fAtomicNumber);
99  value = value && ( fAtomicMass == right.fAtomicMass);
100  value = value && ( fISpin == right.fISpin);
101  value = value && ( fMagneticMoment == right.fMagneticMoment);
102  value = value && ( fEnergy == right.fEnergy);
103  value = value && ( fLifeTime == right.fLifeTime);
104  value = value && ( fIsomerLevel == right.fIsomerLevel);
105  return value;
106 }
bool G4bool
Definition: G4Types.hh:79

◆ SetAtomicMass()

void G4IsotopeProperty::SetAtomicMass ( G4int  A)
inline

Definition at line 133 of file G4IsotopeProperty.hh.

134 {
135  fAtomicMass = A;
136 }
double A(double temperature)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetAtomicNumber()

void G4IsotopeProperty::SetAtomicNumber ( G4int  Z)
inline

Definition at line 121 of file G4IsotopeProperty.hh.

122 {
123  fAtomicNumber = Z;
124 }
Float_t Z
Here is the caller graph for this function:

◆ SetDecayTable()

void G4IsotopeProperty::SetDecayTable ( G4DecayTable table)
inline

Definition at line 204 of file G4IsotopeProperty.hh.

205 {
206  fDecayTable = table;
207 }
G4DecayTable * fDecayTable
Here is the caller graph for this function:

◆ SetEnergy()

void G4IsotopeProperty::SetEnergy ( G4double  E)
inline

Definition at line 169 of file G4IsotopeProperty.hh.

170 {
171  fEnergy = E;
172 }
Here is the caller graph for this function:

◆ SetIsomerLevel()

void G4IsotopeProperty::SetIsomerLevel ( G4int  level)
inline

Definition at line 180 of file G4IsotopeProperty.hh.

181 {
182  fIsomerLevel = level;
183 }
Here is the caller graph for this function:

◆ SetiSpin()

void G4IsotopeProperty::SetiSpin ( G4int  J)
inline

Definition at line 145 of file G4IsotopeProperty.hh.

146 {
147  fISpin = J;
148 }
Here is the caller graph for this function:

◆ SetLifeTime()

void G4IsotopeProperty::SetLifeTime ( G4double  T)
inline

Definition at line 192 of file G4IsotopeProperty.hh.

193 {
194  fLifeTime = T;
195 }
Here is the caller graph for this function:

◆ SetMagneticMoment()

void G4IsotopeProperty::SetMagneticMoment ( G4double  M)
inline

Definition at line 157 of file G4IsotopeProperty.hh.

158 {
159  fMagneticMoment = M;
160 }
Here is the caller graph for this function:

Member Data Documentation

◆ fAtomicMass

G4int G4IsotopeProperty::fAtomicMass
private

Definition at line 105 of file G4IsotopeProperty.hh.

◆ fAtomicNumber

G4int G4IsotopeProperty::fAtomicNumber
private

Definition at line 104 of file G4IsotopeProperty.hh.

◆ fDecayTable

G4DecayTable* G4IsotopeProperty::fDecayTable
private

Definition at line 109 of file G4IsotopeProperty.hh.

◆ fEnergy

G4double G4IsotopeProperty::fEnergy
private

Definition at line 107 of file G4IsotopeProperty.hh.

◆ fIsomerLevel

G4int G4IsotopeProperty::fIsomerLevel
private

Definition at line 111 of file G4IsotopeProperty.hh.

◆ fISpin

G4int G4IsotopeProperty::fISpin
private

Definition at line 106 of file G4IsotopeProperty.hh.

◆ fLifeTime

G4double G4IsotopeProperty::fLifeTime
private

Definition at line 108 of file G4IsotopeProperty.hh.

◆ fMagneticMoment

G4double G4IsotopeProperty::fMagneticMoment
private

Definition at line 110 of file G4IsotopeProperty.hh.


The documentation for this class was generated from the following files: