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

#include <SyncEventActionTool.h>

Inheritance diagram for G4UA::SyncEventActionTool:
Collaboration diagram for G4UA::SyncEventActionTool:

Public Member Functions

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

Protected Attributes

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

Detailed Description

Definition at line 15 of file SyncEventActionTool.h.

Member Function Documentation

◆ BeginOfAthenaEvent()

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

Calls EndOfAthenaEvent.

Definition at line 61 of file UserActionToolBase.h.

61{return StatusCode::SUCCESS;};

◆ fillUserAction()

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

◆ makeAndFillAction()

std::unique_ptr< SyncEventAction > G4UA::SyncEventActionTool::makeAndFillAction ( G4AtlasUserActions & userActions)
finaloverrideprotectedvirtual

Create the action for the current thread.

Implements G4UA::UserActionToolBase< SyncEventAction >.

Definition at line 12 of file SyncEventActionTool.cxx.

12 {
13 auto action = std::make_unique<SyncEventAction>();
14 userActions.eventActions.push_back(action.get());
15 return action;
16}

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: