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

Tool which creates and manages the HyperspaceCatcher user action. More...

#include <HyperspaceCatcherTool.h>

Inheritance diagram for G4UA::HyperspaceCatcherTool:
Collaboration diagram for G4UA::HyperspaceCatcherTool:

Public Member Functions

 HyperspaceCatcherTool (const std::string &type, const std::string &name, const IInterface *parent)
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< HyperspaceCatchermakeAndFillAction (G4AtlasUserActions &) override final
 Make the action and push onto the lists.

Protected Attributes

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

Private Attributes

HyperspaceCatcher::Config m_config

Detailed Description

Tool which creates and manages the HyperspaceCatcher user action.

Definition at line 16 of file HyperspaceCatcherTool.h.

Constructor & Destructor Documentation

◆ HyperspaceCatcherTool()

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

Definition at line 10 of file HyperspaceCatcherTool.cxx.

13 : UserActionToolBase<HyperspaceCatcher>(type, name, parent)
14 {
15 declareProperty("TreatmentLevel", m_config.treatmentLevel);
16 declareProperty("KillAfter", m_config.killAfter);
17 }
HyperspaceCatcher::Config m_config
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)

Member Function Documentation

◆ BeginOfAthenaEvent()

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

Calls EndOfAthenaEvent.

Definition at line 61 of file UserActionToolBase.h.

61{return StatusCode::SUCCESS;};

◆ fillUserAction()

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

◆ makeAndFillAction()

std::unique_ptr< HyperspaceCatcher > G4UA::HyperspaceCatcherTool::makeAndFillAction ( G4AtlasUserActions & actionLists)
finaloverrideprotectedvirtual

Make the action and push onto the lists.

Implements G4UA::UserActionToolBase< HyperspaceCatcher >.

Definition at line 20 of file HyperspaceCatcherTool.cxx.

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

HyperspaceCatcher::Config G4UA::HyperspaceCatcherTool::m_config
private

Definition at line 30 of file HyperspaceCatcherTool.h.


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