ATLAS Offline Software
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
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. More...
 
virtual StatusCode fillUserAction (G4AtlasUserActions &actionLists) override final
 Fill the user action lists. More...
 

Protected Member Functions

virtual std::unique_ptr< ActsGeantFollowermakeAndFillAction (G4UA::G4AtlasUserActions &) override final
 Create an action for this thread. More...
 

Protected Attributes

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

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.

Member Function Documentation

◆ fillUserAction()

virtual StatusCode G4UA::UserActionToolBase< ActsGeantFollower >::fillUserAction ( G4AtlasUserActions actionLists)
inlinefinaloverridevirtualinherited

Fill the user action lists.

Definition at line 45 of file UserActionToolBase.h.

46  {
47  auto myAction = makeAndFillAction(actionLists);
48  if(myAction == nullptr) {
49  ATH_MSG_ERROR( "Failed to construct user action in " << name() );
50  return StatusCode::FAILURE;
51  }
52  m_actions.set( std::move(myAction) );
53  return StatusCode::SUCCESS;
54  }

◆ 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 }

Member Data Documentation

◆ m_actions

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

Thread-specific storage of the user action.

Definition at line 63 of file UserActionToolBase.h.


The documentation for this class was generated from the following files:
G4UA::ThreadSpecificUserAction::set
void set(std::unique_ptr< ActionType > action)
Assign the object of the current thread.
Definition: ThreadSpecificUserAction.h:61
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
G4UA::UserActionToolBase< ActsGeantFollower >::m_actions
ThreadSpecificUserAction< ActsGeantFollower > m_actions
Thread-specific storage of the user action.
Definition: UserActionToolBase.h:63
test_pyathena.parent
parent
Definition: test_pyathena.py:15
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
G4UA::G4AtlasUserActions::runActions
std::vector< G4UserRunAction * > runActions
Definition: IUserActionTool.h:33
G4UA::UserActionToolBase< ActsGeantFollower >::makeAndFillAction
virtual std::unique_ptr< ActsGeantFollower > makeAndFillAction(G4AtlasUserActions &actionLists)=0
Make the action and push onto the lists.
G4UA::UserActionToolBase< ActsGeantFollower >
python.CaloScaleNoiseConfig.action
action
Definition: CaloScaleNoiseConfig.py:77
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
G4UA::G4AtlasUserActions::eventActions
std::vector< G4UserEventAction * > eventActions
Definition: IUserActionTool.h:34
G4UA::G4AtlasUserActions::steppingActions
std::vector< G4UserSteppingAction * > steppingActions
Definition: IUserActionTool.h:36