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

Tool which manages the GeantFollowerMS action. More...

#include <GeantFollowerMSTool.h>

Inheritance diagram for G4UA::GeantFollowerMSTool:
Collaboration diagram for G4UA::GeantFollowerMSTool:

Public Member Functions

 GeantFollowerMSTool (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< GeantFollowerMSmakeAndFillAction (G4AtlasUserActions &) override final
 Create an action for this thread.

Protected Attributes

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

Private Attributes

GeantFollowerMS::Config m_config
 Configuration parameters.

Detailed Description

Tool which manages the GeantFollowerMS action.

Author
Andrea Di Simone

Definition at line 23 of file GeantFollowerMSTool.h.

Constructor & Destructor Documentation

◆ GeantFollowerMSTool()

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

Standard constructor.

Definition at line 11 of file GeantFollowerMSTool.cxx.

14 : UserActionToolBase<GeantFollowerMS>(type, name, parent)
15 {
16 declareProperty("HelperTool", m_config.helper);
17 }
GeantFollowerMS::Config m_config
Configuration parameters.
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)

Member Function Documentation

◆ BeginOfAthenaEvent()

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

Calls EndOfAthenaEvent.

Definition at line 61 of file UserActionToolBase.h.

61{return StatusCode::SUCCESS;};

◆ fillUserAction()

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

◆ makeAndFillAction()

std::unique_ptr< GeantFollowerMS > G4UA::GeantFollowerMSTool::makeAndFillAction ( G4AtlasUserActions & actionList)
finaloverrideprotectedvirtual

Create an action for this thread.

Implements G4UA::UserActionToolBase< GeantFollowerMS >.

Definition at line 20 of file GeantFollowerMSTool.cxx.

21 {
22 ATH_MSG_DEBUG("Constructing a GeantFollowerMS action");
23 auto action = std::make_unique<GeantFollowerMS>(m_config);
24 actionList.runActions.push_back( action.get() );
25 actionList.eventActions.push_back( action.get() );
26 actionList.steppingActions.push_back( action.get() );
27 return action;
28 }
#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.

◆ m_config

GeantFollowerMS::Config G4UA::GeantFollowerMSTool::m_config
private

Configuration parameters.

Definition at line 34 of file GeantFollowerMSTool.h.


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