ATLAS Offline Software
Loading...
Searching...
No Matches
GeantFollower.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
6// GeantFollower.h, (c) ATLAS Detector software
8
9#ifndef GeantFollower_H
10#define GeantFollower_H
11
12#include "GaudiKernel/ToolHandle.h"
14#include <string>
15#include <vector>
16
21
22#include "G4UserEventAction.hh"
23#include "G4UserRunAction.hh"
24#include "G4UserSteppingAction.hh"
25
26namespace Trk {
27 class IGeantFollowerHelper;
28}
29
30namespace G4UA
31{
32
33 class GeantFollower: public G4UserEventAction, public G4UserRunAction, public G4UserSteppingAction
34 {
35
36 public:
37
38 struct Config
39 {
41 ToolHandle<Trk::IGeantFollowerHelper> helper =
42 ToolHandle<Trk::IGeantFollowerHelper>("Trk::GeantFollowerHelper/GeantFollowerHelper");
43 };
44
46 virtual void BeginOfEventAction(const G4Event*) override;
47 virtual void EndOfEventAction(const G4Event*) override;
48 virtual void BeginOfRunAction(const G4Run*) override;
49 virtual void UserSteppingAction(const G4Step*) override;
50
51 private:
52
54
56
57 }; // class GeantFollower
58
59} // namespace G4UA
60
61#endif
Trk::IGeantFollowerHelper * m_helperPointer
virtual void EndOfEventAction(const G4Event *) override
GeantFollower(const Config &config)
virtual void BeginOfEventAction(const G4Event *) override
virtual void UserSteppingAction(const G4Step *) override
virtual void BeginOfRunAction(const G4Run *) override
Ensure that the ATLAS eigen extensions are properly loaded.
ToolHandle< Trk::IGeantFollowerHelper > helper
FIXME: Public tool handle. See ATLASSIM-3561.