Geant4  10.00.p01
G4NistElementBuilder Class Reference

#include <G4NistElementBuilder.hh>

+ Collaboration diagram for G4NistElementBuilder:

Public Member Functions

 G4NistElementBuilder (G4int vb)
 
 ~G4NistElementBuilder ()
 
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
 
G4bool first
 
std::vector< G4StringelmNames
 

Detailed Description

Definition at line 69 of file G4NistElementBuilder.hh.

Constructor & Destructor Documentation

G4NistElementBuilder::G4NistElementBuilder ( G4int  vb)

Definition at line 66 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 78 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 222 of file G4NistElementBuilder.cc.

References A, atomicMass, bindingEnergy, elmSymbol, G4cout, G4endl, idxIsotopes, index, massIsotopes, maxAbundance, maxNumElements, 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 141 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::FindOrBuildElement ( G4int  Z,
G4bool  buildIsotopes = true 
)

Definition at line 121 of file G4NistElementBuilder.cc.

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

Referenced by G4NistMaterialBuilder::BuildMaterial(), FindOrBuildElement(), 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 101 of file G4NistElementBuilder.cc.

References elmSymbol, FindOrBuildElement(), first, G4cout, G4endl, maxNumElements, and verbose.

+ Here is the call graph for this function:

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

Definition at line 180 of file G4NistElementBuilder.hh.

References bindingEnergy, idxIsotopes, massIsotopes, 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 161 of file G4NistElementBuilder.hh.

References a, atomicMass, and maxNumElements.

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

Definition at line 228 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 203 of file G4NistElementBuilder.hh.

References idxIsotopes, 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 170 of file G4NistElementBuilder.hh.

References idxIsotopes, massIsotopes, nFirstIsotope, and nIsotopes.

Referenced by G4NistManager::GetIsotopeMass().

+ Here is the caller graph for this function:

G4int G4NistElementBuilder::GetMaxNumElements ( ) const
inline

Definition at line 235 of file G4NistElementBuilder.hh.

References maxNumElements.

G4int G4NistElementBuilder::GetNistFirstIsotopeN ( G4int  Z) const
inline

Definition at line 213 of file G4NistElementBuilder.hh.

References 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 220 of file G4NistElementBuilder.hh.

References 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 194 of file G4NistElementBuilder.hh.

References bindingEnergy.

Referenced by G4NistManager::GetTotalElectronBindingEnergy().

+ Here is the caller graph for this function:

G4int G4NistElementBuilder::GetZ ( const G4String symb) const

Definition at line 83 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 282 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 188 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 242 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 FindOrBuildElement(), and G4NistElementBuilder().

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

Definition at line 155 of file G4NistElementBuilder.hh.

Referenced by GetElementNames(), and Initialise().

G4String G4NistElementBuilder::elmSymbol[maxNumElements]
private
G4bool G4NistElementBuilder::first
private

Definition at line 153 of file G4NistElementBuilder.hh.

Referenced by FindOrBuildElement().

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

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