47G4ParallelWorldProcessStore::G4ParallelWorldProcessStore()
59 std::map<G4ParallelWorldProcess*,G4String>::iterator itr;
60 for(itr=fInstance->begin();itr!=fInstance->end();itr++)
64 if(itr->second==parallelWorldName)
71 ED <<
"G4ParallelWorldProcess (" << proc <<
") has the world volume ("
72 << itr->second <<
"). It is inconsistent with (" << parallelWorldName <<
").";
73 G4Exception(
"G4ParallelWorldProcessStore::SetParallelWorld",
"ProcScore0101",
78 (*fInstance)[proc] = parallelWorldName;
83 std::map<G4ParallelWorldProcess*,G4String>::iterator itr;
84 for(itr=fInstance->begin();itr!=fInstance->end();itr++)
90 std::map<G4ParallelWorldProcess*,G4String>::iterator itr;
91 for(itr=fInstance->begin();itr!=fInstance->end();itr++)
92 {
if(itr->second==parallelWorldName)
return itr->first; }
97{ fInstance->clear(); }
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
static G4ParallelWorldProcessStore * GetInstance()
virtual ~G4ParallelWorldProcessStore()
G4ParallelWorldProcess * GetProcess(G4String parallelWorldName)
void SetParallelWorld(G4ParallelWorldProcess *proc, G4String parallelWorldName)
static G4ParallelWorldProcessStore * GetInstanceIfExist()