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)
G4double GetLifeTime () const
void SetLifeTime (G4double T)
G4DecayTableGetDecayTable () const
void SetDecayTable (G4DecayTable *table)
void DumpInfo () const


Detailed Description

Definition at line 42 of file G4IsotopeProperty.hh.


Constructor & Destructor Documentation

G4IsotopeProperty::G4IsotopeProperty (  ) 

Definition at line 48 of file G4IsotopeProperty.cc.

00048                                     :
00049                    fAtomicNumber(0),fAtomicMass(0),
00050                    fISpin(0),fEnergy(0.0),
00051                    fLifeTime(-1.0),fDecayTable(0),
00052                    fMagneticMoment(0.0)
00053 {
00054 }

G4IsotopeProperty::G4IsotopeProperty ( const G4IsotopeProperty right  ) 

Definition at line 62 of file G4IsotopeProperty.cc.

References fAtomicMass, fAtomicNumber, fEnergy, fISpin, fLifeTime, and fMagneticMoment.

00063 {
00064   fAtomicNumber    = right.fAtomicNumber;
00065   fAtomicMass      = right.fAtomicMass;
00066   fISpin           = right.fISpin;
00067   fMagneticMoment  = right.fMagneticMoment;
00068   fEnergy          = right.fEnergy;
00069   fLifeTime        = right.fLifeTime;
00070   // decay table is not copied because G4DecayTable has no copy constructor
00071   fDecayTable   = 0;
00072 }

G4IsotopeProperty::~G4IsotopeProperty (  )  [virtual]

Definition at line 57 of file G4IsotopeProperty.cc.

00058 {
00059   if (fDecayTable != 0) delete fDecayTable;
00060 }


Member Function Documentation

void G4IsotopeProperty::DumpInfo (  )  const

Definition at line 108 of file G4IsotopeProperty.cc.

References G4DecayTable::DumpInfo(), G4cout, G4endl, and ns.

Referenced by G4IonTable::FindIsotope(), and G4IsotopeMagneticMomentTable::GetIsotope().

00109 {
00110 #ifdef G4VERBOSE
00111   G4cout << "AtomicNumber: " << fAtomicNumber << G4endl;
00112   G4cout << "AtomicMass: " << fAtomicMass << G4endl;
00113   if (fISpin %2){
00114     G4cout << "Spin: " << fISpin << "/2" << G4endl;
00115   } else {
00116     G4cout << "Spin: " << fISpin /2  << G4endl;
00117   }
00118   G4cout << "MagneticMoment: " 
00119          << fMagneticMoment/MeV*tesla << "[MeV/T]" <<G4endl;
00120   G4cout << "Excited Energy: " 
00121          << std::setprecision(1) 
00122          << fEnergy/keV << "[keV]" 
00123          << std::setprecision(6) 
00124          << G4endl;
00125   G4cout << "Life Time: " 
00126          << fLifeTime/ns << "[ns]" << G4endl;
00127   if (fDecayTable != 0) {
00128     fDecayTable->DumpInfo();
00129   } else {
00130     G4cout << "Decay Table is not defined !" << G4endl;
00131   }
00132 #endif
00133 }

G4int G4IsotopeProperty::GetAtomicMass (  )  const [inline]

Definition at line 120 of file G4IsotopeProperty.hh.

Referenced by G4IsotopeMagneticMomentTable::FindIsotope().

00121 {
00122   return fAtomicMass;
00123 }

G4int G4IsotopeProperty::GetAtomicNumber (  )  const [inline]

Definition at line 108 of file G4IsotopeProperty.hh.

Referenced by G4IsotopeMagneticMomentTable::FindIsotope().

00109 {
00110   return fAtomicNumber;
00111 }

G4DecayTable * G4IsotopeProperty::GetDecayTable (  )  const [inline]

Definition at line 180 of file G4IsotopeProperty.hh.

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

00181 {
00182   return fDecayTable;
00183 }

G4double G4IsotopeProperty::GetEnergy (  )  const [inline]

Definition at line 156 of file G4IsotopeProperty.hh.

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

00157 {
00158   return fEnergy;
00159 }

G4int G4IsotopeProperty::GetiSpin (  )  const [inline]

Definition at line 132 of file G4IsotopeProperty.hh.

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

00133 {
00134   return fISpin;
00135 }

G4double G4IsotopeProperty::GetLifeTime (  )  const [inline]

Definition at line 168 of file G4IsotopeProperty.hh.

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

00169 {
00170   return fLifeTime;
00171 }

G4double G4IsotopeProperty::GetMagneticMoment (  )  const [inline]

Definition at line 144 of file G4IsotopeProperty.hh.

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

00145 {
00146   return fMagneticMoment;
00147 }

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

Definition at line 103 of file G4IsotopeProperty.cc.

00104 {
00105   return !(*this == right);
00106 }

G4IsotopeProperty & G4IsotopeProperty::operator= ( G4IsotopeProperty right  ) 

Definition at line 75 of file G4IsotopeProperty.cc.

References fAtomicMass, fAtomicNumber, fEnergy, fISpin, fLifeTime, and fMagneticMoment.

00076 {
00077   if (this != &right) {
00078     fAtomicNumber    = right.fAtomicNumber;
00079     fAtomicMass      = right.fAtomicMass;
00080     fISpin           = right.fISpin;
00081     fMagneticMoment  = right.fMagneticMoment;
00082     fEnergy          = right.fEnergy;
00083     fLifeTime        = right.fLifeTime;
00084     // decay table is not copied because G4DecayTable has no copy constructor
00085     fDecayTable   = 0;
00086   }
00087   return *this;
00088 }

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

Definition at line 92 of file G4IsotopeProperty.cc.

References fAtomicMass, fAtomicNumber, fEnergy, fISpin, fLifeTime, and fMagneticMoment.

00093 {
00094   G4bool value = true;
00095   value = value && ( fAtomicNumber    == right.fAtomicNumber);
00096   value = value && ( fAtomicMass      == right.fAtomicMass);
00097   value = value && ( fISpin           == right.fISpin);
00098   value = value && ( fMagneticMoment  == right.fMagneticMoment);
00099   value = value && ( fEnergy          == right.fEnergy);
00100   value = value && ( fLifeTime        == right.fLifeTime);
00101   return value;
00102 }

void G4IsotopeProperty::SetAtomicMass ( G4int  A  )  [inline]

Definition at line 126 of file G4IsotopeProperty.hh.

Referenced by G4IsotopeMagneticMomentTable::G4IsotopeMagneticMomentTable(), and G4RIsotopeTable::GetIsotope().

00127 {
00128     fAtomicMass = A;
00129 }

void G4IsotopeProperty::SetAtomicNumber ( G4int  Z  )  [inline]

Definition at line 114 of file G4IsotopeProperty.hh.

Referenced by G4IsotopeMagneticMomentTable::G4IsotopeMagneticMomentTable(), and G4RIsotopeTable::GetIsotope().

00115 {
00116     fAtomicNumber = Z;
00117 }

void G4IsotopeProperty::SetDecayTable ( G4DecayTable table  )  [inline]

Definition at line 186 of file G4IsotopeProperty.hh.

Referenced by G4IonTable::FindIsotope(), and G4RIsotopeTable::GetIsotope().

00187 {
00188     fDecayTable = table;
00189 }

void G4IsotopeProperty::SetEnergy ( G4double  E  )  [inline]

Definition at line 162 of file G4IsotopeProperty.hh.

Referenced by G4IsotopeMagneticMomentTable::G4IsotopeMagneticMomentTable(), and G4RIsotopeTable::GetIsotope().

00163 {
00164     fEnergy = E;
00165 }

void G4IsotopeProperty::SetiSpin ( G4int  J  )  [inline]

Definition at line 138 of file G4IsotopeProperty.hh.

Referenced by G4IonTable::FindIsotope(), G4IsotopeMagneticMomentTable::G4IsotopeMagneticMomentTable(), and G4RIsotopeTable::GetIsotope().

00139 {
00140     fISpin = J;
00141 }

void G4IsotopeProperty::SetLifeTime ( G4double  T  )  [inline]

Definition at line 174 of file G4IsotopeProperty.hh.

Referenced by G4IonTable::FindIsotope(), and G4RIsotopeTable::GetIsotope().

00175 {
00176     fLifeTime = T;
00177 }

void G4IsotopeProperty::SetMagneticMoment ( G4double  M  )  [inline]

Definition at line 150 of file G4IsotopeProperty.hh.

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

00151 {
00152   fMagneticMoment = M;
00153 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:52:19 2013 for Geant4 by  doxygen 1.4.7