Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4NistManager Class Reference

#include <G4NistManager.hh>

Public Member Functions

 ~G4NistManager ()
 
G4ElementGetElement (size_t index) const
 
G4ElementFindElement (G4int Z) const
 
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) const
 
void PrintElement (const G4String &) const
 
void PrintG4Element (const G4String &) const
 
const std::vector< G4String > & GetNistElementNames () const
 
G4double GetMeanIonisationEnergy (G4int Z) const
 
G4double GetNominalDensity (G4int Z) const
 
G4MaterialGetMaterial (size_t index) const
 
G4MaterialFindMaterial (const G4String &name) const
 
G4MaterialFindOrBuildMaterial (const G4String &name, G4bool isotopes=true, G4bool warning=false)
 
G4MaterialFindSimpleMaterial (G4int Z) const
 
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)
 
void SetDensityEffectCalculatorFlag (const G4String &, G4bool)
 
void SetDensityEffectCalculatorFlag (G4Material *, G4bool)
 
size_t GetNumberOfMaterials () const
 
G4int GetVerbose () const
 
void SetVerbose (G4int)
 
void PrintG4Material (const G4String &) const
 
void ListMaterials (const G4String &) const
 
const std::vector< G4String > & GetNistMaterialNames () const
 
G4double GetZ13 (G4double Z) const
 
G4double GetZ13 (G4int Z) const
 
G4double GetA27 (G4int Z) const
 
G4double GetLOGZ (G4int Z) const
 
G4double GetLOGAMU (G4int Z) const
 
G4ICRU90StoppingDataGetICRU90StoppingData ()
 

Static Public Member Functions

static G4NistManagerInstance ()
 

Detailed Description

Definition at line 82 of file G4NistManager.hh.

Constructor & Destructor Documentation

◆ ~G4NistManager()

G4NistManager::~G4NistManager ( )

Definition at line 75 of file G4NistManager.cc.

76{
77 // G4cout << "NistManager: start material destruction" << G4endl;
78 const G4MaterialTable* theMaterialTable = G4Material::GetMaterialTable();
79 size_t nmat = theMaterialTable->size();
80 size_t i;
81 for(i=0; i<nmat; i++) {
82 if((*theMaterialTable)[i] != nullptr)
83 {
84 delete(*theMaterialTable)[i];
85 }
86 }
87 // G4cout << "NistManager: start element destruction" << G4endl;
88 const G4ElementTable* theElementTable = G4Element::GetElementTable();
89 size_t nelm = theElementTable->size();
90 for(i=0; i<nelm; i++) {
91 if((*theElementTable)[i] != nullptr)
92 {
93 delete(*theElementTable)[i];
94 }
95 }
96 // G4cout << "NistManager: start isotope destruction" << G4endl;
97 const G4IsotopeTable* theIsotopeTable = G4Isotope::GetIsotopeTable();
98 size_t niso = theIsotopeTable->size();
99 for(i=0; i<niso; i++) {
100 if((*theIsotopeTable)[i] != nullptr)
101 {
102 delete(*theIsotopeTable)[i];
103 }
104 }
105 // G4cout << "NistManager: end isotope destruction" << G4endl;
106 delete messenger;
107 delete matBuilder;
108 delete elmBuilder;
109 delete fICRU90;
110 // G4cout << "NistManager: end destruction" << G4endl;
111}
std::vector< G4Element * > G4ElementTable
std::vector< G4Isotope * > G4IsotopeTable
Definition: G4Isotope.hh:67
std::vector< G4Material * > G4MaterialTable
static G4ElementTable * GetElementTable()
Definition: G4Element.cc:403
static const G4IsotopeTable * GetIsotopeTable()
Definition: G4Isotope.cc:183
static G4MaterialTable * GetMaterialTable()
Definition: G4Material.cc:677

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 116 of file G4NistManager.cc.

121{
122 G4Material* bmat = FindOrBuildMaterial(name);
123 if(bmat != nullptr)
124 {
125 G4cout << "G4NistManager::BuildMaterialWithNewDensity ERROR: " << G4endl;
126 G4cout << " New material <" << name << "> cannot be built because material"
127 << " with the same name already exists." << G4endl;
128 G4Exception("G4NistManager::BuildMaterialWithNewDensity()", "mat101",
129 FatalException, "Wrong material name");
130 return nullptr;
131 }
132 bmat = FindOrBuildMaterial(basename);
133 if(bmat == nullptr)
134 {
135 G4cout << "G4NistManager::BuildMaterialWithNewDensity ERROR: " << G4endl;
136 G4cout << " New material <" << name << "> cannot be built because "
137 << G4endl;
138 G4cout << " base material <" << basename << "> does not exist." << G4endl;
139 G4Exception("G4NistManager::BuildMaterialWithNewDensity()", "mat102",
140 FatalException, "Wrong material name");
141 return nullptr;
142 }
143 G4double dens = density;
144 G4double temp = temperature;
145 G4double pres = pressure;
146 if(dens == 0.0) {
147 dens = bmat->GetDensity();
148 temp = bmat->GetTemperature();
149 pres = bmat->GetPressure();
150 }
151 G4Material* mat = new G4Material(name, dens, bmat, bmat->GetState(),
152 temp, pres);
153 return mat;
154}
@ FatalException
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
Definition: G4Exception.cc:59
double G4double
Definition: G4Types.hh:83
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
G4double GetPressure() const
Definition: G4Material.hh:178
G4double GetDensity() const
Definition: G4Material.hh:175
G4State GetState() const
Definition: G4Material.hh:176
G4double GetTemperature() const
Definition: G4Material.hh:177
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=false)
const char * name(G4int ptype)

◆ ConstructNewGasMaterial()

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

Definition at line 542 of file G4NistManager.hh.

547{
548 return matBuilder->ConstructNewGasMaterial(name,nameNist,temp,pres);
549}
G4Material * ConstructNewGasMaterial(const G4String &name, const G4String &nameDB, G4double temp, G4double pres)

◆ 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 553 of file G4NistManager.hh.

560{
561 return
562 matBuilder->ConstructNewIdealGasMaterial(name,elm,nbAtoms,T,P);
563}
G4Material * ConstructNewIdealGasMaterial(const G4String &name, const std::vector< G4String > &elm, const std::vector< G4int > &nbAtoms, G4double temp=NTP_Temperature, G4double pressure=CLHEP::STP_Pressure)

◆ ConstructNewMaterial() [1/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 527 of file G4NistManager.hh.

536{
537 return matBuilder->ConstructNewMaterial(name,elm,w,dens,state,T,P);
538}
G4Material * ConstructNewMaterial(const G4String &name, const std::vector< G4String > &elm, const std::vector< G4int > &nbAtoms, G4double dens, G4State state=kStateSolid, G4double temp=NTP_Temperature, G4double pressure=CLHEP::STP_Pressure)

◆ ConstructNewMaterial() [2/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 510 of file G4NistManager.hh.

520{
521 return
522 matBuilder->ConstructNewMaterial(name,elm,nbAtoms,dens,state,T,P);
523}

◆ FindElement()

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

Definition at line 333 of file G4NistManager.hh.

334{
335 return elmBuilder->FindElement(Z);
336}
const G4int Z[17]
G4Element * FindElement(G4int Z) const

◆ FindMaterial()

G4Material * G4NistManager::FindMaterial ( const G4String name) const
inline

Definition at line 478 of file G4NistManager.hh.

479{
480 return matBuilder->FindMaterial(name);
481}
G4Material * FindMaterial(const G4String &name) const

Referenced by SetDensityEffectCalculatorFlag().

◆ FindOrBuildElement() [1/2]

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

Definition at line 349 of file G4NistManager.hh.

351{
352 return elmBuilder->FindOrBuildElement(symb, isotopes);
353}
G4Element * FindOrBuildElement(G4int Z, G4bool buildIsotopes=true)

◆ FindOrBuildElement() [2/2]

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

Definition at line 341 of file G4NistManager.hh.

342{
343 return elmBuilder->FindOrBuildElement(Z, isotopes);
344}

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

◆ FindOrBuildMaterial()

◆ FindOrBuildSimpleMaterial()

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

Definition at line 503 of file G4NistManager.hh.

504{
505 return matBuilder->FindOrBuildSimpleMaterial(Z, warning);
506}
G4Material * FindOrBuildSimpleMaterial(G4int Z, G4bool warning)

◆ FindSimpleMaterial()

G4Material * G4NistManager::FindSimpleMaterial ( G4int  Z) const
inline

Definition at line 495 of file G4NistManager.hh.

496{
497 return matBuilder->FindSimpleMaterial(Z);
498}
G4Material * FindSimpleMaterial(G4int Z) const

◆ GetA27()

G4double G4NistManager::GetA27 ( G4int  Z) const
inline

◆ GetAtomicMass()

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

Definition at line 394 of file G4NistManager.hh.

395{
396 return elmBuilder->GetAtomicMass(Z, N);
397}
G4double GetAtomicMass(G4int Z, G4int N) const
#define N
Definition: crc32.c:56

Referenced by G4Isotope::G4Isotope().

◆ GetAtomicMassAmu() [1/2]

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

Definition at line 371 of file G4NistManager.hh.

372{
373 return elmBuilder->GetAtomicMassAmu(symb);
374}
G4double GetAtomicMassAmu(const G4String &symb) const

Referenced by G4KokoulinMuonNuclearXS::BuildCrossSectionTable(), G4BGGNucleonElasticXS::BuildPhysicsTable(), G4BGGPionElasticXS::BuildPhysicsTable(), G4BGGPionInelasticXS::BuildPhysicsTable(), G4UPiNuclearCrossSection::BuildPhysicsTable(), G4BGGNucleonInelasticXS::BuildPhysicsTable(), G4ecpssrBaseKxsModel::CalculateCrossSection(), G4ecpssrBaseLixsModel::CalculateL1CrossSection(), G4ecpssrBaseLixsModel::CalculateL2CrossSection(), G4ecpssrBaseLixsModel::CalculateL3CrossSection(), G4IonCoulombScatteringModel::ComputeCrossSectionPerAtom(), G4hCoulombScatteringModel::ComputeCrossSectionPerAtom(), G4WentzelVIRelModel::ComputeCrossSectionPerAtom(), G4AtimaEnergyLossModel::ComputeDEDXPerVolume(), G4AtimaFluctuations::Dispersion(), G4EMDissociationCrossSection::GetElementCrossSection(), G4PhotoNuclearCrossSection::GetElementCrossSection(), G4ElectroNuclearCrossSection::GetElementCrossSection(), G4CrossSectionElastic::GetElementCrossSection(), G4CrossSectionInelastic::GetElementCrossSection(), G4DiffuseElastic::Initialise(), G4DiffuseElasticV2::Initialise(), G4NuclNuclDiffuseElastic::Initialise(), G4DiffuseElastic::InitialiseOnFly(), G4DiffuseElasticV2::InitialiseOnFly(), G4NuclNuclDiffuseElastic::InitialiseOnFly(), G4eCoulombScatteringModel::MinPrimaryEnergy(), G4hCoulombScatteringModel::MinPrimaryEnergy(), G4WentzelOKandVIxSection::SampleSingleScattering(), G4ScreeningMottCrossSection::SetupKinematic(), and G4WentzelOKandVIxSection::SetupTarget().

◆ GetAtomicMassAmu() [2/2]

G4double G4NistManager::GetAtomicMassAmu ( G4int  Z) const
inline

Definition at line 378 of file G4NistManager.hh.

379{
380 return elmBuilder->GetAtomicMassAmu(Z);
381}

◆ GetElement()

G4Element * G4NistManager::GetElement ( size_t  index) const
inline

Definition at line 324 of file G4NistManager.hh.

325{
326 const G4ElementTable* theElementTable = G4Element::GetElementTable();
327 return (index < theElementTable->size()) ? (*theElementTable)[index] : nullptr;
328}

◆ GetICRU90StoppingData()

G4ICRU90StoppingData * G4NistManager::GetICRU90StoppingData ( )

Definition at line 228 of file G4NistManager.cc.

229{
230 if(fICRU90 == nullptr)
231 {
232 G4AutoLock l(&nistManagerMutex);
233 if(fICRU90 == nullptr) {
234 fICRU90 = new G4ICRU90StoppingData();
235 }
236 l.unlock();
237 }
238 return fICRU90;
239}

Referenced by G4BetheBlochModel::Initialise(), G4BraggIonModel::Initialise(), and G4BraggModel::Initialise().

◆ GetIsotopeAbundance()

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

Definition at line 410 of file G4NistManager.hh.

411{
412 return elmBuilder->GetIsotopeAbundance(Z, N);
413}
G4double GetIsotopeAbundance(G4int Z, G4int N) const

Referenced by G4Evaporation::BreakFragment(), and G4ExcitationHandler::BreakItUp().

◆ GetIsotopeMass()

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

Definition at line 386 of file G4NistManager.hh.

387{
388 return elmBuilder->GetIsotopeMass(Z, N);
389}
G4double GetIsotopeMass(G4int Z, G4int N) const

◆ GetLOGAMU()

G4double G4NistManager::GetLOGAMU ( G4int  Z) const
inline

Definition at line 610 of file G4NistManager.hh.

611{
612 return (0 <= Z && Z < 101) ? LOGAZ[Z] : 0.0;
613}

◆ GetLOGZ()

G4double G4NistManager::GetLOGZ ( G4int  Z) const
inline

◆ GetMaterial()

G4Material * G4NistManager::GetMaterial ( size_t  index) const
inline

Definition at line 462 of file G4NistManager.hh.

463{
464 const G4MaterialTable* theMaterialTable = G4Material::GetMaterialTable();
465 return (index < theMaterialTable->size()) ? (*theMaterialTable)[index] : nullptr;
466}

◆ GetMeanIonisationEnergy()

G4double G4NistManager::GetMeanIonisationEnergy ( G4int  Z) const
inline

Definition at line 441 of file G4NistManager.hh.

442{
443 return matBuilder->GetMeanIonisationEnergy(Z);
444}
G4double GetMeanIonisationEnergy(G4int index) const

Referenced by G4IonisParamElm::G4IonisParamElm().

◆ GetNistElementNames()

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

Definition at line 434 of file G4NistManager.hh.

435{
436 return elmBuilder->GetElementNames();
437}
const std::vector< G4String > & GetElementNames() const

◆ GetNistFirstIsotopeN()

G4int G4NistManager::GetNistFirstIsotopeN ( G4int  Z) const
inline

Definition at line 418 of file G4NistManager.hh.

419{
420 return elmBuilder->GetNistFirstIsotopeN(Z);
421}
G4int GetNistFirstIsotopeN(G4int Z) const

◆ GetNistMaterialNames()

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

Definition at line 575 of file G4NistManager.hh.

576{
577 return matBuilder->GetMaterialNames();
578}
const std::vector< G4String > & GetMaterialNames() const

◆ GetNominalDensity()

G4double G4NistManager::GetNominalDensity ( G4int  Z) const
inline

Definition at line 448 of file G4NistManager.hh.

449{
450 return matBuilder->GetNominalDensity(Z);
451}
G4double GetNominalDensity(G4int index) const

◆ GetNumberOfElements()

size_t G4NistManager::GetNumberOfElements ( ) const
inline

Definition at line 357 of file G4NistManager.hh.

358{
359 return nElements;
360}

◆ GetNumberOfMaterials()

size_t G4NistManager::GetNumberOfMaterials ( ) const
inline

Definition at line 317 of file G4NistManager.hh.

318{
319 return nMaterials;
320}

◆ GetNumberOfNistIsotopes()

G4int G4NistManager::GetNumberOfNistIsotopes ( G4int  Z) const
inline

Definition at line 426 of file G4NistManager.hh.

427{
428 return elmBuilder->GetNumberOfNistIsotopes(Z);
429}
G4int GetNumberOfNistIsotopes(G4int Z) const

◆ GetTotalElectronBindingEnergy()

G4double G4NistManager::GetTotalElectronBindingEnergy ( G4int  Z) const
inline

Definition at line 402 of file G4NistManager.hh.

403{
404 return elmBuilder->GetTotalElectronBindingEnergy(Z);
405}
G4double GetTotalElectronBindingEnergy(G4int Z) const

◆ GetVerbose()

G4int G4NistManager::GetVerbose ( ) const
inline

Definition at line 470 of file G4NistManager.hh.

471{
472 return verbose;
473}

◆ GetZ()

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

Definition at line 364 of file G4NistManager.hh.

365{
366 return elmBuilder->GetZ(symb);
367}
G4int GetZ(const G4String &symb) const

◆ GetZ13() [1/2]

◆ GetZ13() [2/2]

G4double G4NistManager::GetZ13 ( G4int  Z) const
inline

Definition at line 589 of file G4NistManager.hh.

590{
591 return g4pow->Z13(Z);
592}
G4double Z13(G4int Z) const
Definition: G4Pow.hh:123

◆ Instance()

G4NistManager * G4NistManager::Instance ( )
static

Definition at line 62 of file G4NistManager.cc.

63{
64 if (instance == nullptr) {
65 if (instance == nullptr) {
66 static G4NistManager manager;
67 instance = &manager;
68 }
69 }
70 return instance;
71}

Referenced by G4KokoulinMuonNuclearXS::BuildCrossSectionTable(), G4BGGNucleonElasticXS::BuildPhysicsTable(), G4BGGPionElasticXS::BuildPhysicsTable(), G4BGGPionInelasticXS::BuildPhysicsTable(), G4UPiNuclearCrossSection::BuildPhysicsTable(), G4BGGNucleonInelasticXS::BuildPhysicsTable(), G4ecpssrBaseKxsModel::CalculateCrossSection(), G4ecpssrBaseLixsModel::CalculateL1CrossSection(), G4ecpssrBaseLixsModel::CalculateL2CrossSection(), G4ecpssrBaseLixsModel::CalculateL3CrossSection(), G4GammaConversionToMuons::ComputeCrossSectionPerAtom(), G4AtimaFluctuations::Dispersion(), G4tgbMaterialMgr::FindOrBuildG4Element(), G4tgbMaterialMgr::FindOrBuildG4Material(), G4AtimaEnergyLossModel::G4AtimaEnergyLossModel(), G4BetheBlochModel::G4BetheBlochModel(), G4CrossSectionElastic::G4CrossSectionElastic(), G4CrossSectionInelastic::G4CrossSectionInelastic(), G4DensityEffectCalculator::G4DensityEffectCalculator(), G4DNABrownianTransportation::G4DNABrownianTransportation(), G4eBremParametrizedModel::G4eBremParametrizedModel(), G4eCoulombScatteringModel::G4eCoulombScatteringModel(), G4ElasticHadrNucleusHE::G4ElasticHadrNucleusHE(), G4ElectroNuclearCrossSection::G4ElectroNuclearCrossSection(), G4EmCalculator::G4EmCalculator(), G4EmSaturation::G4EmSaturation(), G4eSingleCoulombScatteringModel::G4eSingleCoulombScatteringModel(), G4Evaporation::G4Evaporation(), G4ExcitationHandler::G4ExcitationHandler(), G4hCoulombScatteringModel::G4hCoulombScatteringModel(), G4IonCoulombCrossSection::G4IonCoulombCrossSection(), G4IonCoulombScatteringModel::G4IonCoulombScatteringModel(), G4IonisParamElm::G4IonisParamElm(), G4Isotope::G4Isotope(), G4LindhardSorensenIonModel::G4LindhardSorensenIonModel(), G4Material::G4Material(), G4MicroElecElasticModel::G4MicroElecElasticModel(), G4MicroElecInelasticModel::G4MicroElecInelasticModel(), G4MuBremsstrahlungModel::G4MuBremsstrahlungModel(), G4MuPairProductionModel::G4MuPairProductionModel(), G4PhotoNuclearCrossSection::G4PhotoNuclearCrossSection(), G4ScreeningMottCrossSection::G4ScreeningMottCrossSection(), G4WentzelOKandVIxSection::G4WentzelOKandVIxSection(), G4WentzelVIRelModel::G4WentzelVIRelModel(), G4GDMLReadMaterials::GetElement(), G4EMDissociationCrossSection::GetElementCrossSection(), G4IonsShenCrossSection::GetElementCrossSection(), G4GDMLReadMaterials::GetMaterial(), G4MuonMinusBoundDecay::GetMuonDecayRate(), G4NeutronElectronElXsc::Initialise(), G4DiffuseElastic::Initialise(), G4DiffuseElasticV2::Initialise(), G4NuclNuclDiffuseElastic::Initialise(), G4BraggIonModel::Initialise(), G4BraggModel::Initialise(), G4DiffuseElastic::InitialiseOnFly(), G4DiffuseElasticV2::InitialiseOnFly(), G4NuclNuclDiffuseElastic::InitialiseOnFly(), G4PhysListUtil::InitialiseParameters(), G4GammaConversionToMuons::PostStepDoIt(), G4ScoringProbe::SetMaterial(), and G4IonisParamMat::SetMeanExcitationEnergy().

◆ ListMaterials()

void G4NistManager::ListMaterials ( const G4String list) const
inline

Definition at line 567 of file G4NistManager.hh.

568{
569 matBuilder->ListMaterials(list);
570}
void ListMaterials(const G4String &) const

Referenced by G4NistMessenger::SetNewValue().

◆ PrintElement() [1/2]

void G4NistManager::PrintElement ( const G4String symbol) const

Definition at line 158 of file G4NistManager.cc.

159{
160 if (symbol == "all") { elmBuilder->PrintElement(0); }
161 else { elmBuilder->PrintElement(elmBuilder->GetZ(symbol)); }
162}
void PrintElement(G4int Z) const

◆ PrintElement() [2/2]

void G4NistManager::PrintElement ( G4int  Z) const
inline

Definition at line 455 of file G4NistManager.hh.

456{
457 elmBuilder->PrintElement(Z);
458}

Referenced by G4NistMessenger::SetNewValue().

◆ PrintG4Element()

void G4NistManager::PrintG4Element ( const G4String name) const

Definition at line 166 of file G4NistManager.cc.

167{
168 const G4ElementTable* theElementTable = G4Element::GetElementTable();
169 size_t nelm = theElementTable->size();
170 for(size_t i=0; i<nelm; i++) {
171 G4Element* elm = (*theElementTable)[i];
172 if ( name == elm->GetName() || "all" == name) {
173 G4cout << *elm << G4endl;
174 }
175 }
176}
const G4String & GetName() const
Definition: G4Element.hh:127

Referenced by G4NistMessenger::SetNewValue().

◆ PrintG4Material()

void G4NistManager::PrintG4Material ( const G4String name) const

Definition at line 180 of file G4NistManager.cc.

181{
182 const G4MaterialTable* theMaterialTable = G4Material::GetMaterialTable();
183 size_t nmat = theMaterialTable->size();
184 for(size_t i=0; i<nmat; i++) {
185 G4Material* mat = (*theMaterialTable)[i];
186 if ( name == mat->GetName() || "all" == name) {
187 G4cout << *mat << G4endl;
188 }
189 }
190}
const G4String & GetName() const
Definition: G4Material.hh:172

Referenced by G4NistMessenger::SetNewValue().

◆ SetDensityEffectCalculatorFlag() [1/2]

void G4NistManager::SetDensityEffectCalculatorFlag ( const G4String mname,
G4bool  val 
)

Definition at line 243 of file G4NistManager.cc.

245{
246 if(mname == "all") {
247 for(auto mat : materials) {
249 }
250 } else {
251 G4Material* mat = FindMaterial(mname);
253 }
254}
void SetDensityEffectCalculatorFlag(const G4String &, G4bool)
G4Material * FindMaterial(const G4String &name) const

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

◆ SetDensityEffectCalculatorFlag() [2/2]

void G4NistManager::SetDensityEffectCalculatorFlag ( G4Material mat,
G4bool  val 
)

Definition at line 258 of file G4NistManager.cc.

259{
260 if(mat != nullptr)
261 {
263 }
264}
void ComputeDensityEffectOnFly(G4bool)
Definition: G4Material.cc:665

◆ SetVerbose()

void G4NistManager::SetVerbose ( G4int  val)

Definition at line 194 of file G4NistManager.cc.

195{
196 verbose = val;
197 elmBuilder->SetVerbose(val);
198 matBuilder->SetVerbose(val);
199}

Referenced by G4NistMessenger::SetNewValue().


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