ATLAS Offline Software
G4AtlasUserWorkerThreadInitialization.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // Hide multi-threading classes from builds without G4MT
6 #include "G4Types.hh"
7 #ifdef G4MULTITHREADED
8 
11 
12 G4WorkerRunManager* G4AtlasUserWorkerThreadInitialization::
13 CreateWorkerRunManager() const
14 {
15  // TODO: maybe better to just use the pseudo-singleton mechanism
16  auto* workerRunManager = G4AtlasWorkerRunManager::GetG4AtlasWorkerRunManager();
17  workerRunManager->SetDetGeoSvc(m_detGeoSvcName);
18  workerRunManager->SetFastSimMasterTool(m_fastSimToolName);
19  workerRunManager->SetQuietMode(m_quietMode);
20  return workerRunManager;
21 }
22 
23 #endif // G4MULTITHREADED
G4AtlasUserWorkerThreadInitialization.h
G4AtlasWorkerRunManager.h