ATLAS Offline Software
Loading...
Searching...
No Matches
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
21class ActsGeantFollower: public G4UserEventAction, public G4UserRunAction, public G4UserSteppingAction
22{
23
24public:
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
32private:
33
34 ToolHandle<IActsGeantFollowerHelper> m_helper =
35 ToolHandle<IActsGeantFollowerHelper>("ActsGeantFollowerHelper");
36}; // class GeantFollower
37
38#endif
virtual void EndOfEventAction(const G4Event *) override
ToolHandle< IActsGeantFollowerHelper > m_helper
virtual void BeginOfEventAction(const G4Event *) override
virtual void BeginOfRunAction(const G4Run *) override
virtual void UserSteppingAction(const G4Step *) override