65 #ifdef G4MULTITHREADED
74 #ifdef G4MULTITHREADED
80 #ifdef G4MULTITHREADED
94 size_t nmat = theMaterialTable->size();
96 for(i=0; i<nmat; i++) {
97 if((*theMaterialTable)[i]) {
delete (*theMaterialTable)[i]; }
101 size_t nelm = theElementTable->size();
102 for(i=0; i<nelm; i++) {
103 if((*theElementTable)[i]) {
delete (*theElementTable)[i]; }
107 size_t niso = theIsotopeTable->size();
108 for(i=0; i<niso; i++) {
109 if((*theIsotopeTable)[i]) {
delete (*theIsotopeTable)[i]; }
129 G4cout <<
"G4NistManager::BuildMaterialWithNewDensity ERROR: " <<
G4endl;
130 G4cout <<
" New material <" << name <<
"> cannot be built because material"
131 <<
" with the same name already exist" <<
G4endl;
132 G4Exception(
"G4NistManager::BuildMaterialWithNewDensity()",
"mat101",
138 G4cout <<
"G4NistManager::BuildMaterialWithNewDensity ERROR: " <<
G4endl;
139 G4cout <<
" New material <" << name <<
"> cannot be built because "
141 G4cout <<
" base material <" << basename <<
"> does not exist" <<
G4endl;
142 G4Exception(
"G4NistManager::BuildMaterialWithNewDensity()",
"mat102",
172 size_t nelm = theElementTable->size();
173 for(
size_t i=0; i<nelm; i++) {
186 size_t nmat = theMaterialTable->size();
187 for(
size_t i=0; i<nmat; i++) {
212 "Attempt to instantiate G4NistManager in worker thread");
226 for(
G4int j=1; j<101; ++j) {
229 LOGAZ[j] = std::log(A);
G4NistElementBuilder * elmBuilder
static G4MaterialTable * GetMaterialTable()
G4NistMessenger * messenger
const G4String & GetName() const
void PrintElement(G4int Z) const
void PrintG4Element(const G4String &) const
std::vector< G4Isotope * > G4IsotopeTable
G4Material * BuildMaterialWithNewDensity(const G4String &name, const G4String &basename, G4double density=0.0, G4double temp=NTP_Temperature, G4double pres=CLHEP::STP_Pressure)
const G4String & GetName() const
#define G4MUTEX_INITIALIZER
static G4Pow * GetInstance()
void PrintG4Material(const G4String &) const
G4double GetAtomicMassAmu(const G4String &symb) const
std::vector< G4Element * > G4ElementTable
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=false)
double A(double temperature)
#define G4MUTEXUNLOCK(mutex)
std::vector< G4Material * > G4MaterialTable
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4double GetPressure() const
#define G4MUTEXLOCK(mutex)
G4NistMaterialBuilder * matBuilder
G4GLOB_DLL std::ostream G4cout
void SetVerbose(G4int val)
void PrintElement(G4int Z) const
G4int GetZ(const G4String &symb) const
static G4NistManager * instance
static const G4IsotopeTable * GetIsotopeTable()
G4double GetTemperature() const
static G4NistManager * Instance()
static G4ElementTable * GetElementTable()
G4double GetDensity() const