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

Tool which manages the PhotonKiller user action. More...

#include <PhotonKillerTool.h>

Inheritance diagram for G4UA::PhotonKillerTool:
Collaboration diagram for G4UA::PhotonKillerTool:

Public Member Functions

 PhotonKillerTool (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< PhotonKillermakeAndFillAction (G4AtlasUserActions &) override final
 Create the action for the current thread.

Protected Attributes

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

Detailed Description

Tool which manages the PhotonKiller user action.

Definition at line 19 of file PhotonKillerTool.h.

Constructor & Destructor Documentation

◆ PhotonKillerTool()

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

Standard constructor.

Definition at line 11 of file PhotonKillerTool.cxx.

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

Member Function Documentation

◆ BeginOfAthenaEvent()

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

Calls EndOfAthenaEvent.

Definition at line 61 of file UserActionToolBase.h.

61{return StatusCode::SUCCESS;};

◆ fillUserAction()

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

◆ makeAndFillAction()

std::unique_ptr< PhotonKiller > G4UA::PhotonKillerTool::makeAndFillAction ( G4AtlasUserActions & actionList)
finaloverrideprotectedvirtual

Create the action for the current thread.

Implements G4UA::UserActionToolBase< PhotonKiller >.

Definition at line 20 of file PhotonKillerTool.cxx.

21 {
22 ATH_MSG_DEBUG("Making a PhotonKiller action");
23 auto action = std::make_unique<PhotonKiller>();
24 actionList.trackingActions.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.


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