Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4IsotopeProperty Class Reference

#include <G4IsotopeProperty.hh>

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)
 
G4Ions::G4FloatLevelBase GetFloatLevelBase () const
 
void SetFloatLevelBase (G4Ions::G4FloatLevelBase flb)
 
void SetFloatLevelBase (G4int flbIndex)
 
G4double GetLifeTime () const
 
void SetLifeTime (G4double T)
 
G4DecayTableGetDecayTable () const
 
void SetDecayTable (G4DecayTable *table)
 
void DumpInfo () const
 

Detailed Description

Definition at line 45 of file G4IsotopeProperty.hh.

Constructor & Destructor Documentation

G4IsotopeProperty::G4IsotopeProperty ( )

Definition at line 48 of file G4IsotopeProperty.cc.

48  :
49  fAtomicNumber(0),fAtomicMass(0),
50  fISpin(0),fEnergy(0.0),
51  fLifeTime(-1.0),fDecayTable(0),
52  fMagneticMoment(0.0),
53  fIsomerLevel(-1),
54  fFloatLevelBase(G4Ions::G4FloatLevelBase::no_Float)
55 {
56 }
G4IsotopeProperty::G4IsotopeProperty ( const G4IsotopeProperty right)

Definition at line 64 of file G4IsotopeProperty.cc.

65 {
66  fAtomicNumber = right.fAtomicNumber;
67  fAtomicMass = right.fAtomicMass;
68  fISpin = right.fISpin;
69  fMagneticMoment = right.fMagneticMoment;
70  fEnergy = right.fEnergy;
71  fLifeTime = right.fLifeTime;
72  fIsomerLevel = right.fIsomerLevel;
73  fFloatLevelBase = right.fFloatLevelBase;
74  // decay table is not copied because G4DecayTable has no copy constructor
75  fDecayTable = 0;
76 }
G4IsotopeProperty::~G4IsotopeProperty ( )
virtual

Definition at line 59 of file G4IsotopeProperty.cc.

60 {
61  if (fDecayTable != 0) delete fDecayTable;
62 }

Member Function Documentation

void G4IsotopeProperty::DumpInfo ( ) const

Definition at line 117 of file G4IsotopeProperty.cc.

118 {
119 #ifdef G4VERBOSE
120  G4cout << "AtomicNumber: " << fAtomicNumber << ", "
121  << "AtomicMass: " << fAtomicMass << G4endl;
122  if (fISpin %2){
123  G4cout << "Spin: " << fISpin << "/2";
124  } else {
125  G4cout << "Spin: " << fISpin /2;
126  }
127  G4cout << ", " << "MagneticMoment: "
128  << fMagneticMoment/MeV*tesla << "[MeV/T]" <<G4endl;
129  G4cout << "Isomer Level: "
130  << fIsomerLevel
131  << ", Excited Energy: "
132  << std::setprecision(1)
133  << fEnergy/keV;
134  if(fFloatLevelBase!=G4Ions::G4FloatLevelBase::no_Float)
135  { G4cout << " +" << G4Ions::FloatLevelBaseChar(fFloatLevelBase); }
136  G4cout << " [keV]"
137  << ", "
138  << std::setprecision(6)
139  << "Life Time: "
140  << fLifeTime/ns << "[ns]"
141  << G4endl;
142  if (fDecayTable != 0) {
143  fDecayTable->DumpInfo();
144  } else {
145  // G4cout << "Decay Table is not defined !" << G4endl;
146  }
147 #endif
148 }
static constexpr double tesla
Definition: G4SIunits.hh:268
static char FloatLevelBaseChar(G4Ions::G4FloatLevelBase flb)
Definition: G4Ions.hh:253
G4GLOB_DLL std::ostream G4cout
void DumpInfo() const
#define G4endl
Definition: G4ios.hh:61
static constexpr double MeV
Definition: G4SIunits.hh:214
static constexpr double keV
Definition: G4SIunits.hh:216
#define ns
Definition: xmlparse.cc:614

Here is the call graph for this function:

Here is the caller graph for this function:

G4int G4IsotopeProperty::GetAtomicMass ( ) const
inline

Definition at line 134 of file G4IsotopeProperty.hh.

135 {
136  return fAtomicMass;
137 }

Here is the caller graph for this function:

G4int G4IsotopeProperty::GetAtomicNumber ( ) const
inline

Definition at line 122 of file G4IsotopeProperty.hh.

123 {
124  return fAtomicNumber;
125 }

Here is the caller graph for this function:

G4DecayTable * G4IsotopeProperty::GetDecayTable ( ) const
inline

Definition at line 205 of file G4IsotopeProperty.hh.

206 {
207  return fDecayTable;
208 }

Here is the caller graph for this function:

G4double G4IsotopeProperty::GetEnergy ( ) const
inline

Definition at line 170 of file G4IsotopeProperty.hh.

171 {
172  return fEnergy;
173 }

Here is the caller graph for this function:

G4Ions::G4FloatLevelBase G4IsotopeProperty::GetFloatLevelBase ( ) const
inline

Definition at line 217 of file G4IsotopeProperty.hh.

218 {
219  return fFloatLevelBase;
220 }
G4int G4IsotopeProperty::GetIsomerLevel ( ) const
inline

Definition at line 182 of file G4IsotopeProperty.hh.

183 {
184  return fIsomerLevel;
185 }

Here is the caller graph for this function:

G4int G4IsotopeProperty::GetiSpin ( ) const
inline

Definition at line 146 of file G4IsotopeProperty.hh.

147 {
148  return fISpin;
149 }

Here is the caller graph for this function:

G4double G4IsotopeProperty::GetLifeTime ( ) const
inline

Definition at line 193 of file G4IsotopeProperty.hh.

194 {
195  return fLifeTime;
196 }

Here is the caller graph for this function:

G4double G4IsotopeProperty::GetMagneticMoment ( ) const
inline

Definition at line 158 of file G4IsotopeProperty.hh.

159 {
160  return fMagneticMoment;
161 }

Here is the caller graph for this function:

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

Definition at line 112 of file G4IsotopeProperty.cc.

113 {
114  return !(*this == right);
115 }
G4IsotopeProperty & G4IsotopeProperty::operator= ( G4IsotopeProperty right)

Definition at line 79 of file G4IsotopeProperty.cc.

80 {
81  if (this != &right) {
82  fAtomicNumber = right.fAtomicNumber;
83  fAtomicMass = right.fAtomicMass;
84  fISpin = right.fISpin;
85  fMagneticMoment = right.fMagneticMoment;
86  fEnergy = right.fEnergy;
87  fLifeTime = right.fLifeTime;
88  fIsomerLevel = right.fIsomerLevel;
89  fFloatLevelBase = right.fFloatLevelBase;
90  // decay table is not copied because G4DecayTable has no copy constructor
91  fDecayTable = 0;
92  }
93  return *this;
94 }
G4int G4IsotopeProperty::operator== ( const G4IsotopeProperty right) const

Definition at line 98 of file G4IsotopeProperty.cc.

99 {
100  G4bool value = true;
101  value = value && ( fAtomicNumber == right.fAtomicNumber);
102  value = value && ( fAtomicMass == right.fAtomicMass);
103  value = value && ( fISpin == right.fISpin);
104  value = value && ( fMagneticMoment == right.fMagneticMoment);
105  value = value && ( fEnergy == right.fEnergy);
106  value = value && ( fLifeTime == right.fLifeTime);
107  value = value && ( fIsomerLevel == right.fIsomerLevel);
108  value = value && ( fFloatLevelBase == right.fFloatLevelBase);
109  return value;
110 }
const XML_Char int const XML_Char * value
Definition: expat.h:331
bool G4bool
Definition: G4Types.hh:79
void G4IsotopeProperty::SetAtomicMass ( G4int  A)
inline

Definition at line 140 of file G4IsotopeProperty.hh.

141 {
142  fAtomicMass = A;
143 }
double A(double temperature)

Here is the call graph for this function:

Here is the caller graph for this function:

void G4IsotopeProperty::SetAtomicNumber ( G4int  Z)
inline

Definition at line 128 of file G4IsotopeProperty.hh.

129 {
130  fAtomicNumber = Z;
131 }

Here is the caller graph for this function:

void G4IsotopeProperty::SetDecayTable ( G4DecayTable table)
inline

Definition at line 211 of file G4IsotopeProperty.hh.

212 {
213  fDecayTable = table;
214 }

Here is the caller graph for this function:

void G4IsotopeProperty::SetEnergy ( G4double  E)
inline

Definition at line 176 of file G4IsotopeProperty.hh.

177 {
178  fEnergy = E;
179 }

Here is the caller graph for this function:

void G4IsotopeProperty::SetFloatLevelBase ( G4Ions::G4FloatLevelBase  flb)
inline

Definition at line 223 of file G4IsotopeProperty.hh.

224 {
225  fFloatLevelBase = flb;
226 }

Here is the caller graph for this function:

void G4IsotopeProperty::SetFloatLevelBase ( G4int  flbIndex)
inline

Definition at line 229 of file G4IsotopeProperty.hh.

230 {
231  fFloatLevelBase = G4Ions::FloatLevelBase(flbIndex);
232 }
static G4Ions::G4FloatLevelBase FloatLevelBase(char flbChar)
Definition: G4Ions.hh:189

Here is the call graph for this function:

void G4IsotopeProperty::SetIsomerLevel ( G4int  level)
inline

Definition at line 187 of file G4IsotopeProperty.hh.

188 {
189  fIsomerLevel = level;
190 }

Here is the caller graph for this function:

void G4IsotopeProperty::SetiSpin ( G4int  J)
inline

Definition at line 152 of file G4IsotopeProperty.hh.

153 {
154  fISpin = J;
155 }

Here is the caller graph for this function:

void G4IsotopeProperty::SetLifeTime ( G4double  T)
inline

Definition at line 199 of file G4IsotopeProperty.hh.

200 {
201  fLifeTime = T;
202 }

Here is the caller graph for this function:

void G4IsotopeProperty::SetMagneticMoment ( G4double  M)
inline

Definition at line 164 of file G4IsotopeProperty.hh.

165 {
166  fMagneticMoment = M;
167 }

Here is the caller graph for this function:


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