ATLAS Offline Software
Loading...
Searching...
No Matches
ActsGeantFollowerTool Class Reference

Tool which manages the ActsGeantFollower action. More...

#include <ActsGeantFollowerTool.h>

Inheritance diagram for ActsGeantFollowerTool:
Collaboration diagram for ActsGeantFollowerTool:

Public Member Functions

 ActsGeantFollowerTool (const std::string &type, const std::string &name, const IInterface *parent)
 Standard constructor.
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< ActsGeantFollowermakeAndFillAction (G4UA::G4AtlasUserActions &) override final
 Create an action for this thread.

Protected Attributes

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

Detailed Description

Tool which manages the ActsGeantFollower action.

Definition at line 18 of file ActsGeantFollowerTool.h.

Constructor & Destructor Documentation

◆ ActsGeantFollowerTool()

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

Standard constructor.

Definition at line 7 of file ActsGeantFollowerTool.cxx.

10 : G4UA::UserActionToolBase<ActsGeantFollower>(type, name, parent)
11{}

Member Function Documentation

◆ BeginOfAthenaEvent()

StatusCode G4UA::UserActionToolBase< ActsGeantFollower >::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< ActsGeantFollower >::EndOfAthenaEvent ( HitCollectionMap & )
inlineoverrideinherited

Calls EndOfAthenaEvent.

Definition at line 61 of file UserActionToolBase.h.

61{return StatusCode::SUCCESS;};

◆ fillUserAction()

virtual StatusCode G4UA::UserActionToolBase< ActsGeantFollower >::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< ActsGeantFollower > makeAndFillAction(G4AtlasUserActions &actionLists)=0

◆ makeAndFillAction()

std::unique_ptr< ActsGeantFollower > ActsGeantFollowerTool::makeAndFillAction ( G4UA::G4AtlasUserActions & actionList)
finaloverrideprotectedvirtual

Create an action for this thread.

Implements G4UA::UserActionToolBase< ActsGeantFollower >.

Definition at line 14 of file ActsGeantFollowerTool.cxx.

15{
16 ATH_MSG_DEBUG("Constructing a GeantFollower action");
17 auto action = std::make_unique<ActsGeantFollower>();
18 actionList.runActions.push_back( action.get() );
19 actionList.eventActions.push_back( action.get() );
20 actionList.steppingActions.push_back( action.get() );
21 return action;
22}
#define ATH_MSG_DEBUG(x)
std::vector< G4UserSteppingAction * > steppingActions
std::vector< G4UserEventAction * > eventActions
std::vector< G4UserRunAction * > runActions

Member Data Documentation

◆ m_actions

ThreadSpecificUserAction<ActsGeantFollower> G4UA::UserActionToolBase< ActsGeantFollower >::m_actions
protectedinherited

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: