Geant4 11.2.2
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 73 of file G4NistManager.hh.

Constructor & Destructor Documentation

◆ ~G4NistManager()

G4NistManager::~G4NistManager ( )

Definition at line 74 of file G4NistManager.cc.

75{
76 const G4MaterialTable* theMaterialTable = G4Material::GetMaterialTable();
77 for (auto const & mat : *theMaterialTable) { delete mat; }
78 const G4ElementTable* theElementTable = G4Element::GetElementTable();
79 for (auto const & elm : *theElementTable) { delete elm; }
80 const G4IsotopeTable* theIsotopeTable = G4Isotope::GetIsotopeTable();
81 for (auto const & iso : *theIsotopeTable) { delete iso; }
82
83 delete messenger;
84 delete matBuilder;
85 delete elmBuilder;
86 delete fICRU90;
87}
std::vector< G4Element * > G4ElementTable
std::vector< G4Isotope * > G4IsotopeTable
Definition G4Isotope.hh:59
std::vector< G4Material * > G4MaterialTable
static G4ElementTable * GetElementTable()
Definition G4Element.cc:389
static const G4IsotopeTable * GetIsotopeTable()
Definition G4Isotope.cc:132
static G4MaterialTable * GetMaterialTable()

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

93{
94 G4Material* bmat = FindOrBuildMaterial(name);
95 if (bmat != nullptr) {
96 G4cout << "G4NistManager::BuildMaterialWithNewDensity ERROR: " << G4endl;
97 G4cout << " New material <" << name << "> cannot be built because material"
98 << " with the same name already exists." << G4endl;
99 G4Exception("G4NistManager::BuildMaterialWithNewDensity()", "mat101", FatalException,
100 "Wrong material name");
101 return nullptr;
102 }
103 bmat = FindOrBuildMaterial(basename);
104 if (bmat == nullptr) {
105 G4cout << "G4NistManager::BuildMaterialWithNewDensity ERROR: " << G4endl;
106 G4cout << " New material <" << name << "> cannot be built because " << G4endl;
107 G4cout << " base material <" << basename << "> does not exist." << G4endl;
108 G4Exception("G4NistManager::BuildMaterialWithNewDensity()", "mat102", FatalException,
109 "Wrong material name");
110 return nullptr;
111 }
112 G4double dens = density;
113 G4double temp = temperature;
114 G4double pres = pressure;
115 if (dens == 0.0) {
116 dens = bmat->GetDensity();
117 temp = bmat->GetTemperature();
118 pres = bmat->GetPressure();
119 }
120 auto mat = new G4Material(name, dens, bmat, bmat->GetState(), temp, pres);
121 return mat;
122}
@ FatalException
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
double G4double
Definition G4Types.hh:83
#define G4endl
Definition G4ios.hh:67
G4GLOB_DLL std::ostream G4cout
G4double GetPressure() const
G4double GetDensity() const
G4State GetState() const
G4double GetTemperature() const
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 459 of file G4NistManager.hh.

461{
462 return matBuilder->ConstructNewGasMaterial(name, nameNist, temp, pres);
463}
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 467 of file G4NistManager.hh.

470{
471 return matBuilder->ConstructNewIdealGasMaterial(name, elm, nbAtoms, T, P);
472}
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 450 of file G4NistManager.hh.

453{
454 return matBuilder->ConstructNewMaterial(name, elm, w, dens, state, T, P);
455}
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 440 of file G4NistManager.hh.

444{
445 return matBuilder->ConstructNewMaterial(name, elm, nbAtoms, dens, state, T, P);
446}

◆ FindElement()

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

Definition at line 293 of file G4NistManager.hh.

293{ return elmBuilder->FindElement(Z); }
G4Element * FindElement(G4int Z) const

◆ FindMaterial()

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

Definition at line 412 of file G4NistManager.hh.

413{
414 return matBuilder->FindMaterial(name);
415}
G4Material * FindMaterial(const G4String &name) const

Referenced by G4DNARuddIonisationExtendedModel::Initialise(), and SetDensityEffectCalculatorFlag().

◆ FindOrBuildElement() [1/2]

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

Definition at line 304 of file G4NistManager.hh.

305{
306 return elmBuilder->FindOrBuildElement(symb, isotopes);
307}
G4Element * FindOrBuildElement(G4int Z, G4bool buildIsotopes=true)

◆ FindOrBuildElement() [2/2]

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

Definition at line 297 of file G4NistManager.hh.

298{
299 return elmBuilder->FindOrBuildElement(Z, isotopes);
300}

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

◆ FindOrBuildMaterial()

◆ FindOrBuildSimpleMaterial()

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

Definition at line 433 of file G4NistManager.hh.

434{
435 return matBuilder->FindOrBuildSimpleMaterial(Z, warning);
436}
G4Material * FindOrBuildSimpleMaterial(G4int Z, G4bool warning)

◆ FindSimpleMaterial()

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

Definition at line 426 of file G4NistManager.hh.

427{
428 return matBuilder->FindSimpleMaterial(Z);
429}
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 340 of file G4NistManager.hh.

341{
342 return elmBuilder->GetAtomicMass(Z, N);
343}
G4double GetAtomicMass(G4int Z, G4int N) const
#define N
Definition crc32.c:57

Referenced by G4Isotope::G4Isotope().

◆ GetAtomicMassAmu() [1/2]

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

Definition at line 319 of file G4NistManager.hh.

320{
321 return elmBuilder->GetAtomicMassAmu(symb);
322}
G4double GetAtomicMassAmu(const G4String &symb) const

Referenced by G4KokoulinMuonNuclearXS::BuildCrossSectionTable(), G4BGGNucleonElasticXS::BuildPhysicsTable(), G4BGGNucleonInelasticXS::BuildPhysicsTable(), G4BGGPionElasticXS::BuildPhysicsTable(), G4BGGPionInelasticXS::BuildPhysicsTable(), G4UPiNuclearCrossSection::BuildPhysicsTable(), G4ecpssrBaseKxsModel::CalculateCrossSection(), G4ecpssrBaseLixsModel::CalculateL1CrossSection(), G4ecpssrBaseLixsModel::CalculateL2CrossSection(), G4ecpssrBaseLixsModel::CalculateL3CrossSection(), G4hCoulombScatteringModel::ComputeCrossSectionPerAtom(), G4IonCoulombScatteringModel::ComputeCrossSectionPerAtom(), G4WentzelVIRelModel::ComputeCrossSectionPerAtom(), G4AtimaEnergyLossModel::ComputeDEDXPerVolume(), G4AtimaFluctuations::Dispersion(), G4CrossSectionElastic::GetElementCrossSection(), G4CrossSectionInelastic::GetElementCrossSection(), G4ElectroNuclearCrossSection::GetElementCrossSection(), G4EMDissociationCrossSection::GetElementCrossSection(), G4PhotoNuclearCrossSection::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 326 of file G4NistManager.hh.

327{
328 return elmBuilder->GetAtomicMassAmu(Z);
329}

◆ GetElement()

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

Definition at line 285 of file G4NistManager.hh.

286{
287 const G4ElementTable* theElementTable = G4Element::GetElementTable();
288 return (index < theElementTable->size()) ? (*theElementTable)[index] : nullptr;
289}

◆ GetICRU90StoppingData()

G4ICRU90StoppingData * G4NistManager::GetICRU90StoppingData ( )

Definition at line 194 of file G4NistManager.cc.

195{
196 if (fICRU90 == nullptr) {
197 G4AutoLock l(&nistManagerMutex);
198 if (fICRU90 == nullptr) {
199 fICRU90 = new G4ICRU90StoppingData();
200 }
201 l.unlock();
202 }
203 return fICRU90;
204}

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

◆ GetIsotopeAbundance()

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

Definition at line 354 of file G4NistManager.hh.

355{
356 return elmBuilder->GetIsotopeAbundance(Z, N);
357}
G4double GetIsotopeAbundance(G4int Z, G4int N) const

Referenced by G4Evaporation::BreakFragment().

◆ GetIsotopeMass()

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

Definition at line 333 of file G4NistManager.hh.

334{
335 return elmBuilder->GetIsotopeMass(Z, N);
336}
G4double GetIsotopeMass(G4int Z, G4int N) const

◆ GetLOGAMU()

G4double G4NistManager::GetLOGAMU ( G4int Z) const
inline

Definition at line 509 of file G4NistManager.hh.

510{
511 return (0 <= Z && Z < 101) ? LOGAZ[Z] : 0.0;
512}

◆ GetLOGZ()

G4double G4NistManager::GetLOGZ ( G4int Z) const
inline

◆ GetMaterial()

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

Definition at line 400 of file G4NistManager.hh.

401{
402 const G4MaterialTable* theMaterialTable = G4Material::GetMaterialTable();
403 return (index < theMaterialTable->size()) ? (*theMaterialTable)[index] : nullptr;
404}

◆ GetMeanIonisationEnergy()

G4double G4NistManager::GetMeanIonisationEnergy ( G4int Z) const
inline

Definition at line 382 of file G4NistManager.hh.

383{
384 return matBuilder->GetMeanIonisationEnergy(Z);
385}
G4double GetMeanIonisationEnergy(G4int index) const

Referenced by G4IonisParamElm::G4IonisParamElm().

◆ GetNistElementNames()

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

Definition at line 375 of file G4NistManager.hh.

376{
377 return elmBuilder->GetElementNames();
378}
const std::vector< G4String > & GetElementNames() const

◆ GetNistFirstIsotopeN()

G4int G4NistManager::GetNistFirstIsotopeN ( G4int Z) const
inline

Definition at line 361 of file G4NistManager.hh.

362{
363 return elmBuilder->GetNistFirstIsotopeN(Z);
364}
G4int GetNistFirstIsotopeN(G4int Z) const

◆ GetNistMaterialNames()

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

Definition at line 483 of file G4NistManager.hh.

484{
485 return matBuilder->GetMaterialNames();
486}
const std::vector< G4String > & GetMaterialNames() const

◆ GetNominalDensity()

G4double G4NistManager::GetNominalDensity ( G4int Z) const
inline

Definition at line 389 of file G4NistManager.hh.

390{
391 return matBuilder->GetNominalDensity(Z);
392}
G4double GetNominalDensity(G4int index) const

◆ GetNumberOfElements()

size_t G4NistManager::GetNumberOfElements ( ) const
inline

Definition at line 311 of file G4NistManager.hh.

311{ return nElements; }

◆ GetNumberOfMaterials()

size_t G4NistManager::GetNumberOfMaterials ( ) const
inline

Definition at line 281 of file G4NistManager.hh.

281{ return nMaterials; }

◆ GetNumberOfNistIsotopes()

G4int G4NistManager::GetNumberOfNistIsotopes ( G4int Z) const
inline

Definition at line 368 of file G4NistManager.hh.

369{
370 return elmBuilder->GetNumberOfNistIsotopes(Z);
371}
G4int GetNumberOfNistIsotopes(G4int Z) const

◆ GetTotalElectronBindingEnergy()

G4double G4NistManager::GetTotalElectronBindingEnergy ( G4int Z) const
inline

Definition at line 347 of file G4NistManager.hh.

348{
349 return elmBuilder->GetTotalElectronBindingEnergy(Z);
350}
G4double GetTotalElectronBindingEnergy(G4int Z) const

◆ GetVerbose()

G4int G4NistManager::GetVerbose ( ) const
inline

Definition at line 408 of file G4NistManager.hh.

408{ return verbose; }

◆ GetZ()

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

Definition at line 315 of file G4NistManager.hh.

315{ return elmBuilder->GetZ(symb); }
G4int GetZ(const G4String &symb) const

◆ GetZ13() [1/2]

◆ GetZ13() [2/2]

G4double G4NistManager::GetZ13 ( G4int Z) const
inline

Definition at line 494 of file G4NistManager.hh.

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

◆ Instance()

G4NistManager * G4NistManager::Instance ( )
static

Definition at line 59 of file G4NistManager.cc.

60{
61 if (instance == nullptr) {
62 G4AutoLock l(&nistManagerMutex);
63 if (instance == nullptr) {
64 static G4NistManager manager;
65 instance = &manager;
66 }
67 l.unlock();
68 }
69 return instance;
70}

Referenced by G4KokoulinMuonNuclearXS::BuildCrossSectionTable(), G4BGGNucleonElasticXS::BuildPhysicsTable(), G4BGGNucleonInelasticXS::BuildPhysicsTable(), G4BGGPionElasticXS::BuildPhysicsTable(), G4BGGPionInelasticXS::BuildPhysicsTable(), G4UPiNuclearCrossSection::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(), G4BraggModel::Initialise(), G4DiffuseElastic::Initialise(), G4DiffuseElasticV2::Initialise(), G4DNARuddIonisationExtendedModel::Initialise(), G4NeutronElectronElXsc::Initialise(), G4NuclNuclDiffuseElastic::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 476 of file G4NistManager.hh.

477{
478 matBuilder->ListMaterials(list);
479}
void ListMaterials(const G4String &) const

Referenced by G4NistMessenger::SetNewValue().

◆ PrintElement() [1/2]

void G4NistManager::PrintElement ( const G4String & symbol) const

Definition at line 126 of file G4NistManager.cc.

127{
128 if (symbol == "all") {
129 elmBuilder->PrintElement(0);
130 }
131 else {
132 elmBuilder->PrintElement(elmBuilder->GetZ(symbol));
133 }
134}
void PrintElement(G4int Z) const

◆ PrintElement() [2/2]

void G4NistManager::PrintElement ( G4int Z) const
inline

Definition at line 396 of file G4NistManager.hh.

396{ elmBuilder->PrintElement(Z); }

Referenced by G4NistMessenger::SetNewValue().

◆ PrintG4Element()

void G4NistManager::PrintG4Element ( const G4String & name) const

Definition at line 138 of file G4NistManager.cc.

139{
140 for (auto const & elm : *G4Element::GetElementTable()) {
141 if (name == elm->GetName() || "all" == name) {
142 G4cout << *elm << G4endl;
143 }
144 }
145}

Referenced by G4NistMessenger::SetNewValue().

◆ PrintG4Material()

void G4NistManager::PrintG4Material ( const G4String & name) const

Definition at line 149 of file G4NistManager.cc.

150{
151 for (auto const & mat : *G4Material::GetMaterialTable()) {
152 if (name == mat->GetName() || "all" == name) {
153 G4cout << *mat << G4endl;
154 }
155 }
156}

Referenced by G4NistMessenger::SetNewValue().

◆ SetDensityEffectCalculatorFlag() [1/2]

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

Definition at line 208 of file G4NistManager.cc.

209{
210 if (mname == "all") {
211 for (auto mat : materials) {
213 }
214 }
215 else {
216 G4Material* mat = FindMaterial(mname);
218 }
219}
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 223 of file G4NistManager.cc.

224{
225 if (mat != nullptr) {
227 }
228}
void ComputeDensityEffectOnFly(G4bool val)

◆ SetVerbose()

void G4NistManager::SetVerbose ( G4int val)

Definition at line 160 of file G4NistManager.cc.

161{
162 verbose = val;
163 elmBuilder->SetVerbose(val);
164 matBuilder->SetVerbose(val);
165}

Referenced by G4NistMessenger::SetNewValue().


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