ATLAS Offline Software
Loading...
Searching...
No Matches
G4AtlasSteppingAction.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef G4ATLASTOOLS__G4UA_G4ATLASSTEPPINGACTION_H
6#define G4ATLASTOOLS__G4UA_G4ATLASSTEPPINGACTION_H
7
8// System includes
9#include <vector>
10
11// Geant4 includes
12#include "G4UserSteppingAction.hh"
13
14
15namespace G4UA
16{
17
28 class G4AtlasSteppingAction : public G4UserSteppingAction
29 {
30
31 public:
32
35
39 void UserSteppingAction(const G4Step* step) override final;
40
42 void addAction(G4UserSteppingAction* action);
43
45 std::vector<G4UserSteppingAction*>& getActions(){ return m_actions; };
46
47 private:
48
50 std::vector<G4UserSteppingAction*> m_actions;
51
52 }; // class G4AtlasSteppingAction
53
54} // namespace G4UA
55
56#endif
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 * > & getActions()
Return the actions vector.
std::vector< G4UserSteppingAction * > m_actions
List of ATLAS stepping actions.