ATLAS Offline Software
Loading...
Searching...
No Matches
G4AtlasSteppingAction.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5// Local includes
7
8namespace G4UA
9{
10
11 //---------------------------------------------------------------------------
12 // Constructor
13 //---------------------------------------------------------------------------
17
18 //---------------------------------------------------------------------------
19 // Process one step
20 //---------------------------------------------------------------------------
22 {
23 // Loop over my actions and apply each one in turn
24 for(auto action : m_actions){
25 action->UserSteppingAction(step);
26 }
27 }
28
29 //---------------------------------------------------------------------------
30 // Add one action to the action list
31 //---------------------------------------------------------------------------
32 void G4AtlasSteppingAction::addAction(G4UserSteppingAction* action)
33 {
34 m_actions.push_back(action);
35 }
36
37} // namespace G4UA
void addAction(G4UserSteppingAction *action)
Add one action to the list.
void UserSteppingAction(const G4Step *step) override final
Geant4 method for processing one step.
std::vector< G4UserSteppingAction * > m_actions
List of ATLAS stepping actions.