39 if (fInstance ==
nullptr)
51G4ParallelWorldProcessStore::G4ParallelWorldProcessStore() =
default;
62 for (
const auto& [process, name] : *fInstance)
66 if(name == parallelWorldName)
73 ED <<
"G4ParallelWorldProcess (" << proc <<
") has the world volume (" << name
74 <<
"). It is inconsistent with (" << parallelWorldName <<
").";
79 (*fInstance)[proc] = parallelWorldName;
84 for(
auto& [process, name] : *fInstance)
86 process->SetParallelWorld(name);
92 for(
const auto& [proc, name] : *fInstance)
94 if (name == parallelWorldName)
return proc;
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
static G4ParallelWorldProcessStore * GetInstance()
virtual ~G4ParallelWorldProcessStore()
void SetParallelWorld(G4ParallelWorldProcess *proc, const G4String ¶llelWorldName)
G4ParallelWorldProcess * GetProcess(const G4String ¶llelWorldName)
static G4ParallelWorldProcessStore * GetInstanceIfExist()