Geant4  10.02.p03
G4NistManager Class Reference

#include <G4NistManager.hh>

Collaboration diagram for G4NistManager:

Public Member Functions

 ~G4NistManager ()
 
G4ElementGetElement (size_t index)
 
G4ElementFindOrBuildElement (G4int Z, G4bool isotopes=true)
 
G4ElementFindOrBuildElement (const G4String &symb, G4bool isotopes=true)
 
size_t GetNumberOfElements () 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
 
G4int GetNistFirstIsotopeN (G4int Z) const
 
G4int GetNumberOfNistIsotopes (G4int Z) const
 
G4double GetIsotopeAbundance (G4int Z, G4int N) const
 
void PrintElement (G4int Z)
 
void PrintElement (const G4String &)
 
void PrintG4Element (const G4String &)
 
const std::vector< G4String > & GetNistElementNames () const
 
G4double GetMeanIonisationEnergy (G4int Z) const
 
G4double GetNominalDensity (G4int Z) const
 
G4MaterialGetMaterial (size_t index)
 
G4MaterialFindOrBuildMaterial (const G4String &name, G4bool isotopes=true, G4bool warning=false)
 
G4MaterialFindOrBuildSimpleMaterial (G4int Z, G4bool warning=false)
 
G4MaterialBuildMaterialWithNewDensity (const G4String &name, const G4String &basename, G4double density=0.0, G4double temp=NTP_Temperature, G4double pres=CLHEP::STP_Pressure)
 
G4MaterialConstructNewMaterial (const G4String &name, const std::vector< G4String > &elm, const std::vector< G4int > &nbAtoms, G4double dens, G4bool isotopes=true, G4State state=kStateSolid, G4double temp=NTP_Temperature, G4double pressure=CLHEP::STP_Pressure)
 
G4MaterialConstructNewMaterial (const G4String &name, const std::vector< G4String > &elm, const std::vector< G4double > &weight, G4double dens, G4bool isotopes=true, G4State state=kStateSolid, G4double temp=NTP_Temperature, G4double pressure=CLHEP::STP_Pressure)
 
G4MaterialConstructNewGasMaterial (const G4String &name, const G4String &nameNist, G4double temp, G4double pres, G4bool isotopes=true)
 
G4MaterialConstructNewIdealGasMaterial (const G4String &name, const std::vector< G4String > &elm, const std::vector< G4int > &nbAtoms, G4bool isotopes=true, G4double temp=NTP_Temperature, G4double pressure=CLHEP::STP_Pressure)
 
size_t GetNumberOfMaterials ()
 
G4int GetVerbose ()
 
void SetVerbose (G4int)
 
void PrintG4Material (const G4String &)
 
void ListMaterials (const G4String &)
 
const std::vector< G4String > & GetNistMaterialNames () const
 
G4double GetZ13 (G4double Z)
 
G4double GetZ13 (G4int Z)
 
G4double GetA27 (G4int Z)
 
G4double GetLOGZ (G4int Z)
 

Static Public Member Functions

static G4NistManagerInstance ()
 

Private Member Functions

 G4NistManager ()
 

Private Attributes

G4Powg4pow
 
G4double POWERA27 [101]
 
G4double LOGAZ [101]
 
std::vector< G4Element * > elements
 
std::vector< G4Material * > materials
 
size_t nElements
 
size_t nMaterials
 
G4int verbose
 
G4NistElementBuilderelmBuilder
 
G4NistMaterialBuildermatBuilder
 
G4NistMessengermessenger
 

Static Private Attributes

static G4NistManagerinstance = 0
 

Detailed Description

Definition at line 82 of file G4NistManager.hh.

Constructor & Destructor Documentation

◆ ~G4NistManager()

G4NistManager::~G4NistManager ( )

Definition at line 79 of file G4NistManager.cc.

80 {
81  // G4cout << "NistManager: start material destruction" << G4endl;
82  const G4MaterialTable* theMaterialTable = G4Material::GetMaterialTable();
83  size_t nmat = theMaterialTable->size();
84  size_t i;
85  for(i=0; i<nmat; i++) {
86  if((*theMaterialTable)[i]) { delete (*theMaterialTable)[i]; }
87  }
88  // G4cout << "NistManager: start element destruction" << G4endl;
89  const G4ElementTable* theElementTable = G4Element::GetElementTable();
90  size_t nelm = theElementTable->size();
91  for(i=0; i<nelm; i++) {
92  if((*theElementTable)[i]) { delete (*theElementTable)[i]; }
93  }
94  // G4cout << "NistManager: start isotope destruction" << G4endl;
95  const G4IsotopeTable* theIsotopeTable = G4Isotope::GetIsotopeTable();
96  size_t niso = theIsotopeTable->size();
97  for(i=0; i<niso; i++) {
98  if((*theIsotopeTable)[i]) { delete (*theIsotopeTable)[i]; }
99  }
100  // G4cout << "NistManager: end isotope destruction" << G4endl;
101  delete messenger;
102  delete matBuilder;
103  delete elmBuilder;
104  // G4cout << "NistManager: end destruction" << G4endl;
105 }
G4NistMaterialBuilder * matBuilder
static G4MaterialTable * GetMaterialTable()
Definition: G4Material.cc:589
std::vector< G4Material * > G4MaterialTable
static const G4IsotopeTable * GetIsotopeTable()
Definition: G4Isotope.cc:182
std::vector< G4Isotope * > G4IsotopeTable
Definition: G4Isotope.hh:67
G4NistElementBuilder * elmBuilder
G4NistMessenger * messenger
std::vector< G4Element * > G4ElementTable
static G4ElementTable * GetElementTable()
Definition: G4Element.cc:395
Here is the call graph for this function:

◆ G4NistManager()

G4NistManager::G4NistManager ( )
private

Definition at line 196 of file G4NistManager.cc.

197 {
198  if(G4Threading::IsWorkerThread() == true) {
199  G4Exception ("G4NistMaterial::G4NistManager()", "mat090", FatalException,
200  "Attempt to instantiate G4NistManager in worker thread");
201  }
202 
203  nElements = 0;
204  nMaterials = 0;
205  verbose = 0;
206 
209 
210  messenger = new G4NistMessenger(this);
212 
213  // compute frequently used values for mean atomic numbers
214  for(G4int j=1; j<101; ++j) {
216  POWERA27[j] = std::pow(A,0.27);
217  LOGAZ[j] = std::log(A);
218  }
219  POWERA27[0] = 1.0;
220  LOGAZ[0] = 0.0;
221 }
static G4Pow * GetInstance()
Definition: G4Pow.cc:55
G4NistMaterialBuilder * matBuilder
int G4int
Definition: G4Types.hh:78
G4double GetAtomicMassAmu(const G4String &symb) const
double A(double temperature)
G4double LOGAZ[101]
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
G4bool IsWorkerThread()
Definition: G4Threading.cc:135
G4NistElementBuilder * elmBuilder
G4NistMessenger * messenger
G4double POWERA27[101]
double G4double
Definition: G4Types.hh:76
Here is the call graph for this function:

Member Function Documentation

◆ BuildMaterialWithNewDensity()

G4Material * G4NistManager::BuildMaterialWithNewDensity ( const G4String name,
const G4String basename,
G4double  density = 0.0,
G4double  temp = NTP_Temperature,
G4double  pres = CLHEP::STP_Pressure 
)

Definition at line 110 of file G4NistManager.cc.

115 {
116  G4Material* bmat = FindOrBuildMaterial(name);
117  if(bmat) {
118  G4cout << "G4NistManager::BuildMaterialWithNewDensity ERROR: " << G4endl;
119  G4cout << " New material <" << name << "> cannot be built because material"
120  << " with the same name already exist" << G4endl;
121  G4Exception("G4NistManager::BuildMaterialWithNewDensity()", "mat101",
122  FatalException, "Wrong material name");
123  return 0;
124  }
125  bmat = FindOrBuildMaterial(basename);
126  if(!bmat) {
127  G4cout << "G4NistManager::BuildMaterialWithNewDensity ERROR: " << G4endl;
128  G4cout << " New material <" << name << "> cannot be built because " << G4endl;
129  G4cout << " base material <" << basename << "> does not exist" << G4endl;
130  G4Exception("G4NistManager::BuildMaterialWithNewDensity()", "mat102",
131  FatalException, "Wrong material name");
132  return 0;
133  }
134  G4double dens = density;
135  G4double temp = temperature;
136  G4double pres = pressure;
137  if(dens == 0.0) {
138  dens = bmat->GetDensity();
139  temp = bmat->GetTemperature();
140  pres = bmat->GetPressure();
141  }
142  G4Material* mat = new G4Material(name, dens, bmat, bmat->GetState(),
143  temp, pres);
144  return mat;
145 }
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=false)
G4State GetState() const
Definition: G4Material.hh:181
G4double GetDensity() const
Definition: G4Material.hh:180
Float_t mat
G4double density
Definition: TRTMaterials.hh:39
G4GLOB_DLL std::ostream G4cout
G4double GetPressure() const
Definition: G4Material.hh:183
G4double GetTemperature() const
Definition: G4Material.hh:182
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
#define G4endl
Definition: G4ios.hh:61
double G4double
Definition: G4Types.hh:76
Here is the call graph for this function:

◆ ConstructNewGasMaterial()

G4Material * G4NistManager::ConstructNewGasMaterial ( const G4String name,
const G4String nameNist,
G4double  temp,
G4double  pres,
G4bool  isotopes = true 
)
inline

Definition at line 507 of file G4NistManager.hh.

512 {
513  return matBuilder->ConstructNewGasMaterial(name,nameNist,
514  temp,pres,isotopes);
515 }
G4NistMaterialBuilder * matBuilder
G4Material * ConstructNewGasMaterial(const G4String &name, const G4String &nameDB, G4double temp, G4double pres, G4bool isotopes=true)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ConstructNewIdealGasMaterial()

G4Material * G4NistManager::ConstructNewIdealGasMaterial ( const G4String name,
const std::vector< G4String > &  elm,
const std::vector< G4int > &  nbAtoms,
G4bool  isotopes = true,
G4double  temp = NTP_Temperature,
G4double  pressure = CLHEP::STP_Pressure 
)
inline

Definition at line 519 of file G4NistManager.hh.

526 {
527  return
528  matBuilder->ConstructNewIdealGasMaterial(name,elm,nbAtoms,isotopes,T,P);
529 }
G4NistMaterialBuilder * matBuilder
static double P[]
G4Material * ConstructNewIdealGasMaterial(const G4String &name, const std::vector< G4String > &elm, const std::vector< G4int > &nbAtoms, G4bool isotopes=true, G4double temp=NTP_Temperature, G4double pressure=CLHEP::STP_Pressure)
Here is the call graph for this function:

◆ ConstructNewMaterial() [1/2]

G4Material * G4NistManager::ConstructNewMaterial ( const G4String name,
const std::vector< G4String > &  elm,
const std::vector< G4int > &  nbAtoms,
G4double  dens,
G4bool  isotopes = true,
G4State  state = kStateSolid,
G4double  temp = NTP_Temperature,
G4double  pressure = CLHEP::STP_Pressure 
)
inline

Definition at line 475 of file G4NistManager.hh.

485 {
486  return
487  matBuilder->ConstructNewMaterial(name,elm,nbAtoms,dens,isotopes,state,T,P);
488 }
G4NistMaterialBuilder * matBuilder
G4Material * ConstructNewMaterial(const G4String &name, const std::vector< G4String > &elm, const std::vector< G4int > &nbAtoms, G4double dens, G4bool isotopes=true, G4State state=kStateSolid, G4double temp=NTP_Temperature, G4double pressure=CLHEP::STP_Pressure)
static double P[]
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ConstructNewMaterial() [2/2]

G4Material * G4NistManager::ConstructNewMaterial ( const G4String name,
const std::vector< G4String > &  elm,
const std::vector< G4double > &  weight,
G4double  dens,
G4bool  isotopes = true,
G4State  state = kStateSolid,
G4double  temp = NTP_Temperature,
G4double  pressure = CLHEP::STP_Pressure 
)
inline

Definition at line 492 of file G4NistManager.hh.

501 {
502  return matBuilder->ConstructNewMaterial(name,elm,w,dens,isotopes,state,T,P);
503 }
G4NistMaterialBuilder * matBuilder
G4Material * ConstructNewMaterial(const G4String &name, const std::vector< G4String > &elm, const std::vector< G4int > &nbAtoms, G4double dens, G4bool isotopes=true, G4State state=kStateSolid, G4double temp=NTP_Temperature, G4double pressure=CLHEP::STP_Pressure)
static double P[]
Here is the call graph for this function:

◆ FindOrBuildElement() [1/2]

G4Element * G4NistManager::FindOrBuildElement ( G4int  Z,
G4bool  isotopes = true 
)
inline

Definition at line 319 of file G4NistManager.hh.

320 {
321  return elmBuilder->FindOrBuildElement(Z, isotopes);
322 }
Float_t Z
G4NistElementBuilder * elmBuilder
G4Element * FindOrBuildElement(G4int Z, G4bool buildIsotopes=true)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ FindOrBuildElement() [2/2]

G4Element * G4NistManager::FindOrBuildElement ( const G4String symb,
G4bool  isotopes = true 
)
inline

Definition at line 327 of file G4NistManager.hh.

329 {
330  return elmBuilder->FindOrBuildElement(symb, isotopes);
331 }
G4NistElementBuilder * elmBuilder
G4Element * FindOrBuildElement(G4int Z, G4bool buildIsotopes=true)
Here is the call graph for this function:

◆ FindOrBuildMaterial()

G4Material * G4NistManager::FindOrBuildMaterial ( const G4String name,
G4bool  isotopes = true,
G4bool  warning = false 
)
inline

Definition at line 458 of file G4NistManager.hh.

461 {
462  return matBuilder->FindOrBuildMaterial(name, isotopes, warning);
463 }
G4NistMaterialBuilder * matBuilder
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=true)
Here is the call graph for this function:

◆ FindOrBuildSimpleMaterial()

G4Material * G4NistManager::FindOrBuildSimpleMaterial ( G4int  Z,
G4bool  warning = false 
)
inline

Definition at line 468 of file G4NistManager.hh.

469 {
470  return matBuilder->FindOrBuildSimpleMaterial(Z, warning);
471 }
G4NistMaterialBuilder * matBuilder
Float_t Z
G4Material * FindOrBuildSimpleMaterial(G4int Z, G4bool warning)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetA27()

G4double G4NistManager::GetA27 ( G4int  Z)
inline

Definition at line 562 of file G4NistManager.hh.

563 {
564  G4double res = 0.0;
565  if(Z < 101) { res = POWERA27[Z]; }
566  return res;
567 }
Float_t Z
G4double POWERA27[101]
double G4double
Definition: G4Types.hh:76
Here is the caller graph for this function:

◆ GetAtomicMass()

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

Definition at line 372 of file G4NistManager.hh.

373 {
374  return elmBuilder->GetAtomicMass(Z, N);
375 }
Float_t Z
G4NistElementBuilder * elmBuilder
G4double GetAtomicMass(G4int Z, G4int N) const
**D E S C R I P T I O N
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetAtomicMassAmu() [1/2]

G4double G4NistManager::GetAtomicMassAmu ( const G4String symb) const
inline

Definition at line 349 of file G4NistManager.hh.

350 {
351  return elmBuilder->GetAtomicMassAmu(symb);
352 }
G4double GetAtomicMassAmu(const G4String &symb) const
G4NistElementBuilder * elmBuilder
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetAtomicMassAmu() [2/2]

G4double G4NistManager::GetAtomicMassAmu ( G4int  Z) const
inline

Definition at line 356 of file G4NistManager.hh.

357 {
358  return elmBuilder->GetAtomicMassAmu(Z);
359 }
G4double GetAtomicMassAmu(const G4String &symb) const
Float_t Z
G4NistElementBuilder * elmBuilder
Here is the call graph for this function:

◆ GetElement()

G4Element * G4NistManager::GetElement ( size_t  index)
inline

Definition at line 308 of file G4NistManager.hh.

309 {
310  G4Element* elm = 0;
311  const G4ElementTable* theElementTable = G4Element::GetElementTable();
312  if(index < theElementTable->size()) { elm = (*theElementTable)[index]; }
313  return elm;
314 }
Int_t index
std::vector< G4Element * > G4ElementTable
static G4ElementTable * GetElementTable()
Definition: G4Element.cc:395
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetIsotopeAbundance()

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

Definition at line 388 of file G4NistManager.hh.

389 {
390  return elmBuilder->GetIsotopeAbundance(Z, N);
391 }
G4double GetIsotopeAbundance(G4int Z, G4int N) const
Float_t Z
G4NistElementBuilder * elmBuilder
**D E S C R I P T I O N
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetIsotopeMass()

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

Definition at line 364 of file G4NistManager.hh.

365 {
366  return elmBuilder->GetIsotopeMass(Z, N);
367 }
Float_t Z
G4NistElementBuilder * elmBuilder
**D E S C R I P T I O N
G4double GetIsotopeMass(G4int Z, G4int N) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetLOGZ()

G4double G4NistManager::GetLOGZ ( G4int  Z)
inline

Definition at line 571 of file G4NistManager.hh.

572 {
573  return g4pow->logZ(Z);
574 }
G4double logZ(G4int Z) const
Definition: G4Pow.hh:166
Float_t Z
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetMaterial()

G4Material * G4NistManager::GetMaterial ( size_t  index)
inline

Definition at line 440 of file G4NistManager.hh.

441 {
442  const G4MaterialTable* theMaterialTable = G4Material::GetMaterialTable();
443  G4Material* mat = 0;
444  if(index < theMaterialTable->size()) { mat = (*theMaterialTable)[index]; }
445  return mat;
446 }
Int_t index
static G4MaterialTable * GetMaterialTable()
Definition: G4Material.cc:589
std::vector< G4Material * > G4MaterialTable
Float_t mat
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetMeanIonisationEnergy()

G4double G4NistManager::GetMeanIonisationEnergy ( G4int  Z) const
inline

Definition at line 419 of file G4NistManager.hh.

420 {
422 }
G4NistMaterialBuilder * matBuilder
Float_t Z
G4double GetMeanIonisationEnergy(G4int index) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetNistElementNames()

const std::vector< G4String > & G4NistManager::GetNistElementNames ( ) const
inline

Definition at line 412 of file G4NistManager.hh.

413 {
414  return elmBuilder->GetElementNames();
415 }
const std::vector< G4String > & GetElementNames() const
G4NistElementBuilder * elmBuilder
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetNistFirstIsotopeN()

G4int G4NistManager::GetNistFirstIsotopeN ( G4int  Z) const
inline

Definition at line 396 of file G4NistManager.hh.

397 {
399 }
Float_t Z
G4NistElementBuilder * elmBuilder
G4int GetNistFirstIsotopeN(G4int Z) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetNistMaterialNames()

const std::vector< G4String > & G4NistManager::GetNistMaterialNames ( ) const
inline

Definition at line 541 of file G4NistManager.hh.

542 {
543  return matBuilder->GetMaterialNames();
544 }
G4NistMaterialBuilder * matBuilder
const std::vector< G4String > & GetMaterialNames() const
Here is the call graph for this function:

◆ GetNominalDensity()

G4double G4NistManager::GetNominalDensity ( G4int  Z) const
inline

Definition at line 426 of file G4NistManager.hh.

427 {
428  return matBuilder->GetNominalDensity(Z-1);
429 }
G4NistMaterialBuilder * matBuilder
Float_t Z
G4double GetNominalDensity(G4int index) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetNumberOfElements()

size_t G4NistManager::GetNumberOfElements ( ) const
inline

Definition at line 335 of file G4NistManager.hh.

336 {
337  return nElements;
338 }
Here is the caller graph for this function:

◆ GetNumberOfMaterials()

size_t G4NistManager::GetNumberOfMaterials ( )
inline

Definition at line 301 of file G4NistManager.hh.

302 {
303  return nMaterials;
304 }
Here is the caller graph for this function:

◆ GetNumberOfNistIsotopes()

G4int G4NistManager::GetNumberOfNistIsotopes ( G4int  Z) const
inline

Definition at line 404 of file G4NistManager.hh.

405 {
407 }
Float_t Z
G4NistElementBuilder * elmBuilder
G4int GetNumberOfNistIsotopes(G4int Z) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetTotalElectronBindingEnergy()

G4double G4NistManager::GetTotalElectronBindingEnergy ( G4int  Z) const
inline

Definition at line 380 of file G4NistManager.hh.

381 {
383 }
G4double GetTotalElectronBindingEnergy(G4int Z) const
Float_t Z
G4NistElementBuilder * elmBuilder
Here is the call graph for this function:

◆ GetVerbose()

G4int G4NistManager::GetVerbose ( )
inline

Definition at line 450 of file G4NistManager.hh.

451 {
452  return verbose;
453 }
Here is the caller graph for this function:

◆ GetZ()

G4int G4NistManager::GetZ ( const G4String symb) const
inline

Definition at line 342 of file G4NistManager.hh.

343 {
344  return elmBuilder->GetZ(symb);
345 }
G4NistElementBuilder * elmBuilder
G4int GetZ(const G4String &symb) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetZ13() [1/2]

G4double G4NistManager::GetZ13 ( G4double  Z)
inline

Definition at line 548 of file G4NistManager.hh.

549 {
550  return g4pow->A13(A);
551 }
double A(double temperature)
G4double A13(G4double A) const
Definition: G4Pow.hh:132
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetZ13() [2/2]

G4double G4NistManager::GetZ13 ( G4int  Z)
inline

Definition at line 555 of file G4NistManager.hh.

556 {
557  return g4pow->Z13(Z);
558 }
Float_t Z
G4double Z13(G4int Z) const
Definition: G4Pow.hh:127
Here is the call graph for this function:

◆ Instance()

G4NistManager * G4NistManager::Instance ( void  )
static

Definition at line 68 of file G4NistManager.cc.

69 {
70  if (instance == 0) {
71  static G4NistManager manager;
72  instance = &manager;
73  }
74  return instance;
75 }
static G4NistManager * instance

◆ ListMaterials()

void G4NistManager::ListMaterials ( const G4String list)
inline

Definition at line 533 of file G4NistManager.hh.

534 {
535  matBuilder->ListMaterials(list);
536 }
G4NistMaterialBuilder * matBuilder
void ListMaterials(const G4String &) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ PrintElement() [1/2]

void G4NistManager::PrintElement ( G4int  Z)
inline

Definition at line 433 of file G4NistManager.hh.

434 {
436 }
void PrintElement(G4int Z) const
Float_t Z
G4NistElementBuilder * elmBuilder
Here is the call graph for this function:
Here is the caller graph for this function:

◆ PrintElement() [2/2]

void G4NistManager::PrintElement ( const G4String symbol)

Definition at line 149 of file G4NistManager.cc.

150 {
151  if (symbol == "all") { elmBuilder->PrintElement(0); }
152  else { elmBuilder->PrintElement(elmBuilder->GetZ(symbol)); }
153 }
void PrintElement(G4int Z) const
G4NistElementBuilder * elmBuilder
G4int GetZ(const G4String &symb) const
Here is the call graph for this function:

◆ PrintG4Element()

void G4NistManager::PrintG4Element ( const G4String name)

Definition at line 157 of file G4NistManager.cc.

158 {
159  const G4ElementTable* theElementTable = G4Element::GetElementTable();
160  size_t nelm = theElementTable->size();
161  for(size_t i=0; i<nelm; i++) {
162  G4Element* elm = (*theElementTable)[i];
163  if ( name == elm->GetName() || "all" == name) {
164  G4cout << *elm << G4endl;
165  }
166  }
167 }
G4String name
Definition: TRTMaterials.hh:40
G4GLOB_DLL std::ostream G4cout
const G4String & GetName() const
Definition: G4Element.hh:127
#define G4endl
Definition: G4ios.hh:61
std::vector< G4Element * > G4ElementTable
static G4ElementTable * GetElementTable()
Definition: G4Element.cc:395
Here is the call graph for this function:
Here is the caller graph for this function:

◆ PrintG4Material()

void G4NistManager::PrintG4Material ( const G4String name)

Definition at line 171 of file G4NistManager.cc.

172 {
173  const G4MaterialTable* theMaterialTable = G4Material::GetMaterialTable();
174  size_t nmat = theMaterialTable->size();
175  for(size_t i=0; i<nmat; i++) {
176  G4Material* mat = (*theMaterialTable)[i];
177  if ( name == mat->GetName() || "all" == name) {
178  G4cout << *mat << G4endl;
179  }
180  }
181 }
G4String name
Definition: TRTMaterials.hh:40
static G4MaterialTable * GetMaterialTable()
Definition: G4Material.cc:589
std::vector< G4Material * > G4MaterialTable
Float_t mat
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
const G4String & GetName() const
Definition: G4Material.hh:178
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetVerbose()

void G4NistManager::SetVerbose ( G4int  val)

Definition at line 185 of file G4NistManager.cc.

186 {
187  verbose = val;
188  elmBuilder->SetVerbose(val);
189  matBuilder->SetVerbose(val);
190 }
G4NistMaterialBuilder * matBuilder
G4NistElementBuilder * elmBuilder
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ elements

std::vector<G4Element*> G4NistManager::elements
private

Definition at line 284 of file G4NistManager.hh.

◆ elmBuilder

G4NistElementBuilder* G4NistManager::elmBuilder
private

Definition at line 292 of file G4NistManager.hh.

◆ g4pow

G4Pow* G4NistManager::g4pow
private

Definition at line 280 of file G4NistManager.hh.

◆ instance

G4NistManager * G4NistManager::instance = 0
staticprivate

Definition at line 278 of file G4NistManager.hh.

◆ LOGAZ

G4double G4NistManager::LOGAZ[101]
private

Definition at line 282 of file G4NistManager.hh.

◆ matBuilder

G4NistMaterialBuilder* G4NistManager::matBuilder
private

Definition at line 293 of file G4NistManager.hh.

◆ materials

std::vector<G4Material*> G4NistManager::materials
private

Definition at line 285 of file G4NistManager.hh.

◆ messenger

G4NistMessenger* G4NistManager::messenger
private

Definition at line 294 of file G4NistManager.hh.

◆ nElements

size_t G4NistManager::nElements
private

Definition at line 287 of file G4NistManager.hh.

◆ nMaterials

size_t G4NistManager::nMaterials
private

Definition at line 288 of file G4NistManager.hh.

◆ POWERA27

G4double G4NistManager::POWERA27[101]
private

Definition at line 281 of file G4NistManager.hh.

◆ verbose

G4int G4NistManager::verbose
private

Definition at line 290 of file G4NistManager.hh.


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