![]() |
ATLAS Offline Software
|
ATLAS custom singleton run manager. More...
#include <G4AtlasRunManager.h>
Public Member Functions | |
| virtual | ~G4AtlasRunManager () |
| bool | ProcessEvent (G4Event *event) |
| Does the work of simulating an ATLAS event. | |
| void | RunTermination () override final |
| G4 function called at end of run. | |
| void | SetDetConstructionTool (IDetectorConstructionTool *detConstruction) |
| Configure the detector construction tool. | |
| void | SetPhysListSvc (const std::string &typeAndName) |
| Configure the Physics List Tool handle. | |
| void | SetRecordFlux (bool b, std::unique_ptr< IFluxRecorder > f) |
| void | SetLogLevel (int) |
| void | SetVolumeSmartlessLevel (const std::map< std::string, double > &nameAndValue) |
| void | SetQuietMode (bool quietMode) |
| Configure the QuietMode option. | |
| bool | msgLvl (const MSG::Level lvl) const |
| Test the output level. | |
| MsgStream & | msg () const |
| The standard message stream. | |
| MsgStream & | msg (const MSG::Level lvl) const |
| The standard message stream. | |
| void | setLevel (MSG::Level lvl) |
| Change the current logging level. | |
Static Public Member Functions | |
| static G4AtlasRunManager *GetG4AtlasRunManager | ATLAS_NOT_THREAD_SAFE () |
| Retrieve the singleton instance. | |
Protected Member Functions | |
Overridden G4 init methods for customization | |
| void | Initialize () override final |
| void | InitializeGeometry () override final |
| void | InitializePhysics () override final |
Private Member Functions | |
| G4AtlasRunManager () | |
| Pure singleton private constructor. | |
| void | EndEvent () |
| void | initMessaging () const |
| Initialize our message level and MessageSvc. | |
Private Attributes | |
| bool | m_recordFlux |
| ServiceHandle< IPhysicsListSvc > | m_physListSvc |
| IDetectorConstructionTool * | m_detConstruction {nullptr} |
| std::unique_ptr< IFluxRecorder > | m_fluxRecorder |
| Interface to flux recording. | |
| std::map< std::string, double > | m_volumeSmartlessLevel |
| bool | m_quietMode {true} |
| Quiet Mode for production. | |
| std::string | m_nm |
| Message source name. | |
| boost::thread_specific_ptr< MsgStream > | m_msg_tls |
| MsgStream instance (a std::cout like with print-out levels) | |
| std::atomic< IMessageSvc * > | m_imsg { nullptr } |
| MessageSvc pointer. | |
| std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
| Current logging level. | |
| std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
| Messaging initialized (initMessaging) | |
ATLAS custom singleton run manager.
This is the run manager used for serial (not-MT) jobs.
Definition at line 28 of file G4AtlasRunManager.h.
|
inlinevirtual |
Definition at line 32 of file G4AtlasRunManager.h.
|
private |
Pure singleton private constructor.
Definition at line 22 of file G4AtlasRunManager.cxx.
|
static |
Retrieve the singleton instance.
|
private |
Definition at line 65 of file G4AtlasRunManager.cxx.
|
finaloverrideprotected |
Definition at line 39 of file G4AtlasRunManager.cxx.
|
finaloverrideprotected |
Definition at line 48 of file G4AtlasRunManager.cxx.
|
finaloverrideprotected |
Definition at line 71 of file G4AtlasRunManager.cxx.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 163 of file AthMessaging.h.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 178 of file AthMessaging.h.
|
inlineinherited |
Test the output level.
| lvl | The message level to test against |
| true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
| bool G4AtlasRunManager::ProcessEvent | ( | G4Event * | event | ) |
Does the work of simulating an ATLAS event.
Definition at line 94 of file G4AtlasRunManager.cxx.
|
finaloverride |
G4 function called at end of run.
Definition at line 118 of file G4AtlasRunManager.cxx.
|
inline |
Configure the detector construction tool.
Definition at line 44 of file G4AtlasRunManager.h.
|
inherited |
Change the current logging level.
Use this rather than msg().setLevel() for proper operation with MT.
Definition at line 28 of file AthMessaging.cxx.
|
inline |
Definition at line 54 of file G4AtlasRunManager.h.
|
inline |
Configure the Physics List Tool handle.
Definition at line 49 of file G4AtlasRunManager.h.
|
inline |
Configure the QuietMode option.
Definition at line 61 of file G4AtlasRunManager.h.
|
inline |
Definition at line 53 of file G4AtlasRunManager.h.
|
inline |
Definition at line 56 of file G4AtlasRunManager.h.
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
private |
Definition at line 85 of file G4AtlasRunManager.h.
|
private |
Interface to flux recording.
Definition at line 89 of file G4AtlasRunManager.h.
|
mutableprivateinherited |
|
mutableprivateinherited |
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
|
privateinherited |
Message source name.
Definition at line 129 of file AthMessaging.h.
|
private |
Definition at line 83 of file G4AtlasRunManager.h.
|
private |
|
private |
Definition at line 81 of file G4AtlasRunManager.h.
|
private |
Definition at line 93 of file G4AtlasRunManager.h.