79G4NistManager::G4NistManager()
92 for(
G4int j=1; j<101; ++j) {
94 POWERA27[j] = std::pow(A,0.27);
95 LOGAZ[j] = std::log(A);
107 size_t nmat = theMaterialTable->size();
109 for(i=0; i<nmat; i++) {
110 if((*theMaterialTable)[i]) {
delete (*theMaterialTable)[i]; }
114 size_t nelm = theElementTable->size();
115 for(i=0; i<nelm; i++) {
116 if((*theElementTable)[i]) {
delete (*theElementTable)[i]; }
120 size_t niso = theIsotopeTable->size();
121 for(i=0; i<niso; i++) {
122 if((*theIsotopeTable)[i]) {
delete (*theIsotopeTable)[i]; }
142 G4cout <<
"G4NistManager::BuildMaterialWithNewDensity ERROR: " <<
G4endl;
143 G4cout <<
" New material <" << name <<
"> cannot be built because material"
144 <<
" with the same name already exist" <<
G4endl;
145 G4Exception(
"G4NistManager::BuildMaterialWithNewDensity()",
"mat101",
151 G4cout <<
"G4NistManager::BuildMaterialWithNewDensity ERROR: " <<
G4endl;
152 G4cout <<
" New material <" << name <<
"> cannot be built because " <<
G4endl;
153 G4cout <<
" base material <" << basename <<
"> does not exist" <<
G4endl;
154 G4Exception(
"G4NistManager::BuildMaterialWithNewDensity()",
"mat102",
184 size_t nelm = theElementTable->size();
185 for(
size_t i=0; i<nelm; i++) {
187 if ( name == elm->
GetName() ||
"all" == name) {
199 size_t nmat = theMaterialTable->size();
200 for(
size_t i=0; i<nmat; i++) {
202 if ( name == mat->
GetName() ||
"all" == name) {
std::vector< G4Element * > G4ElementTable
std::vector< G4Isotope * > G4IsotopeTable
std::vector< G4Material * > G4MaterialTable
G4DLLIMPORT std::ostream G4cout
const G4String & GetName() const
static const G4ElementTable * GetElementTable()
static const G4IsotopeTable * GetIsotopeTable()
G4double GetPressure() const
G4double GetDensity() const
static const G4MaterialTable * GetMaterialTable()
G4double GetTemperature() const
const G4String & GetName() const
void PrintElement(G4int Z)
G4int GetZ(const G4String &symb)
G4double GetAtomicMassAmu(const G4String &symb)
void PrintG4Element(const G4String &)
void PrintElement(G4int Z)
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=false)
static G4NistManager * Instance()
G4Material * BuildMaterialWithNewDensity(const G4String &name, const G4String &basename, G4double density=0.0, G4double temp=CLHEP::STP_Temperature, G4double pres=CLHEP::STP_Pressure)
void PrintG4Material(const G4String &)
void SetVerbose(G4int val)
static G4Pow * GetInstance()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)