ATLAS Offline Software
TestActionShowerLib.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef LARG4GENSHOWERLIB_TestActionShowerLib_H
6 #define LARG4GENSHOWERLIB_TestActionShowerLib_H
7 
9 #include "GaudiKernel/ServiceHandle.h"
10 
12 
13 // Geant4 includes
14 #include "G4UserEventAction.hh"
15 #include "G4UserRunAction.hh"
16 #include "G4UserSteppingAction.hh"
17 
18 
19 // forward declarations in namespaces
20 namespace ShowerLib {
21  class StepInfoCollection;
22 }
24 // forward declarations in global namespace
25 class EnergyCalculator;
26 class G4VSolid;
27 class G4AffineTransform;
28 
29 
30 namespace G4UA
31 {
32 
48  public G4UserEventAction, public G4UserRunAction, public G4UserSteppingAction
49  {
50 
51  public:
52 
54  virtual void BeginOfEventAction(const G4Event*) override;
55  virtual void EndOfEventAction(const G4Event*) override;
56  virtual void BeginOfRunAction(const G4Run*) override;
57  virtual void EndOfRunAction(const G4Run*) override;
58  virtual void UserSteppingAction(const G4Step*) override;
59 
60  private:
61 
64 
65  /* data members */
66 
68  G4VSolid* m_current_solid;
69  G4AffineTransform* m_current_transform;
70 
73 
82 
84 
87 
88  }; // class TestActionShowerLib
89 
90 } // namespace G4UA
91 
92 #endif // LARG4GENSHOWERLIB_TestActionShowerLib_H
G4UA::TestActionShowerLib::m_current_solid
G4VSolid * m_current_solid
Definition: TestActionShowerLib.h:68
G4UA
for nSW
Definition: CalibrationDefaultProcessing.h:19
G4UA::TestActionShowerLib::m_eventSteps
ShowerLib::StepInfoCollection * m_eventSteps
Collection of StepInfo.
Definition: TestActionShowerLib.h:86
G4UA::TestActionShowerLib::TestActionShowerLib
TestActionShowerLib()
Definition: TestActionShowerLib.cxx:27
G4UA::TestActionShowerLib::m_calculator_EMB
ServiceHandle< ILArCalculatorSvc > m_calculator_EMB
Definition: TestActionShowerLib.h:81
GenParticle_fwd.h
ShowerLib::StepInfoCollection
Class for collection of StepInfo class (G4 hits)
Definition: StepInfoCollection.h:32
G4UA::TestActionShowerLib::m_calculator_FCAL3
ServiceHandle< ILArCalculatorSvc > m_calculator_FCAL3
Definition: TestActionShowerLib.h:80
G4UA::TestActionShowerLib
Class for collecting G4 hit information.
Definition: TestActionShowerLib.h:49
G4UA::TestActionShowerLib::m_calculator_FCAL1
ServiceHandle< ILArCalculatorSvc > m_calculator_FCAL1
Definition: TestActionShowerLib.h:78
G4UA::TestActionShowerLib::BeginOfEventAction
virtual void BeginOfEventAction(const G4Event *) override
Definition: TestActionShowerLib.cxx:47
G4UA::TestActionShowerLib::m_calculator_EMECOW
ServiceHandle< ILArCalculatorSvc > m_calculator_EMECOW
Pointer to EMEC outer wheel calculator.
Definition: TestActionShowerLib.h:77
G4UA::TestActionShowerLib::EndOfRunAction
virtual void EndOfRunAction(const G4Run *) override
Definition: TestActionShowerLib.cxx:160
G4UA::TestActionShowerLib::m_calculator_FCAL2
ServiceHandle< ILArCalculatorSvc > m_calculator_FCAL2
Definition: TestActionShowerLib.h:79
G4UA::TestActionShowerLib::m_current_calculator
ServiceHandle< ILArCalculatorSvc > m_current_calculator
Definition: TestActionShowerLib.h:67
ILArCalculatorSvc.h
G4UA::TestActionShowerLib::BeginOfRunAction
virtual void BeginOfRunAction(const G4Run *) override
Definition: TestActionShowerLib.cxx:122
G4UA::TestActionShowerLib::m_evtStore
ServiceHandle< StoreGateSvc > m_evtStore
Pointer to StoreGate (event store by default)
Definition: TestActionShowerLib.h:63
G4UA::TestActionShowerLib::m_current_transform
G4AffineTransform * m_current_transform
Definition: TestActionShowerLib.h:69
G4UA::TestActionShowerLib::m_calculator_EMECIW
ServiceHandle< ILArCalculatorSvc > m_calculator_EMECIW
Pointer to EMEC inner wheel calculator.
Definition: TestActionShowerLib.h:75
ShowerLib
Namespace for the ShowerLib related classes.
Definition: LArG4GenShowerLib.h:19
G4UA::TestActionShowerLib::UserSteppingAction
virtual void UserSteppingAction(const G4Step *) override
Definition: TestActionShowerLib.cxx:170
G4UA::TestActionShowerLib::EndOfEventAction
virtual void EndOfEventAction(const G4Event *) override
Definition: TestActionShowerLib.cxx:62
StoreGateSvc.h
ServiceHandle< StoreGateSvc >