![]() |
ATLAS Offline Software
|
Collects the G4 steps and writes out RecordedMaterialTrackCollection to a store gate. More...
#include <MaterialTrackRecorder.h>
Classes | |
| struct | Config |
Public Member Functions | |
| MaterialTrackRecorder (const Config &config) | |
| virtual void | BeginOfEventAction (const G4Event *) override |
| virtual void | EndOfEventAction (const G4Event *) override |
| virtual void | BeginOfRunAction (const G4Run *) override |
| virtual void | UserSteppingAction (const G4Step *) override |
| 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. | |
Private Member Functions | |
| Acts::Vector3 | convertPosition (const G4ThreeVector &g4vec) |
| Useful fuction for position coversion. | |
| Acts::Vector3 | convertDirection (const G4ThreeVector &g4vec) |
| Useful fuction for direction coversion. | |
| void | initMessaging () const |
| Initialize our message level and MessageSvc. | |
Private Attributes | |
| RecordedMaterialTrackCollection * | m_rmtCollection {nullptr} |
| Pointer to the collection, non-owning. | |
| Config | m_cfg |
| The config class. | |
| 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) | |
Static Private Attributes | |
| static constexpr double | s_convertLength = Acts::UnitConstants::mm / CLHEP::mm |
| Conversion constants. | |
| static constexpr double | s_convertDensity |
Collects the G4 steps and writes out RecordedMaterialTrackCollection to a store gate.
Handles the MaterialTrackRecorder G4UA.
It writes out a MaterialTrack which is usually generated from MaterialTrackRecorder G4UA
Definition at line 34 of file MaterialTrackRecorder.h.
| ActsTrk::MaterialTrackRecorder::MaterialTrackRecorder | ( | const Config & | config | ) |
Definition at line 20 of file MaterialTrackRecorder.cxx.
|
overridevirtual |
Definition at line 25 of file MaterialTrackRecorder.cxx.
|
overridevirtual |
Definition at line 65 of file MaterialTrackRecorder.cxx.
|
inlineprivate |
Useful fuction for direction coversion.
Definition at line 68 of file MaterialTrackRecorder.h.
|
inlineprivate |
Useful fuction for position coversion.
Definition at line 63 of file MaterialTrackRecorder.h.
|
overridevirtual |
Definition at line 60 of file MaterialTrackRecorder.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 167 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 182 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.
|
overridevirtual |
Definition at line 71 of file MaterialTrackRecorder.cxx.
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
private |
The config class.
Definition at line 60 of file MaterialTrackRecorder.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 |
Pointer to the collection, non-owning.
Definition at line 53 of file MaterialTrackRecorder.h.
|
staticconstexprprivate |
Definition at line 56 of file MaterialTrackRecorder.h.
|
staticconstexprprivate |
Conversion constants.
Definition at line 55 of file MaterialTrackRecorder.h.