Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
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)
 
G4double GetLifeTime () const
 
void SetLifeTime (G4double T)
 
G4DecayTableGetDecayTable () const
 
void SetDecayTable (G4DecayTable *table)
 
void DumpInfo () const
 

Detailed Description

Definition at line 44 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 {
55 }
G4IsotopeProperty::G4IsotopeProperty ( const G4IsotopeProperty right)

Definition at line 63 of file G4IsotopeProperty.cc.

64 {
65  fAtomicNumber = right.fAtomicNumber;
66  fAtomicMass = right.fAtomicMass;
67  fISpin = right.fISpin;
68  fMagneticMoment = right.fMagneticMoment;
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 }
G4IsotopeProperty::~G4IsotopeProperty ( )
virtual

Definition at line 58 of file G4IsotopeProperty.cc.

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

Member Function Documentation

void G4IsotopeProperty::DumpInfo ( ) const

Definition at line 113 of file G4IsotopeProperty.cc.

References G4DecayTable::DumpInfo(), G4cout, G4endl, python.hepunit::keV, python.hepunit::MeV, ns, and python.hepunit::tesla.

Referenced by G4VIsotopeTable::DumpTable().

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) {
135  fDecayTable->DumpInfo();
136  } else {
137  // G4cout << "Decay Table is not defined !" << G4endl;
138  }
139 #endif
140 }
G4GLOB_DLL std::ostream G4cout
void DumpInfo() const
#define G4endl
Definition: G4ios.hh:61
#define ns
Definition: xmlparse.cc:597
G4int G4IsotopeProperty::GetAtomicMass ( ) const
inline
G4int G4IsotopeProperty::GetAtomicNumber ( ) const
inline
G4DecayTable * G4IsotopeProperty::GetDecayTable ( ) const
inline

Definition at line 198 of file G4IsotopeProperty.hh.

Referenced by G4IonTable::CreateIon().

199 {
200  return fDecayTable;
201 }
G4double G4IsotopeProperty::GetEnergy ( ) const
inline
G4int G4IsotopeProperty::GetIsomerLevel ( ) const
inline

Definition at line 175 of file G4IsotopeProperty.hh.

Referenced by G4IonTable::CreateIon(), G4IsotopeMagneticMomentTable::FindIsotope(), and G4IsotopeMagneticMomentTable::GetIsotopeByIsoLvl().

176 {
177  return fIsomerLevel;
178 }
G4int G4IsotopeProperty::GetiSpin ( ) const
inline

Definition at line 139 of file G4IsotopeProperty.hh.

Referenced by G4IonTable::CreateIon().

140 {
141  return fISpin;
142 }
G4double G4IsotopeProperty::GetLifeTime ( ) const
inline

Definition at line 186 of file G4IsotopeProperty.hh.

Referenced by G4IonTable::CreateIon(), and G4IonTable::GetLifeTime().

187 {
188  return fLifeTime;
189 }
G4double G4IsotopeProperty::GetMagneticMoment ( ) const
inline

Definition at line 151 of file G4IsotopeProperty.hh.

Referenced by G4IonTable::CreateIon().

152 {
153  return fMagneticMoment;
154 }
G4int G4IsotopeProperty::operator!= ( const G4IsotopeProperty right) const

Definition at line 108 of file G4IsotopeProperty.cc.

References right.

109 {
110  return !(*this == right);
111 }
G4IsotopeProperty & G4IsotopeProperty::operator= ( G4IsotopeProperty right)

Definition at line 77 of file G4IsotopeProperty.cc.

78 {
79  if (this != &right) {
80  fAtomicNumber = right.fAtomicNumber;
81  fAtomicMass = right.fAtomicMass;
82  fISpin = right.fISpin;
83  fMagneticMoment = right.fMagneticMoment;
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 }
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
const XML_Char int const XML_Char * value
void G4IsotopeProperty::SetAtomicMass ( G4int  A)
inline
void G4IsotopeProperty::SetAtomicNumber ( G4int  Z)
inline
void G4IsotopeProperty::SetDecayTable ( G4DecayTable table)
inline

Definition at line 204 of file G4IsotopeProperty.hh.

Referenced by G4NuclideTable::AddState(), G4NuclideTable::FillHardCodeList(), G4NuclideTable::GenerateNuclide(), and G4RIsotopeTable::GetIsotope().

205 {
206  fDecayTable = table;
207 }
void G4IsotopeProperty::SetEnergy ( G4double  E)
inline
void G4IsotopeProperty::SetIsomerLevel ( G4int  level)
inline
void G4IsotopeProperty::SetiSpin ( G4int  J)
inline
void G4IsotopeProperty::SetLifeTime ( G4double  T)
inline
void G4IsotopeProperty::SetMagneticMoment ( G4double  M)
inline

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