ATLAS Offline Software
Loading...
Searching...
No Matches
G4UA::FluxRecorderTool Class Reference

Tool which manages the FluxRecorder action. More...

#include <FluxRecorderTool.h>

Inheritance diagram for G4UA::FluxRecorderTool:
Collaboration diagram for G4UA::FluxRecorderTool:

Public Member Functions

 FluxRecorderTool (const std::string &type, const std::string &name, const IInterface *parent)
 Standard tool ctor.
virtual StatusCode fillUserAction (G4AtlasUserActions &actionLists) override final
 Fill the user action lists.
StatusCode BeginOfAthenaEvent (HitCollectionMap &) override
 Calls BeginOfAthenaEvent.
StatusCode EndOfAthenaEvent (HitCollectionMap &) override
 Calls EndOfAthenaEvent.

Protected Member Functions

virtual std::unique_ptr< FluxRecordermakeAndFillAction (G4AtlasUserActions &) override final
 create action for this thread

Protected Attributes

ThreadSpecificUserAction< FluxRecorderm_actions
 Thread-specific storage of the user action.

Detailed Description

Tool which manages the FluxRecorder action.

Create the FluxRecorder for each worker thread

Author
Andrea Di Simone

Definition at line 24 of file FluxRecorderTool.h.

Constructor & Destructor Documentation

◆ FluxRecorderTool()

G4UA::FluxRecorderTool::FluxRecorderTool ( const std::string & type,
const std::string & name,
const IInterface * parent )

Standard tool ctor.

Definition at line 10 of file FluxRecorderTool.cxx.

13 : UserActionToolBase<FluxRecorder>(type, name, parent)
14 {
15 }
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)

Member Function Documentation

◆ BeginOfAthenaEvent()

StatusCode G4UA::UserActionToolBase< FluxRecorder >::BeginOfAthenaEvent ( HitCollectionMap & )
inlineoverrideinherited

Calls BeginOfAthenaEvent.

Definition at line 59 of file UserActionToolBase.h.

59{return StatusCode::SUCCESS;};
abstract template utility base-class for G4 user-action tools.

◆ EndOfAthenaEvent()

StatusCode G4UA::UserActionToolBase< FluxRecorder >::EndOfAthenaEvent ( HitCollectionMap & )
inlineoverrideinherited

Calls EndOfAthenaEvent.

Definition at line 61 of file UserActionToolBase.h.

61{return StatusCode::SUCCESS;};

◆ fillUserAction()

virtual StatusCode G4UA::UserActionToolBase< FluxRecorder >::fillUserAction ( G4AtlasUserActions & actionLists)
inlinefinaloverridevirtualinherited

Fill the user action lists.

Definition at line 47 of file UserActionToolBase.h.

48 {
50 if(myAction == nullptr) {
51 ATH_MSG_ERROR( "Failed to construct user action in " << name() );
53 }
56 }
#define ATH_MSG_ERROR(x)
virtual std::unique_ptr< FluxRecorder > makeAndFillAction(G4AtlasUserActions &actionLists)=0

◆ makeAndFillAction()

std::unique_ptr< FluxRecorder > G4UA::FluxRecorderTool::makeAndFillAction ( G4AtlasUserActions & actionList)
finaloverrideprotectedvirtual

create action for this thread

Implements G4UA::UserActionToolBase< FluxRecorder >.

Definition at line 18 of file FluxRecorderTool.cxx.

19 {
20 ATH_MSG_DEBUG("Constructing a FluxRecorder action");
21 auto action = std::make_unique<FluxRecorder>();
22 actionList.runActions.push_back( action.get() );
23 actionList.eventActions.push_back( action.get() );
24 actionList.steppingActions.push_back( action.get() );
25 return action;
26 }
#define ATH_MSG_DEBUG(x)

Member Data Documentation

◆ m_actions

Thread-specific storage of the user action.

Definition at line 70 of file UserActionToolBase.h.


The documentation for this class was generated from the following files: