83 size_t nmat = theMaterialTable->size();
85 for(i=0; i<nmat; i++) {
86 if((*theMaterialTable)[i]) {
delete (*theMaterialTable)[i]; }
90 size_t nelm = theElementTable->size();
91 for(i=0; i<nelm; i++) {
92 if((*theElementTable)[i]) {
delete (*theElementTable)[i]; }
96 size_t niso = theIsotopeTable->size();
97 for(i=0; i<niso; i++) {
98 if((*theIsotopeTable)[i]) {
delete (*theIsotopeTable)[i]; }
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",
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",
160 size_t nelm = theElementTable->size();
161 for(
size_t i=0; i<nelm; i++) {
175 size_t nmat = theMaterialTable->size();
176 for(
size_t i=0; i<nmat; i++) {
202 "Attempt to instantiate G4NistManager in worker thread");
216 for(
G4int j=1; j<101; ++j) {
219 LOGAZ[j] = std::log(A);
G4double GetPressure() const
static G4Pow * GetInstance()
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=false)
static G4NistManager * instance
void PrintElement(G4int Z)
const G4String & GetName() const
G4NistMaterialBuilder * matBuilder
static G4MaterialTable * GetMaterialTable()
std::vector< G4Material * > G4MaterialTable
G4double GetDensity() const
static const G4IsotopeTable * GetIsotopeTable()
G4double GetAtomicMassAmu(const G4String &symb) const
static G4NistManager * Instance()
void PrintG4Material(const G4String &)
std::vector< G4Isotope * > G4IsotopeTable
G4GLOB_DLL std::ostream G4cout
G4int GetZ(const G4String &symb) const
void PrintElement(G4int Z) const
void PrintG4Element(const G4String &)
G4Material * BuildMaterialWithNewDensity(const G4String &name, const G4String &basename, G4double density=0.0, G4double temp=CLHEP::STP_Temperature, G4double pres=CLHEP::STP_Pressure)
static const G4double A[nN]
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
void SetVerbose(G4int val)
G4NistElementBuilder * elmBuilder
G4NistMessenger * messenger
G4double GetTemperature() const
std::vector< G4Element * > G4ElementTable
const G4String & GetName() const
static G4ElementTable * GetElementTable()