ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
G4UA::G4AtlasSteppingAction Class Reference

Atlas subclass of the G4 stepping action. More...

#include <G4AtlasSteppingAction.h>

Inheritance diagram for G4UA::G4AtlasSteppingAction:
Collaboration diagram for G4UA::G4AtlasSteppingAction:

Public Member Functions

 G4AtlasSteppingAction ()
 Constructor. More...
 
void UserSteppingAction (const G4Step *step) override final
 Geant4 method for processing one step. More...
 
void addAction (G4UserSteppingAction *action)
 Add one action to the list. More...
 
std::vector< G4UserSteppingAction * > & getActions ()
 Return the actions vector. More...
 

Private Attributes

std::vector< G4UserSteppingAction * > m_actions
 List of ATLAS stepping actions. More...
 

Detailed Description

Atlas subclass of the G4 stepping action.

This object maintains a list of custom actions and when invoked by Geant4 will forward the call to each of them in turn.

Todo:
TODO lifetime management of wrapper actions.
Author
Steve Farrell Steve.nosp@m.n.Fa.nosp@m.rrell.nosp@m.@cer.nosp@m.n.ch

Definition at line 28 of file G4AtlasSteppingAction.h.

Constructor & Destructor Documentation

◆ G4AtlasSteppingAction()

G4UA::G4AtlasSteppingAction::G4AtlasSteppingAction ( )

Constructor.

Definition at line 14 of file G4AtlasSteppingAction.cxx.

15  {
16  }

Member Function Documentation

◆ addAction()

void G4UA::G4AtlasSteppingAction::addAction ( G4UserSteppingAction *  action)

Add one action to the list.

Definition at line 32 of file G4AtlasSteppingAction.cxx.

33  {
34  m_actions.push_back(action);
35  }

◆ getActions()

std::vector<G4UserSteppingAction*>& G4UA::G4AtlasSteppingAction::getActions ( )
inline

Return the actions vector.

Definition at line 45 of file G4AtlasSteppingAction.h.

45 { return m_actions; };

◆ UserSteppingAction()

void G4UA::G4AtlasSteppingAction::UserSteppingAction ( const G4Step *  step)
finaloverride

Geant4 method for processing one step.

This method will forward the call onto each of the actions in its private list.

Definition at line 21 of file G4AtlasSteppingAction.cxx.

22  {
23  // Loop over my actions and apply each one in turn
24  for(auto action : m_actions){
25  action->UserSteppingAction(step);
26  }
27  }

Member Data Documentation

◆ m_actions

std::vector<G4UserSteppingAction*> G4UA::G4AtlasSteppingAction::m_actions
private

List of ATLAS stepping actions.

Definition at line 50 of file G4AtlasSteppingAction.h.


The documentation for this class was generated from the following files:
G4UA::G4AtlasSteppingAction::m_actions
std::vector< G4UserSteppingAction * > m_actions
List of ATLAS stepping actions.
Definition: G4AtlasSteppingAction.h:45
python.CaloScaleNoiseConfig.action
action
Definition: CaloScaleNoiseConfig.py:77
LArCellBinning.step
step
Definition: LArCellBinning.py:158