ATLAS Offline Software
|
User action for pre/post tracking truth handling. More...
#include <AthenaTrackingAction.h>
Public Member Functions | |
AthenaTrackingAction (MSG::Level lvl, int secondarySavingLevel, int subDetVolLevel) | |
Constructor. More... | |
virtual void | PreUserTrackingAction (const G4Track *) override final |
Called before tracking a new particle. More... | |
virtual void | PostUserTrackingAction (const G4Track *) override final |
Called after tracking a particle. More... | |
bool | msgLvl (const MSG::Level lvl) const |
Test the output level. More... | |
MsgStream & | msg () const |
The standard message stream. More... | |
MsgStream & | msg (const MSG::Level lvl) const |
The standard message stream. More... | |
void | setLevel (MSG::Level lvl) |
Change the current logging level. More... | |
Private Member Functions | |
void | initMessaging () const |
Initialize our message level and MessageSvc. More... | |
Private Attributes | |
int | m_secondarySavingLevel |
The saving level for secondaries. More... | |
int | m_subDetVolLevel |
The level in the G4 volume hierarchy at which can we find the sub-detector name. More... | |
std::string | m_nm |
Message source name. More... | |
boost::thread_specific_ptr< MsgStream > | m_msg_tls |
MsgStream instance (a std::cout like with print-out levels) More... | |
std::atomic< IMessageSvc * > | m_imsg { nullptr } |
MessageSvc pointer. More... | |
std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
Current logging level. More... | |
std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
Messaging initialized (initMessaging) More... | |
User action for pre/post tracking truth handling.
Definition at line 18 of file AthenaTrackingAction.h.
G4UA::AthenaTrackingAction::AthenaTrackingAction | ( | MSG::Level | lvl, |
int | secondarySavingLevel, | ||
int | subDetVolLevel | ||
) |
|
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 164 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 179 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.
|
finaloverridevirtual |
Called after tracking a particle.
Here we reset the AtlasTrajectory if it was created.
Definition at line 77 of file AthenaTrackingAction.cxx.
|
finaloverridevirtual |
Called before tracking a new particle.
If the track meets certain conditions, we save it in the AtlasG4EventUserInfo and possibly construct a new AtlasTrajectory which will be used for writing out truth particles later.
Definition at line 36 of file AthenaTrackingAction.cxx.
|
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.
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
mutableprivateinherited |
MessageSvc pointer.
Definition at line 135 of file AthMessaging.h.
|
mutableprivateinherited |
Current logging level.
Definition at line 138 of file AthMessaging.h.
|
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 |
The saving level for secondaries.
Definition at line 41 of file AthenaTrackingAction.h.
|
private |
The level in the G4 volume hierarchy at which can we find the sub-detector name.
Definition at line 43 of file AthenaTrackingAction.h.