MCPcopy Create free account
hub / github.com/Geant4/geant4 / WorkerUpdateWorldVolume

Method WorkerUpdateWorldVolume

source/run/src/G4RunManagerKernel.cc:372–385  ·  view source on GitHub ↗

--------------------------------------------------------------------

Source from the content-addressed store, hash-verified

370
371// --------------------------------------------------------------------
372void G4RunManagerKernel::WorkerUpdateWorldVolume()
373{
374 G4MTRunManager* masterRM = G4MTRunManager::GetMasterRunManager();
375 G4TransportationManager* transM = G4TransportationManager::GetTransportationManager();
376 G4MTRunManager::masterWorlds_t masterWorlds = masterRM->GetMasterWorlds();
377 for (const auto& masterWorld : masterWorlds) {
378 G4VPhysicalVolume* wv = masterWorld.second;
379 G4VPhysicalVolume* pWorld =
380 G4TransportationManager::GetTransportationManager()->IsWorldExisting(wv->GetName());
381 if (pWorld == nullptr) {
382 transM->RegisterWorld(wv);
383 }
384 }
385}
386
387// --------------------------------------------------------------------
388void G4RunManagerKernel::WorkerDefineWorldVolume(G4VPhysicalVolume* worldVol,

Callers 1

Calls 3

IsWorldExistingMethod · 0.45
GetNameMethod · 0.45
RegisterWorldMethod · 0.45

Tested by

no test coverage detected