ATLAS Offline Software
G4AtlasUserWorkerThreadInitialization.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef G4ATLASALG_G4ATLASUSERWORKERTHREADINITIALIZATION_H
6 #define G4ATLASALG_G4ATLASUSERWORKERTHREADINITIALIZATION_H
7 
8 // Hide multi-threading classes from builds without G4MT
9 #include "G4Types.hh"
10 #ifdef G4MULTITHREADED
11 
12 #include "G4UserWorkerThreadInitialization.hh"
13 
26 class G4AtlasUserWorkerThreadInitialization : public G4UserWorkerThreadInitialization {
27 
28 public:
29 
31  G4WorkerRunManager* CreateWorkerRunManager() const;
32 
34  void SetQuietMode(bool quietMode) {
35  m_quietMode = quietMode;
36  }
37 
38 private:
39  bool m_quietMode{false};
40 
41 }; // class G4AtlasUserWorkerThreadInitialization
42 
43 #endif // G4MULTITHREADED
44 
45 #endif