Geant4  10.03
G4NistElementBuilder Class Reference

#include <G4NistElementBuilder.hh>

+ Collaboration diagram for G4NistElementBuilder:

Public Member Functions

 G4NistElementBuilder (G4int vb)
 
 ~G4NistElementBuilder ()
 
G4ElementFindElement (G4int Z) const
 
G4ElementFindOrBuildElement (G4int Z, G4bool buildIsotopes=true)
 
G4ElementFindOrBuildElement (const G4String &symb, G4bool buildIsotopes=true)
 
void PrintElement (G4int Z) const
 
const std::vector< G4String > & GetElementNames () const
 
G4int GetZ (const G4String &symb) const
 
G4double GetAtomicMassAmu (const G4String &symb) const
 
G4double GetAtomicMassAmu (G4int Z) const
 
G4double GetIsotopeMass (G4int Z, G4int N) const
 
G4double GetAtomicMass (G4int Z, G4int N) const
 
G4double GetTotalElectronBindingEnergy (G4int Z) const
 
G4double GetIsotopeAbundance (G4int Z, G4int N) const
 
G4int GetNistFirstIsotopeN (G4int Z) const
 
G4int GetNumberOfNistIsotopes (G4int Z) const
 
G4int GetMaxNumElements () const
 
void SetVerbose (G4int)
 

Private Member Functions

void Initialise ()
 
void AddElement (const G4String &symbol, G4int Z, G4int NumberOfIsotopes, const G4int &N, const G4double &A, const G4double &sigmaA, const G4double &W)
 
G4ElementBuildElement (G4int Z)
 

Private Attributes

G4String elmSymbol [maxNumElements]
 
G4double atomicMass [maxNumElements]
 
G4double bindingEnergy [maxNumElements]
 
G4int nIsotopes [maxNumElements]
 
G4int nFirstIsotope [maxNumElements]
 
G4int idxIsotopes [maxNumElements]
 
G4int elmIndex [maxNumElements]
 
G4double massIsotopes [maxAbundance]
 
G4double sigMass [maxAbundance]
 
G4double relAbundance [maxAbundance]
 
G4int index
 
G4int verbose
 
std::vector< G4StringelmNames
 

Detailed Description

Definition at line 68 of file G4NistElementBuilder.hh.

Constructor & Destructor Documentation

G4NistElementBuilder::G4NistElementBuilder ( G4int  vb)
explicit

Definition at line 65 of file G4NistElementBuilder.cc.

References elmIndex, Initialise(), maxNumElements, nFirstIsotope, nIsotopes, and relAbundance.

+ Here is the call graph for this function:

G4NistElementBuilder::~G4NistElementBuilder ( )

Definition at line 77 of file G4NistElementBuilder.cc.

Member Function Documentation

void G4NistElementBuilder::AddElement ( const G4String symbol,
G4int  Z,
G4int  NumberOfIsotopes,
const G4int N,
const G4double A,
const G4double sigmaA,
const G4double W 
)
private

Definition at line 221 of file G4NistElementBuilder.cc.

References A(), atomicMass, bindingEnergy, elmSymbol, G4cout, G4endl, idxIsotopes, index, massIsotopes, maxAbundance, maxNumElements, G4InuclParticleNames::name(), nFirstIsotope, nIsotopes, PrintElement(), relAbundance, sigMass, and verbose.

Referenced by Initialise().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4Element * G4NistElementBuilder::BuildElement ( G4int  Z)
private

Definition at line 140 of file G4NistElementBuilder.cc.

References G4Element::AddIsotope(), atomicMass, elmSymbol, g, G4cout, G4endl, GetAtomicMass(), idxIsotopes, maxNumElements, mole, nFirstIsotope, nIsotopes, relAbundance, G4Element::SetNaturalAbundanceFlag(), and verbose.

Referenced by FindOrBuildElement().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4Element * G4NistElementBuilder::FindElement ( G4int  Z) const
inline

Definition at line 252 of file G4NistElementBuilder.hh.

References elmIndex, G4Element::GetElementTable(), and maxNumElements.

Referenced by G4NistManager::FindElement(), and FindOrBuildElement().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4Element * G4NistElementBuilder::FindOrBuildElement ( G4int  Z,
G4bool  buildIsotopes = true 
)

Definition at line 102 of file G4NistElementBuilder.cc.

References BuildElement(), elmIndex, FindElement(), G4Element::GetIndex(), and maxNumElements.

Referenced by G4NistMaterialBuilder::BuildMaterial(), and G4NistManager::FindOrBuildElement().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4Element * G4NistElementBuilder::FindOrBuildElement ( const G4String symb,
G4bool  buildIsotopes = true 
)

Definition at line 116 of file G4NistElementBuilder.cc.

References BuildElement(), elmSymbol, G4Element::GetElementTable(), and maxNumElements.

+ Here is the call graph for this function:

G4double G4NistElementBuilder::GetAtomicMass ( G4int  Z,
G4int  N 
) const
inline

Definition at line 179 of file G4NistElementBuilder.hh.

References bindingEnergy, idxIsotopes, massIsotopes, maxNumElements, nFirstIsotope, and nIsotopes.

Referenced by BuildElement(), G4NistManager::GetAtomicMass(), and PrintElement().

+ Here is the caller graph for this function:

G4double G4NistElementBuilder::GetAtomicMassAmu ( const G4String symb) const

Definition at line 92 of file G4NistElementBuilder.cc.

References elmSymbol, and maxNumElements.

Referenced by G4NistMaterialBuilder::ConstructNewIdealGasMaterial(), G4NistManager::G4NistManager(), and G4NistManager::GetAtomicMassAmu().

+ Here is the caller graph for this function:

G4double G4NistElementBuilder::GetAtomicMassAmu ( G4int  Z) const
inline

Definition at line 160 of file G4NistElementBuilder.hh.

References atomicMass, and maxNumElements.

const std::vector< G4String > & G4NistElementBuilder::GetElementNames ( ) const
inline

Definition at line 231 of file G4NistElementBuilder.hh.

References elmNames.

Referenced by G4NistManager::GetNistElementNames().

+ Here is the caller graph for this function:

G4double G4NistElementBuilder::GetIsotopeAbundance ( G4int  Z,
G4int  N 
) const
inline

Definition at line 204 of file G4NistElementBuilder.hh.

References idxIsotopes, maxNumElements, nFirstIsotope, nIsotopes, and relAbundance.

Referenced by G4LENDModel::create_used_target_map(), G4LENDCrossSection::create_used_target_map(), and G4NistManager::GetIsotopeAbundance().

+ Here is the caller graph for this function:

G4double G4NistElementBuilder::GetIsotopeMass ( G4int  Z,
G4int  N 
) const
inline

Definition at line 167 of file G4NistElementBuilder.hh.

References idxIsotopes, massIsotopes, maxNumElements, nFirstIsotope, and nIsotopes.

Referenced by G4NistManager::GetIsotopeMass().

+ Here is the caller graph for this function:

G4int G4NistElementBuilder::GetMaxNumElements ( ) const
inline

Definition at line 238 of file G4NistElementBuilder.hh.

References maxNumElements.

G4int G4NistElementBuilder::GetNistFirstIsotopeN ( G4int  Z) const
inline

Definition at line 216 of file G4NistElementBuilder.hh.

References maxNumElements, and nFirstIsotope.

Referenced by G4LENDModel::create_used_target_map(), G4LENDCrossSection::create_used_target_map(), and G4NistManager::GetNistFirstIsotopeN().

+ Here is the caller graph for this function:

G4int G4NistElementBuilder::GetNumberOfNistIsotopes ( G4int  Z) const
inline

Definition at line 223 of file G4NistElementBuilder.hh.

References maxNumElements, and nIsotopes.

Referenced by G4LENDModel::create_used_target_map(), G4LENDCrossSection::create_used_target_map(), and G4NistManager::GetNumberOfNistIsotopes().

+ Here is the caller graph for this function:

G4double G4NistElementBuilder::GetTotalElectronBindingEnergy ( G4int  Z) const
inline

Definition at line 195 of file G4NistElementBuilder.hh.

References bindingEnergy, and maxNumElements.

Referenced by G4NistManager::GetTotalElectronBindingEnergy().

+ Here is the caller graph for this function:

G4int G4NistElementBuilder::GetZ ( const G4String symb) const

Definition at line 82 of file G4NistElementBuilder.cc.

References elmSymbol, and maxNumElements.

Referenced by G4NistMaterialBuilder::AddElementByAtomCount(), G4NistMaterialBuilder::AddElementByWeightFraction(), G4NistMaterialBuilder::ConstructNewIdealGasMaterial(), G4NistMaterialBuilder::ConstructNewMaterial(), G4NistManager::GetZ(), and G4NistManager::PrintElement().

+ Here is the caller graph for this function:

void G4NistElementBuilder::Initialise ( )
private

Definition at line 281 of file G4NistElementBuilder.cc.

References AddElement(), bindingEnergy, elmNames, elmSymbol, eV, G4cout, G4endl, GeV, HA, index, maxNumElements, NS, and verbose.

Referenced by G4NistElementBuilder().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4NistElementBuilder::PrintElement ( G4int  Z) const

Definition at line 187 of file G4NistElementBuilder.cc.

References atomicMass, elmSymbol, G4cout, G4endl, GetAtomicMass(), idxIsotopes, imax, maxNumElements, nFirstIsotope, nIsotopes, and relAbundance.

Referenced by AddElement(), and G4NistManager::PrintElement().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4NistElementBuilder::SetVerbose ( G4int  val)
inline

Definition at line 245 of file G4NistElementBuilder.hh.

References verbose.

Referenced by G4NistMaterialBuilder::SetVerbose(), and G4NistManager::SetVerbose().

+ Here is the caller graph for this function:

Member Data Documentation

G4double G4NistElementBuilder::atomicMass[maxNumElements]
private

Definition at line 139 of file G4NistElementBuilder.hh.

Referenced by AddElement(), BuildElement(), GetAtomicMassAmu(), and PrintElement().

G4double G4NistElementBuilder::bindingEnergy[maxNumElements]
private
G4int G4NistElementBuilder::elmIndex[maxNumElements]
private

Definition at line 145 of file G4NistElementBuilder.hh.

Referenced by FindElement(), FindOrBuildElement(), and G4NistElementBuilder().

std::vector<G4String> G4NistElementBuilder::elmNames
private

Definition at line 154 of file G4NistElementBuilder.hh.

Referenced by GetElementNames(), and Initialise().

G4String G4NistElementBuilder::elmSymbol[maxNumElements]
private
G4int G4NistElementBuilder::idxIsotopes[maxNumElements]
private
G4int G4NistElementBuilder::index
private

Definition at line 151 of file G4NistElementBuilder.hh.

Referenced by AddElement(), and Initialise().

G4double G4NistElementBuilder::massIsotopes[maxAbundance]
private

Definition at line 147 of file G4NistElementBuilder.hh.

Referenced by AddElement(), GetAtomicMass(), and GetIsotopeMass().

G4double G4NistElementBuilder::relAbundance[maxAbundance]
private
G4double G4NistElementBuilder::sigMass[maxAbundance]
private

Definition at line 148 of file G4NistElementBuilder.hh.

Referenced by AddElement().

G4int G4NistElementBuilder::verbose
private

Definition at line 152 of file G4NistElementBuilder.hh.

Referenced by AddElement(), BuildElement(), Initialise(), and SetVerbose().


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