ATLAS Offline Software
ActsGeantFollower.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // This is based on https://gitlab.cern.ch/atlas/athena/-/blob/master/Tracking/TrkG4Components/TrkG4UserActions/TrkG4UserActions/GeantFollower.h
6 
7 #ifndef ActsGeantFollower_H
8 #define ActsGeantFollower_H
9 
11 #include "GaudiKernel/ToolHandle.h"
13 #include <string>
14 #include <vector>
15 
16 #include "G4UserEventAction.hh"
17 #include "G4UserRunAction.hh"
18 #include "G4UserSteppingAction.hh"
19 
20 
21 class ActsGeantFollower: public G4UserEventAction, public G4UserRunAction, public G4UserSteppingAction
22 {
23 
24 public:
25 
27  virtual void BeginOfEventAction(const G4Event*) override;
28  virtual void EndOfEventAction(const G4Event*) override;
29  virtual void BeginOfRunAction(const G4Run*) override;
30  virtual void UserSteppingAction(const G4Step*) override;
31 
32 private:
33 
34  ToolHandle<IActsGeantFollowerHelper> m_helper =
35  ToolHandle<IActsGeantFollowerHelper>("ActsGeantFollowerHelper");
36 }; // class GeantFollower
37 
38 #endif
ActsGeantFollower::m_helper
ToolHandle< IActsGeantFollowerHelper > m_helper
Definition: ActsGeantFollower.h:34
IActsGeantFollowerHelper.h
AthAlgTool.h
ActsGeantFollower::EndOfEventAction
virtual void EndOfEventAction(const G4Event *) override
Definition: ActsGeantFollower.cxx:30
ActsGeantFollower::UserSteppingAction
virtual void UserSteppingAction(const G4Step *) override
Definition: ActsGeantFollower.cxx:47
ActsGeantFollower::BeginOfRunAction
virtual void BeginOfRunAction(const G4Run *) override
Definition: ActsGeantFollower.cxx:35
ActsGeantFollower
Definition: ActsGeantFollower.h:22
ActsGeantFollower::ActsGeantFollower
ActsGeantFollower()
Definition: ActsGeantFollower.cxx:23
ActsGeantFollower::BeginOfEventAction
virtual void BeginOfEventAction(const G4Event *) override
Definition: ActsGeantFollower.cxx:25