5 #ifndef G4ATLASALG_G4ATLASWORKERRUNMANAGER_H
6 #define G4ATLASALG_G4ATLASWORKERRUNMANAGER_H
10 #ifdef G4MULTITHREADED
12 #include "GaudiKernel/ToolHandle.h"
13 #include "GaudiKernel/ServiceHandle.h"
15 #include "G4WorkerRunManager.hh"
24 class G4AtlasWorkerRunManager :
public G4WorkerRunManager,
public AthMessaging {
29 static G4AtlasWorkerRunManager* GetG4AtlasWorkerRunManager();
36 bool ProcessEvent(G4Event*
event);
39 void RunTermination() override final;
44 void SetDetGeoSvc(
const std::
string& typeAndName) {
45 m_detGeoSvc.setTypeAndName(typeAndName);
49 void SetFastSimMasterTool(
const std::string& typeAndName) {
50 m_fastSimTool.setTypeAndName(typeAndName);
54 void SetQuietMode(
bool quietMode) {
55 m_quietMode = quietMode;
62 void InitializeGeometry() override final;
65 void InitializePhysics() override final;
70 G4AtlasWorkerRunManager();
73 void CommandLog(
int returnCode,
const std::
string& commandString)
const;
84 bool m_quietMode{
true};
88 #endif // G4MULTITHREADED