ATLAS Offline Software
Loading...
Searching...
No Matches
CalibrationDefaultProcessing.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef CaloG4_CalibrationDefaultProcessing_h
6#define CaloG4_CalibrationDefaultProcessing_h
7
8// Forward declarations
9class G4Run;
10class G4Step;
11class G4VSensitiveDetector;
12
13#include "G4UserEventAction.hh"
14#include "G4UserSteppingAction.hh"
16
17
18namespace G4UA
19{
20
21 namespace CaloG4
22 {
23
44 public AthMessaging, public G4UserEventAction, public G4UserSteppingAction
45 {
46
47 public:
48
51 struct Config
52 {
53 std::string SDName = "Default::Dead::Uninstrumented::Calibration::Region";
54 };
55
58
60 virtual void BeginOfEventAction(const G4Event*) override;
62 virtual void UserSteppingAction(const G4Step*) override;
63
65 G4VSensitiveDetector* GetDefaultSD() { return m_defaultSD; }
66
67 private:
68
71
74 G4VSensitiveDetector* m_defaultSD;
75
76 }; // class CalibrationDefaultProcessing
77
78 } // namespace CaloG4
79
80} // namespace G4UA
81
82#endif // CaloG4_CalibrationDefaultProcessing_h
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
virtual void BeginOfEventAction(const G4Event *) override
the BoE actions
G4VSensitiveDetector * m_defaultSD
The default sensitive detector to be applied to all G4Steps in volumes without a CalibrationSensitive...
virtual void UserSteppingAction(const G4Step *) override
the stepping action
G4VSensitiveDetector * GetDefaultSD()
Make the default sensitive detector available to other routines.
CalibrationDefaultProcessing(const Config &config)
Constructor.
Configuration options for constructing this action.