ATLAS Offline Software
|
User action which handles recording-envelope truth tracks. More...
#include <MCTruthSteppingAction.h>
Public Types | |
using | VolumeCollectionMap_t = std::map< std::string, std::string > |
Map of volume name to output TrackRecordCollection name. More... | |
Public Member Functions | |
MCTruthSteppingAction (const VolumeCollectionMap_t &collMap, IMessageSvc *msgSvc, MSG::Level level) | |
Construct the action with specified volumes and output collections. More... | |
virtual void | BeginOfEventAction (const G4Event *) override final |
Called at the start of each G4 event. More... | |
virtual void | UserSteppingAction (const G4Step *) override final |
Process one particle step. 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 | setupRecEnvelopes () |
Setup the list of RecordingEnvelope helpers. More... | |
void | initMessaging () const |
Initialize our message level and MessageSvc. More... | |
Private Attributes | |
bool | m_isInitialized |
Used to delay initialization until the event loop, after geo is ready. More... | |
VolumeCollectionMap_t | m_volumeCollectionMap |
Map of volume name to output collection name. More... | |
std::vector< RecordingEnvelope > | m_recordingEnvelopes |
List of RecordingEnvelope helpers to invoke. 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 which handles recording-envelope truth tracks.
This user action utilizes RecordingEnvelope objects to save truth tracks at entry/exit layers of certain configured detector layers.
Definition at line 34 of file MCTruthSteppingAction.h.
using G4UA::MCTruthSteppingAction::VolumeCollectionMap_t = std::map<std::string, std::string> |
Map of volume name to output TrackRecordCollection name.
Definition at line 42 of file MCTruthSteppingAction.h.
G4UA::MCTruthSteppingAction::MCTruthSteppingAction | ( | const VolumeCollectionMap_t & | collMap, |
IMessageSvc * | msgSvc, | ||
MSG::Level | level | ||
) |
Construct the action with specified volumes and output collections.
[in] | collMap | A map of recording envelope volume name to output TrackRecordCollection name. |
Definition at line 19 of file MCTruthSteppingAction.cxx.
|
finaloverridevirtual |
Called at the start of each G4 event.
Used to ensure that the TrackRecordCollection WriteHandles are valid.
Definition at line 64 of file MCTruthSteppingAction.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 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.
|
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.
|
private |
Setup the list of RecordingEnvelope helpers.
Definition at line 32 of file MCTruthSteppingAction.cxx.
|
finaloverridevirtual |
Process one particle step.
If the step crosses a recording envelope volume boundary, passes the step to the corresponding RecordingEnvelope to add a TrackRecord.
Definition at line 83 of file MCTruthSteppingAction.cxx.
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
mutableprivateinherited |
MessageSvc pointer.
Definition at line 135 of file AthMessaging.h.
|
private |
Used to delay initialization until the event loop, after geo is ready.
Definition at line 65 of file MCTruthSteppingAction.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 |
List of RecordingEnvelope helpers to invoke.
Definition at line 71 of file MCTruthSteppingAction.h.
|
private |
Map of volume name to output collection name.
Definition at line 68 of file MCTruthSteppingAction.h.