61 if (instance ==
nullptr) {
63 if (instance ==
nullptr) {
77 for (
auto const & mat : *theMaterialTable) {
delete mat; }
79 for (
auto const & elm : *theElementTable) {
delete elm; }
81 for (
auto const & iso : *theIsotopeTable) {
delete iso; }
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;
100 "Wrong material name");
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;
109 "Wrong material name");
128 if (symbol ==
"all") {
141 if (name == elm->GetName() ||
"all" == name) {
152 if (name == mat->GetName() ||
"all" == name) {
169G4NistManager::G4NistManager()
182 for (
G4int j = 1; j < 101; ++j) {
184 POWERA27[j] = std::pow(
A, 0.27);
185 LOGAZ[j] = std::log(
A);
196 if (fICRU90 ==
nullptr) {
198 if (fICRU90 ==
nullptr) {
210 if (mname ==
"all") {
211 for (
auto mat : materials) {
225 if (mat !=
nullptr) {
std::vector< G4Element * > G4ElementTable
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::vector< G4Isotope * > G4IsotopeTable
std::vector< G4Material * > G4MaterialTable
#define G4MUTEX_INITIALIZER
G4GLOB_DLL std::ostream G4cout
static G4ElementTable * GetElementTable()
static const G4IsotopeTable * GetIsotopeTable()
G4double GetPressure() const
G4double GetDensity() const
void ComputeDensityEffectOnFly(G4bool val)
G4double GetTemperature() const
static G4MaterialTable * GetMaterialTable()
G4double GetAtomicMassAmu(const G4String &symb) const
G4int GetZ(const G4String &symb) const
void PrintElement(G4int Z) const
G4ICRU90StoppingData * GetICRU90StoppingData()
void PrintElement(G4int Z) const
void SetDensityEffectCalculatorFlag(const G4String &, G4bool)
G4Material * BuildMaterialWithNewDensity(const G4String &name, const G4String &basename, G4double density=0.0, G4double temp=NTP_Temperature, G4double pres=CLHEP::STP_Pressure)
void PrintG4Material(const G4String &) const
void PrintG4Element(const G4String &) const
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=false)
G4Material * FindMaterial(const G4String &name) const
static G4NistManager * Instance()
void SetVerbose(G4int val)
static G4Pow * GetInstance()