Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
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() [1/2]

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{
54}

◆ G4IsotopeProperty() [2/2]

G4IsotopeProperty::G4IsotopeProperty ( const G4IsotopeProperty right)

Definition at line 62 of file G4IsotopeProperty.cc.

63{
64 fAtomicNumber = right.fAtomicNumber;
65 fAtomicMass = right.fAtomicMass;
66 fISpin = right.fISpin;
67 fMagneticMoment = right.fMagneticMoment;
68 fEnergy = right.fEnergy;
69 fLifeTime = right.fLifeTime;
70 // decay table is not copied because G4DecayTable has no copy constructor
71 fDecayTable = 0;
72}

◆ ~G4IsotopeProperty()

G4IsotopeProperty::~G4IsotopeProperty ( )
virtual

Definition at line 57 of file G4IsotopeProperty.cc.

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

Member Function Documentation

◆ DumpInfo()

void G4IsotopeProperty::DumpInfo ( ) const

Definition at line 108 of file G4IsotopeProperty.cc.

109{
110#ifdef G4VERBOSE
111 G4cout << "AtomicNumber: " << fAtomicNumber << G4endl;
112 G4cout << "AtomicMass: " << fAtomicMass << G4endl;
113 if (fISpin %2){
114 G4cout << "Spin: " << fISpin << "/2" << G4endl;
115 } else {
116 G4cout << "Spin: " << fISpin /2 << G4endl;
117 }
118 G4cout << "MagneticMoment: "
119 << fMagneticMoment/MeV*tesla << "[MeV/T]" <<G4endl;
120 G4cout << "Excited Energy: "
121 << std::setprecision(1)
122 << fEnergy/keV << "[keV]"
123 << std::setprecision(6)
124 << G4endl;
125 G4cout << "Life Time: "
126 << fLifeTime/ns << "[ns]" << G4endl;
127 if (fDecayTable != 0) {
128 fDecayTable->DumpInfo();
129 } else {
130 G4cout << "Decay Table is not defined !" << G4endl;
131 }
132#endif
133}
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
void DumpInfo() const
#define ns
Definition: xmlparse.cc:597

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

◆ GetAtomicMass()

G4int G4IsotopeProperty::GetAtomicMass ( ) const
inline

Definition at line 120 of file G4IsotopeProperty.hh.

121{
122 return fAtomicMass;
123}

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

◆ GetAtomicNumber()

G4int G4IsotopeProperty::GetAtomicNumber ( ) const
inline

Definition at line 108 of file G4IsotopeProperty.hh.

109{
110 return fAtomicNumber;
111}

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

◆ GetDecayTable()

G4DecayTable * G4IsotopeProperty::GetDecayTable ( ) const
inline

Definition at line 180 of file G4IsotopeProperty.hh.

181{
182 return fDecayTable;
183}

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

◆ GetEnergy()

G4double G4IsotopeProperty::GetEnergy ( ) const
inline

◆ GetiSpin()

G4int G4IsotopeProperty::GetiSpin ( ) const
inline

Definition at line 132 of file G4IsotopeProperty.hh.

133{
134 return fISpin;
135}

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

◆ GetLifeTime()

G4double G4IsotopeProperty::GetLifeTime ( ) const
inline

Definition at line 168 of file G4IsotopeProperty.hh.

169{
170 return fLifeTime;
171}

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

◆ GetMagneticMoment()

G4double G4IsotopeProperty::GetMagneticMoment ( ) const
inline

Definition at line 144 of file G4IsotopeProperty.hh.

145{
146 return fMagneticMoment;
147}

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

◆ operator!=()

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

Definition at line 103 of file G4IsotopeProperty.cc.

104{
105 return !(*this == right);
106}

◆ operator=()

G4IsotopeProperty & G4IsotopeProperty::operator= ( G4IsotopeProperty right)

Definition at line 75 of file G4IsotopeProperty.cc.

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

◆ operator==()

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

Definition at line 92 of file G4IsotopeProperty.cc.

93{
94 G4bool value = true;
95 value = value && ( fAtomicNumber == right.fAtomicNumber);
96 value = value && ( fAtomicMass == right.fAtomicMass);
97 value = value && ( fISpin == right.fISpin);
98 value = value && ( fMagneticMoment == right.fMagneticMoment);
99 value = value && ( fEnergy == right.fEnergy);
100 value = value && ( fLifeTime == right.fLifeTime);
101 return value;
102}
bool G4bool
Definition: G4Types.hh:67

◆ SetAtomicMass()

void G4IsotopeProperty::SetAtomicMass ( G4int  A)
inline

Definition at line 126 of file G4IsotopeProperty.hh.

127{
128 fAtomicMass = A;
129}

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

◆ SetAtomicNumber()

void G4IsotopeProperty::SetAtomicNumber ( G4int  Z)
inline

Definition at line 114 of file G4IsotopeProperty.hh.

115{
116 fAtomicNumber = Z;
117}

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

◆ SetDecayTable()

void G4IsotopeProperty::SetDecayTable ( G4DecayTable table)
inline

Definition at line 186 of file G4IsotopeProperty.hh.

187{
188 fDecayTable = table;
189}

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

◆ SetEnergy()

void G4IsotopeProperty::SetEnergy ( G4double  E)
inline

Definition at line 162 of file G4IsotopeProperty.hh.

163{
164 fEnergy = E;
165}

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

◆ SetiSpin()

void G4IsotopeProperty::SetiSpin ( G4int  J)
inline

Definition at line 138 of file G4IsotopeProperty.hh.

139{
140 fISpin = J;
141}

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

◆ SetLifeTime()

void G4IsotopeProperty::SetLifeTime ( G4double  T)
inline

Definition at line 174 of file G4IsotopeProperty.hh.

175{
176 fLifeTime = T;
177}

Referenced by G4RIsotopeTable::GetIsotope().

◆ SetMagneticMoment()

void G4IsotopeProperty::SetMagneticMoment ( G4double  M)
inline

Definition at line 150 of file G4IsotopeProperty.hh.

151{
152 fMagneticMoment = M;
153}

Referenced by G4IsotopeMagneticMomentTable::G4IsotopeMagneticMomentTable().


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