Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions
G4NistManager Class Reference

#include <G4NistManager.hh>

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
 
G4MaterialGetMaterial (size_t index)
 
G4MaterialFindOrBuildMaterial (const G4String &name, G4bool isotopes=true, G4bool warning=false)
 
G4MaterialBuildMaterialWithNewDensity (const G4String &name, const G4String &basename, G4double density=0.0, G4double temp=CLHEP::STP_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=CLHEP::STP_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=CLHEP::STP_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=CLHEP::STP_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 GetLOGA (G4double A)
 
G4double GetLOGZ (G4int Z)
 
G4double GetLOGA (G4int Z)
 

Static Public Member Functions

static G4NistManagerInstance ()
 

Detailed Description

Definition at line 82 of file G4NistManager.hh.

Constructor & Destructor Documentation

G4NistManager::~G4NistManager ( )

Definition at line 79 of file G4NistManager.cc.

References G4Element::GetElementTable(), G4Isotope::GetIsotopeTable(), and G4Material::GetMaterialTable().

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 }
static G4MaterialTable * GetMaterialTable()
Definition: G4Material.cc:564
std::vector< G4Material * > G4MaterialTable
static const G4IsotopeTable * GetIsotopeTable()
Definition: G4Isotope.cc:182
std::vector< G4Isotope * > G4IsotopeTable
Definition: G4Isotope.hh:67
std::vector< G4Element * > G4ElementTable
static G4ElementTable * GetElementTable()
Definition: G4Element.cc:395

Member Function Documentation

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

Definition at line 110 of file G4NistManager.cc.

References density, FatalException, FindOrBuildMaterial(), G4cout, G4endl, G4Exception(), G4Material::GetDensity(), G4Material::GetPressure(), G4Material::GetState(), and G4Material::GetTemperature().

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 }
G4double GetPressure() const
Definition: G4Material.hh:181
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=false)
G4double GetDensity() const
Definition: G4Material.hh:178
G4double density
Definition: TRTMaterials.hh:39
G4GLOB_DLL std::ostream G4cout
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
G4double GetTemperature() const
Definition: G4Material.hh:180
#define G4endl
Definition: G4ios.hh:61
G4State GetState() const
Definition: G4Material.hh:179
double G4double
Definition: G4Types.hh:76
G4Material * G4NistManager::ConstructNewGasMaterial ( const G4String name,
const G4String nameNist,
G4double  temp,
G4double  pres,
G4bool  isotopes = true 
)
inline

Definition at line 487 of file G4NistManager.hh.

References G4NistMaterialBuilder::ConstructNewGasMaterial().

Referenced by export_G4NistManager().

492 {
493  return matBuilder->ConstructNewGasMaterial(name,nameNist,
494  temp,pres,isotopes);
495 }
G4Material * ConstructNewGasMaterial(const G4String &name, const G4String &nameDB, G4double temp, G4double pres, G4bool isotopes=true)
G4Material * G4NistManager::ConstructNewIdealGasMaterial ( const G4String name,
const std::vector< G4String > &  elm,
const std::vector< G4int > &  nbAtoms,
G4bool  isotopes = true,
G4double  temp = CLHEP::STP_Temperature,
G4double  pressure = CLHEP::STP_Pressure 
)
inline

Definition at line 499 of file G4NistManager.hh.

References G4NistMaterialBuilder::ConstructNewIdealGasMaterial().

506 {
507  return
508  matBuilder->ConstructNewIdealGasMaterial(name,elm,nbAtoms,isotopes,T,P);
509 }
G4Material * ConstructNewIdealGasMaterial(const G4String &name, const std::vector< G4String > &elm, const std::vector< G4int > &nbAtoms, G4bool isotopes=true, G4double temp=CLHEP::STP_Temperature, G4double pressure=CLHEP::STP_Pressure)
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 = CLHEP::STP_Temperature,
G4double  pressure = CLHEP::STP_Pressure 
)
inline

Definition at line 455 of file G4NistManager.hh.

References G4NistMaterialBuilder::ConstructNewMaterial().

465 {
466  return
467  matBuilder->ConstructNewMaterial(name,elm,nbAtoms,dens,isotopes,state,T,P);
468 }
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=CLHEP::STP_Temperature, G4double pressure=CLHEP::STP_Pressure)
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 = CLHEP::STP_Temperature,
G4double  pressure = CLHEP::STP_Pressure 
)
inline

Definition at line 472 of file G4NistManager.hh.

References G4NistMaterialBuilder::ConstructNewMaterial().

481 {
482  return matBuilder->ConstructNewMaterial(name,elm,w,dens,isotopes,state,T,P);
483 }
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=CLHEP::STP_Temperature, G4double pressure=CLHEP::STP_Pressure)
G4Element * G4NistManager::FindOrBuildElement ( G4int  Z,
G4bool  isotopes = true 
)
inline

Definition at line 314 of file G4NistManager.hh.

References G4NistElementBuilder::FindOrBuildElement().

Referenced by ElectronBenchmarkDetector::DefineMaterials(), G4tgbMaterialMgr::FindOrBuildG4Element(), and G4GDMLReadMaterials::GetElement().

315 {
316  return elmBuilder->FindOrBuildElement(Z, isotopes);
317 }
G4Element * FindOrBuildElement(G4int Z, G4bool buildIsotopes=true)
G4Element * G4NistManager::FindOrBuildElement ( const G4String symb,
G4bool  isotopes = true 
)
inline

Definition at line 322 of file G4NistManager.hh.

References G4NistElementBuilder::FindOrBuildElement().

324 {
325  return elmBuilder->FindOrBuildElement(symb, isotopes);
326 }
G4Element * FindOrBuildElement(G4int Z, G4bool buildIsotopes=true)
G4Material * G4NistManager::FindOrBuildMaterial ( const G4String name,
G4bool  isotopes = true,
G4bool  warning = false 
)
inline

Definition at line 446 of file G4NistManager.hh.

References G4NistMaterialBuilder::FindOrBuildMaterial().

Referenced by RE01CalorimeterROGeometry::Build(), CML2ReadOutGeometry::Build(), BuildMaterialWithNewDensity(), HadrontherapyModulator::BuildModulator(), CML2ReadOutGeometry::CML2ReadOutGeometry(), Par01DetectorConstruction::Construct(), B1DetectorConstruction::Construct(), ExTGDetectorConstructionWithCpp::Construct(), RE01DetectorConstruction::Construct(), GB01DetectorConstruction::Construct(), GB02DetectorConstruction::Construct(), B3DetectorConstruction::Construct(), ExGflashDetectorConstruction::Construct(), ExG4DetectorConstruction01::Construct(), ExG4DetectorConstruction02::Construct(), CML2PhantomConstruction::Construct(), ExErrorDetectorConstruction::Construct(), CML2AcceleratorConstruction::Construct(), CML2Ph_FullWater::Construct(), CML2Ph_BoxInBox::Construct(), RE02DetectorConstruction::Construct(), B5DetectorConstruction::ConstructMaterials(), ExGflashDetectorConstruction::ConstructSDandField(), CML2WorldConstruction::create(), CML2PhaseSpaces::createPlane(), ElectronBenchmarkDetector::DefineMaterials(), export_G4NistManager(), G4tgbMaterialMgr::FindOrBuildG4Material(), G4DNABrownianTransportation::G4DNABrownianTransportation(), G4MicroElecElasticModel::G4MicroElecElasticModel(), G4MicroElecInelasticModel::G4MicroElecInelasticModel(), G4MuElecElasticModel::G4MuElecElasticModel(), G4MuElecInelasticModel::G4MuElecInelasticModel(), F04Materials::GetMaterial(), WLSMaterials::GetMaterial(), XrayFluoNistMaterials::GetMaterial(), G4GDMLReadMaterials::GetMaterial(), DetectorConstruction::SetAbsMaterial(), DetectorConstruction::SetAbsorberMaterial(), DetectorConstruction::SetAbsorMaterial(), ExG4DetectorConstruction02::SetBoxMaterial(), B2aDetectorConstruction::SetChamberMaterial(), B2bDetectorConstruction::SetChamberMaterial(), DetectorConstruction::SetContainerMaterial(), F04DetectorConstruction::SetDegraderMaterial(), DetectorConstruction::SetEcalMaterial(), DetectorConstruction::SetGapMaterial(), DetectorConstruction::SetGasMaterial(), DetectorConstruction::SetMaterial(), ExG4DetectorConstruction01::SetMaterial(), DetectorConstruction::SetTallyMaterial(), DetectorConstruction::SetTarget1Material(), DetectorConstruction::SetTarget2Material(), B2bDetectorConstruction::SetTargetMaterial(), B2aDetectorConstruction::SetTargetMaterial(), DetectorConstruction::SetTargetMaterial(), F04DetectorConstruction::SetTargetMaterial(), DetectorConstruction::SetWorldMaterial(), ExG4DetectorConstruction02::SetWorldMaterial(), and F04DetectorConstruction::SetWorldMaterial().

449 {
450  return matBuilder->FindOrBuildMaterial(name, isotopes, warning);
451 }
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=true)
G4double G4NistManager::GetA27 ( G4int  Z)
inline

Definition at line 542 of file G4NistManager.hh.

Referenced by G4hBremsstrahlungModel::ComputeDMicroscopicCrossSection(), G4MuBremsstrahlungModel::G4MuBremsstrahlungModel(), G4WentzelOKandVIxSection::G4WentzelOKandVIxSection(), and G4WentzelVIRelXSection::G4WentzelVIRelXSection().

543 {
544  G4double res = 0.0;
545  if(Z < 101) { res = POWERA27[Z]; }
546  return res;
547 }
double G4double
Definition: G4Types.hh:76
G4double G4NistManager::GetAtomicMass ( G4int  Z,
G4int  N 
) const
inline

Definition at line 367 of file G4NistManager.hh.

References G4NistElementBuilder::GetAtomicMass().

Referenced by G4Isotope::G4Isotope().

368 {
369  return elmBuilder->GetAtomicMass(Z, N);
370 }
**D E S C R I P T I O N
G4double GetAtomicMass(G4int Z, G4int N) const
G4double G4NistManager::GetAtomicMassAmu ( const G4String symb) const
inline

Definition at line 344 of file G4NistManager.hh.

References G4NistElementBuilder::GetAtomicMassAmu().

Referenced by G4UPiNuclearCrossSection::BuildPhysicsTable(), G4CrossSectionPairGG::BuildPhysicsTable(), G4BGGNucleonInelasticXS::BuildPhysicsTable(), G4BGGPionElasticXS::BuildPhysicsTable(), G4BGGNucleonElasticXS::BuildPhysicsTable(), G4BGGPionInelasticXS::BuildPhysicsTable(), G4ecpssrBaseKxsModel::CalculateCrossSection(), G4ecpssrBaseLixsModel::CalculateL1CrossSection(), G4ecpssrBaseLixsModel::CalculateL2CrossSection(), G4ecpssrBaseLixsModel::CalculateL3CrossSection(), G4UPiNuclearCrossSection::G4UPiNuclearCrossSection(), G4TripathiCrossSection::GetElementCrossSection(), G4PhotoNuclearCrossSection::GetElementCrossSection(), G4ElectroNuclearCrossSection::GetElementCrossSection(), G4CrossSectionPairGG::GetElementCrossSection(), G4CrossSectionInelastic::GetElementCrossSection(), G4CrossSectionElastic::GetElementCrossSection(), G4EMDissociationCrossSection::GetElementCrossSection(), G4TripathiLightCrossSection::GetElementCrossSection(), G4ProtonInelasticCrossSection::GetProtonCrossSection(), G4ElasticHadrNucleusHE::HadrNucDifferCrSec(), G4eCoulombScatteringModel::MinPrimaryEnergy(), G4ElasticHadrNucleusHE::SampleInvariantT(), G4IonCoulombCrossSection::SetupKinematic(), G4ScreeningMottCrossSection::SetupKinematic(), G4WentzelOKandVIxSection::SetupTarget(), and G4WentzelVIRelXSection::SetupTarget().

345 {
346  return elmBuilder->GetAtomicMassAmu(symb);
347 }
G4double GetAtomicMassAmu(const G4String &symb) const
G4double G4NistManager::GetAtomicMassAmu ( G4int  Z) const
inline

Definition at line 351 of file G4NistManager.hh.

References G4NistElementBuilder::GetAtomicMassAmu().

352 {
353  return elmBuilder->GetAtomicMassAmu(Z);
354 }
G4double GetAtomicMassAmu(const G4String &symb) const
G4Element * G4NistManager::GetElement ( size_t  index)
inline

Definition at line 303 of file G4NistManager.hh.

References G4Element::GetElementTable().

Referenced by export_G4NistManager().

304 {
305  G4Element* elm = 0;
306  const G4ElementTable* theElementTable = G4Element::GetElementTable();
307  if(index < theElementTable->size()) { elm = (*theElementTable)[index]; }
308  return elm;
309 }
std::vector< G4Element * > G4ElementTable
static G4ElementTable * GetElementTable()
Definition: G4Element.cc:395
G4double G4NistManager::GetIsotopeAbundance ( G4int  Z,
G4int  N 
) const
inline

Definition at line 383 of file G4NistManager.hh.

References G4NistElementBuilder::GetIsotopeAbundance().

Referenced by G4Evaporation::BreakItUp(), G4ExcitationHandler::BreakItUp(), and G4VCrossSectionDataSet::ComputeCrossSection().

384 {
385  return elmBuilder->GetIsotopeAbundance(Z, N);
386 }
G4double GetIsotopeAbundance(G4int Z, G4int N) const
**D E S C R I P T I O N
G4double G4NistManager::GetIsotopeMass ( G4int  Z,
G4int  N 
) const
inline

Definition at line 359 of file G4NistManager.hh.

References G4NistElementBuilder::GetIsotopeMass().

Referenced by export_G4NistManager().

360 {
361  return elmBuilder->GetIsotopeMass(Z, N);
362 }
G4double GetIsotopeMass(G4int Z, G4int N) const
**D E S C R I P T I O N
G4double G4NistManager::GetLOGA ( G4double  A)
inline

Definition at line 558 of file G4NistManager.hh.

References G4Pow::logA().

559 {
560  return g4pow->logA(A);
561 }
G4double logA(G4double A) const
Definition: G4Pow.hh:193
G4double G4NistManager::GetLOGA ( G4int  Z)
inline

Definition at line 565 of file G4NistManager.hh.

566 {
567  G4double res = 0.0;
568  if(Z < 101) { res = LOGAZ[Z]; }
569  return res;
570 }
double G4double
Definition: G4Types.hh:76
G4double G4NistManager::GetLOGZ ( G4int  Z)
inline
G4Material * G4NistManager::GetMaterial ( size_t  index)
inline

Definition at line 428 of file G4NistManager.hh.

References G4Material::GetMaterialTable().

Referenced by export_G4NistManager().

429 {
430  const G4MaterialTable* theMaterialTable = G4Material::GetMaterialTable();
431  G4Material* mat = 0;
432  if(index < theMaterialTable->size()) mat = (*theMaterialTable)[index];
433  return mat;
434 }
static G4MaterialTable * GetMaterialTable()
Definition: G4Material.cc:564
std::vector< G4Material * > G4MaterialTable
G4double G4NistManager::GetMeanIonisationEnergy ( G4int  Z) const
inline

Definition at line 414 of file G4NistManager.hh.

References G4NistMaterialBuilder::GetMeanIonisationEnergy().

Referenced by G4IonisParamElm::G4IonisParamElm().

415 {
416  return matBuilder->GetMeanIonisationEnergy(Z-1);
417 }
G4double GetMeanIonisationEnergy(G4int index) const
const std::vector< G4String > & G4NistManager::GetNistElementNames ( ) const
inline

Definition at line 407 of file G4NistManager.hh.

References G4NistElementBuilder::GetElementNames().

408 {
409  return elmBuilder->GetElementNames();
410 }
const std::vector< G4String > & GetElementNames() const
G4int G4NistManager::GetNistFirstIsotopeN ( G4int  Z) const
inline

Definition at line 391 of file G4NistManager.hh.

References G4NistElementBuilder::GetNistFirstIsotopeN().

Referenced by G4VCrossSectionDataSet::ComputeCrossSection().

392 {
393  return elmBuilder->GetNistFirstIsotopeN(Z);
394 }
G4int GetNistFirstIsotopeN(G4int Z) const
const std::vector< G4String > & G4NistManager::GetNistMaterialNames ( ) const
inline

Definition at line 521 of file G4NistManager.hh.

References G4NistMaterialBuilder::GetMaterialNames().

522 {
523  return matBuilder->GetMaterialNames();
524 }
const std::vector< G4String > & GetMaterialNames() const
size_t G4NistManager::GetNumberOfElements ( ) const
inline

Definition at line 330 of file G4NistManager.hh.

Referenced by export_G4NistManager().

331 {
332  return nElements;
333 }
size_t G4NistManager::GetNumberOfMaterials ( )
inline

Definition at line 296 of file G4NistManager.hh.

Referenced by export_G4NistManager().

297 {
298  return nMaterials;
299 }
G4int G4NistManager::GetNumberOfNistIsotopes ( G4int  Z) const
inline

Definition at line 399 of file G4NistManager.hh.

References G4NistElementBuilder::GetNumberOfNistIsotopes().

Referenced by G4VCrossSectionDataSet::ComputeCrossSection().

400 {
401  return elmBuilder->GetNumberOfNistIsotopes(Z);
402 }
G4int GetNumberOfNistIsotopes(G4int Z) const
G4double G4NistManager::GetTotalElectronBindingEnergy ( G4int  Z) const
inline

Definition at line 375 of file G4NistManager.hh.

References G4NistElementBuilder::GetTotalElectronBindingEnergy().

376 {
377  return elmBuilder->GetTotalElectronBindingEnergy(Z);
378 }
G4double GetTotalElectronBindingEnergy(G4int Z) const
G4int G4NistManager::GetVerbose ( )
inline

Definition at line 438 of file G4NistManager.hh.

Referenced by export_G4NistManager().

439 {
440  return verbose;
441 }
G4int G4NistManager::GetZ ( const G4String symb) const
inline

Definition at line 337 of file G4NistManager.hh.

References G4NistElementBuilder::GetZ().

Referenced by export_G4NistManager().

338 {
339  return elmBuilder->GetZ(symb);
340 }
G4int GetZ(const G4String &symb) const
G4double G4NistManager::GetZ13 ( G4double  Z)
inline
G4double G4NistManager::GetZ13 ( G4int  Z)
inline

Definition at line 535 of file G4NistManager.hh.

References G4Pow::Z13().

536 {
537  return g4pow->Z13(Z);
538 }
G4double Z13(G4int Z) const
Definition: G4Pow.hh:129
G4NistManager * G4NistManager::Instance ( void  )
static

Definition at line 68 of file G4NistManager.cc.

Referenced by G4ExcitationHandler::BreakItUp(), RE01CalorimeterROGeometry::Build(), CML2ReadOutGeometry::Build(), HadrontherapyModulator::BuildModulator(), G4UPiNuclearCrossSection::BuildPhysicsTable(), G4BGGPionElasticXS::BuildPhysicsTable(), G4BGGNucleonInelasticXS::BuildPhysicsTable(), G4BGGNucleonElasticXS::BuildPhysicsTable(), G4BGGPionInelasticXS::BuildPhysicsTable(), G4ecpssrBaseKxsModel::CalculateCrossSection(), G4ecpssrBaseLixsModel::CalculateL1CrossSection(), G4ecpssrBaseLixsModel::CalculateL2CrossSection(), G4ecpssrBaseLixsModel::CalculateL3CrossSection(), CML2ReadOutGeometry::CML2ReadOutGeometry(), G4VCrossSectionDataSet::ComputeCrossSection(), Construct(), Par01DetectorConstruction::Construct(), B1DetectorConstruction::Construct(), ExTGDetectorConstructionWithCpp::Construct(), RE01DetectorConstruction::Construct(), GB01DetectorConstruction::Construct(), GB02DetectorConstruction::Construct(), B3DetectorConstruction::Construct(), ExGflashDetectorConstruction::Construct(), ExG4DetectorConstruction01::Construct(), ExG4DetectorConstruction02::Construct(), CML2PhantomConstruction::Construct(), ExErrorDetectorConstruction::Construct(), CML2AcceleratorConstruction::Construct(), CML2Ph_FullWater::Construct(), CML2Ph_BoxInBox::Construct(), RE02DetectorConstruction::Construct(), B5DetectorConstruction::ConstructMaterials(), ExGflashDetectorConstruction::ConstructSDandField(), CML2WorldConstruction::create(), CML2PhaseSpaces::createPlane(), ElectronBenchmarkDetector::DefineMaterials(), export_G4NistManager(), G4tgbMaterialMgr::FindOrBuildG4Element(), G4tgbMaterialMgr::FindOrBuildG4Material(), G4BetheBlochModel::G4BetheBlochModel(), G4CrossSectionDataStore::G4CrossSectionDataStore(), G4CrossSectionElastic::G4CrossSectionElastic(), G4CrossSectionInelastic::G4CrossSectionInelastic(), G4CrossSectionPairGG::G4CrossSectionPairGG(), G4DNABrownianTransportation::G4DNABrownianTransportation(), G4eBremParametrizedModel::G4eBremParametrizedModel(), G4eBremsstrahlungRelModel::G4eBremsstrahlungRelModel(), G4eCoulombScatteringModel::G4eCoulombScatteringModel(), G4ElasticHadrNucleusHE::G4ElasticHadrNucleusHE(), G4ElectroNuclearCrossSection::G4ElectroNuclearCrossSection(), G4EmCorrections::G4EmCorrections(), G4EmSaturation::G4EmSaturation(), G4eSingleCoulombScatteringModel::G4eSingleCoulombScatteringModel(), G4hCoulombScatteringModel::G4hCoulombScatteringModel(), G4IonCoulombCrossSection::G4IonCoulombCrossSection(), G4IonCoulombScatteringModel::G4IonCoulombScatteringModel(), G4IonisParamElm::G4IonisParamElm(), G4Isotope::G4Isotope(), G4MicroElecElasticModel::G4MicroElecElasticModel(), G4MicroElecInelasticModel::G4MicroElecInelasticModel(), G4MuBremsstrahlungModel::G4MuBremsstrahlungModel(), G4MuElecElasticModel::G4MuElecElasticModel(), G4MuElecInelasticModel::G4MuElecInelasticModel(), G4MuPairProductionModel::G4MuPairProductionModel(), G4PairProductionRelModel::G4PairProductionRelModel(), G4PhotoNuclearCrossSection::G4PhotoNuclearCrossSection(), G4ProtonInelasticCrossSection::G4ProtonInelasticCrossSection(), G4ScreeningMottCrossSection::G4ScreeningMottCrossSection(), G4UnstableFragmentBreakUp::G4UnstableFragmentBreakUp(), G4UPiNuclearCrossSection::G4UPiNuclearCrossSection(), G4WentzelOKandVIxSection::G4WentzelOKandVIxSection(), G4WentzelVIRelModel::G4WentzelVIRelModel(), G4WentzelVIRelXSection::G4WentzelVIRelXSection(), G4GDMLReadMaterials::GetElement(), G4TripathiCrossSection::GetElementCrossSection(), G4NeutronInelasticCrossSection::GetElementCrossSection(), G4HadronInelasticDataSet::GetElementCrossSection(), G4IonsKoxCrossSection::GetElementCrossSection(), G4IonsSihverCrossSection::GetElementCrossSection(), G4HadronElasticDataSet::GetElementCrossSection(), G4IonsShenCrossSection::GetElementCrossSection(), G4GGNuclNuclCrossSection::GetElementCrossSection(), G4NeutronElasticXS::GetElementCrossSection(), G4NeutronInelasticXS::GetElementCrossSection(), G4EMDissociationCrossSection::GetElementCrossSection(), G4TripathiLightCrossSection::GetElementCrossSection(), G4ComponentGGNuclNuclXsc::GetElementCrossSection(), XrayFluoNistMaterials::GetMaterial(), G4GDMLReadMaterials::GetMaterial(), G4TripathiLightCrossSection::IsElementApplicable(), DetectorConstruction::SetAbsMaterial(), DetectorConstruction::SetAbsorberMaterial(), DetectorConstruction::SetAbsorMaterial(), ExG4DetectorConstruction02::SetBoxMaterial(), B2bDetectorConstruction::SetChamberMaterial(), B2aDetectorConstruction::SetChamberMaterial(), DetectorConstruction::SetContainerMaterial(), F04DetectorConstruction::SetDegraderMaterial(), IORTDetectorConstruction::SetDiscoMaterialIORT(), IORTDetectorConstruction::SetDiscoMaterialIORT1(), DetectorConstruction::SetEcalMaterial(), DetectorConstruction::SetGapMaterial(), DetectorConstruction::SetGasMaterial(), DetectorConstruction::SetMaterial(), ExG4DetectorConstruction01::SetMaterial(), G4IonisParamMat::SetMeanExcitationEnergy(), HadrontherapyDetectorConstruction::SetPhantomMaterial(), IORTDetectorConstruction::SetPhantomMaterial(), PassiveProtonBeamLine::SetRSMaterial(), DetectorConstruction::SetTallyMaterial(), DetectorConstruction::SetTarget1Material(), DetectorConstruction::SetTarget2Material(), B2aDetectorConstruction::SetTargetMaterial(), B2bDetectorConstruction::SetTargetMaterial(), DetectorConstruction::SetTargetMaterial(), F04DetectorConstruction::SetTargetMaterial(), DetectorConstruction::SetWorldMaterial(), ExG4DetectorConstruction02::SetWorldMaterial(), and F04DetectorConstruction::SetWorldMaterial().

69 {
70  if (instance == 0) {
71  static G4NistManager manager;
72  instance = &manager;
73  }
74  return instance;
75 }
void G4NistManager::ListMaterials ( const G4String list)
inline

Definition at line 513 of file G4NistManager.hh.

References G4NistMaterialBuilder::ListMaterials().

Referenced by export_G4NistManager(), and G4NistMessenger::SetNewValue().

514 {
515  matBuilder->ListMaterials(list);
516 }
void ListMaterials(const G4String &) const
void G4NistManager::PrintElement ( G4int  Z)
inline

Definition at line 421 of file G4NistManager.hh.

References G4NistElementBuilder::PrintElement().

Referenced by G4NistMessenger::SetNewValue().

422 {
423  elmBuilder->PrintElement(Z);
424 }
void PrintElement(G4int Z) const
void G4NistManager::PrintElement ( const G4String symbol)

Definition at line 149 of file G4NistManager.cc.

References G4NistElementBuilder::GetZ(), and G4NistElementBuilder::PrintElement().

150 {
151  if (symbol == "all") { elmBuilder->PrintElement(0); }
152  else { elmBuilder->PrintElement(elmBuilder->GetZ(symbol)); }
153 }
G4int GetZ(const G4String &symb) const
void PrintElement(G4int Z) const
void G4NistManager::PrintG4Element ( const G4String name)

Definition at line 157 of file G4NistManager.cc.

References G4cout, G4endl, G4Element::GetElementTable(), and G4Element::GetName().

Referenced by export_G4NistManager(), and G4NistMessenger::SetNewValue().

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  return;
166  }
167  }
168 }
const XML_Char * name
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
std::vector< G4Element * > G4ElementTable
const G4String & GetName() const
Definition: G4Element.hh:127
static G4ElementTable * GetElementTable()
Definition: G4Element.cc:395
void G4NistManager::PrintG4Material ( const G4String name)

Definition at line 172 of file G4NistManager.cc.

References G4cout, G4endl, G4Material::GetMaterialTable(), and G4Material::GetName().

Referenced by export_G4NistManager(), and G4NistMessenger::SetNewValue().

173 {
174  const G4MaterialTable* theMaterialTable = G4Material::GetMaterialTable();
175  size_t nmat = theMaterialTable->size();
176  for(size_t i=0; i<nmat; i++) {
177  G4Material* mat = (*theMaterialTable)[i];
178  if ( name == mat->GetName() || "all" == name) {
179  G4cout << *mat << G4endl;
180  return;
181  }
182  }
183 }
const G4String & GetName() const
Definition: G4Material.hh:176
static G4MaterialTable * GetMaterialTable()
Definition: G4Material.cc:564
std::vector< G4Material * > G4MaterialTable
const XML_Char * name
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
void G4NistManager::SetVerbose ( G4int  val)

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