50 G4tgrMaterialFactory::G4tgrMaterialFactory()
69 G4mstgrisot::iterator isotcite;
70 for( isotcite = theG4tgrIsotopes.begin();
71 isotcite != theG4tgrIsotopes.end(); isotcite++)
73 delete (*isotcite).second;
75 theG4tgrIsotopes.clear();
77 G4mstgrelem::iterator elemcite;
78 for( elemcite = theG4tgrElements.begin();
79 elemcite != theG4tgrElements.end(); elemcite++)
81 delete (*elemcite).second;
83 theG4tgrElements.clear();
85 G4mstgrmate::iterator matcite;
86 for( matcite = theG4tgrMaterials.begin();
87 matcite != theG4tgrMaterials.end(); matcite++)
89 delete (*matcite).second;
91 theG4tgrMaterials.clear();
103 ErrorAlreadyExists(
"isotope", wl );
107 theG4tgrIsotopes[isot->
GetName()] = isot;
119 ErrorAlreadyExists(
"element", wl );
123 theG4tgrElements[elem->
GetName()] = elem;
136 ErrorAlreadyExists(
"element", wl );
140 theG4tgrElements[elem->
GetName()] = elem;
153 G4cout <<
" G4tgrMaterialFactory::AddMaterialSimple" << wl[1] <<
G4endl;
160 ErrorAlreadyExists(
"material simple", wl );
166 theG4tgrMaterials[ mate->
GetName() ] = mate;
180 G4cout <<
" G4tgrMaterialFactory::AddMaterialMixture " << wl[1] <<
G4endl;
187 ErrorAlreadyExists(
"material mixture", wl );
194 theG4tgrMaterials[ mate->
GetName() ] = mate;
206 G4cout <<
" G4tgrMaterialFactory::FindIsotope() - " << name <<
G4endl;
210 G4mstgrisot::const_iterator cite;
211 cite = theG4tgrIsotopes.find( name );
212 if( cite == theG4tgrIsotopes.end() )
221 G4cout <<
" G4tgrIsotope found: "
222 << ( (*cite).second )->GetName() <<
G4endl;
225 return (*cite).second;
236 G4cout <<
" G4tgrMaterialFactory::FindElement() - " << name <<
G4endl;
239 G4mstgrelem::const_iterator cite;
240 cite = theG4tgrElements.find( name );
241 if( cite == theG4tgrElements.end() )
251 G4cout <<
" G4tgrElement found: "
252 << ( (*cite).second )->GetName() <<
G4endl;
255 return (*cite).second;
266 G4cout <<
" G4tgrMaterialFactory::FindMaterial() - " << name <<
G4endl;
269 G4mstgrmate::const_iterator cite;
270 cite = theG4tgrMaterials.find( name );
271 if( cite == theG4tgrMaterials.end() )
277 return (*cite).second;
285 G4cout <<
" @@@@@@@@@@@@@@@@ DUMPING G4tgrIsotope's List " <<
G4endl;
286 G4mstgrisot::const_iterator cite;
287 for(cite = theG4tgrIsotopes.begin(); cite != theG4tgrIsotopes.end(); cite++)
289 G4cout <<
" ISOT: " << (*cite).second->GetName() <<
G4endl;
297 G4cout <<
" @@@@@@@@@@@@@@@@ DUMPING G4tgrElement's List " <<
G4endl;
298 G4mstgrelem::const_iterator cite;
299 for(cite = theG4tgrElements.begin(); cite != theG4tgrElements.end(); cite++)
301 G4cout <<
" ELEM: " << (*cite).second->GetName() <<
G4endl;
309 G4cout <<
" @@@@@@@@@@@@@@@@ DUMPING G4tgrMaterial's List " <<
G4endl;
310 G4mstgrmate::const_iterator cite;
311 for(cite = theG4tgrMaterials.begin(); cite != theG4tgrMaterials.end(); cite++)
321 void G4tgrMaterialFactory::
322 ErrorAlreadyExists(
const G4String&
object,
323 const std::vector<G4String>& wl,
const G4bool bNoRepeating )