ATLAS Offline Software
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 
22 #include "G4UserEventAction.hh"
23 #include "G4UserRunAction.hh"
24 #include "G4UserSteppingAction.hh"
25 
26 namespace Trk {
27  class IGeantFollowerHelper;
28 }
29 
30 namespace 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 
45  GeantFollower(const Config& config);
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
G4UA::GeantFollower::EndOfEventAction
virtual void EndOfEventAction(const G4Event *) override
Definition: GeantFollower.cxx:35
G4UA::GeantFollower::GeantFollower
GeantFollower(const Config &config)
Definition: GeantFollower.cxx:25
G4UA::GeantFollower
Definition: GeantFollower.h:34
G4UA
for nSW
Definition: CalibrationDefaultProcessing.h:19
G4UA::GeantFollower::Config::helper
ToolHandle< Trk::IGeantFollowerHelper > helper
FIXME: Public tool handle. See ATLASSIM-3561.
Definition: GeantFollower.h:41
G4UA::GeantFollower::m_config
Config m_config
Definition: GeantFollower.h:53
G4UA::GeantFollower::UserSteppingAction
virtual void UserSteppingAction(const G4Step *) override
Definition: GeantFollower.cxx:53
config
Definition: PhysicsAnalysis/AnalysisCommon/AssociationUtils/python/config.py:1
Trk::IGeantFollowerHelper
Definition: IGeantFollowerHelper.h:26
G4UA::GeantFollower::BeginOfRunAction
virtual void BeginOfRunAction(const G4Run *) override
Definition: GeantFollower.cxx:40
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
IGeantFollowerHelper.h
G4UA::GeantFollower::Config
Definition: GeantFollower.h:39
G4UA::GeantFollower::BeginOfEventAction
virtual void BeginOfEventAction(const G4Event *) override
Definition: GeantFollower.cxx:30
G4UA::GeantFollower::m_helperPointer
Trk::IGeantFollowerHelper * m_helperPointer
Definition: GeantFollower.h:55