ATLAS Offline Software
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
9 class G4Run;
10 class G4Step;
11 class G4VSensitiveDetector;
12 
13 #include "G4UserEventAction.hh"
14 #include "G4UserSteppingAction.hh"
16 
17 
18 namespace 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
G4UA::CaloG4::CalibrationDefaultProcessing::GetDefaultSD
G4VSensitiveDetector * GetDefaultSD()
Make the default sensitive detector available to other routines.
Definition: CalibrationDefaultProcessing.h:65
G4UA
for nSW
Definition: CalibrationDefaultProcessing.h:19
G4UA::CaloG4::CalibrationDefaultProcessing::UserSteppingAction
virtual void UserSteppingAction(const G4Step *) override
the stepping action
config
Definition: PhysicsAnalysis/AnalysisCommon/AssociationUtils/python/config.py:1
G4UA::CaloG4::CalibrationDefaultProcessing::Config
Configuration options for constructing this action.
Definition: CalibrationDefaultProcessing.h:52
G4UA::CaloG4::CalibrationDefaultProcessing::Config::SDName
std::string SDName
Definition: CalibrationDefaultProcessing.h:53
AthMessaging
Class to provide easy MsgStream access and capabilities.
Definition: AthMessaging.h:55
CaloG4
Definition: EscapedEnergyRegistry.h:21
G4UA::CaloG4::CalibrationDefaultProcessing::BeginOfEventAction
virtual void BeginOfEventAction(const G4Event *) override
the BoE actions
G4UA::CaloG4::CalibrationDefaultProcessing::m_defaultSD
G4VSensitiveDetector * m_defaultSD
The default sensitive detector to be applied to all G4Steps in volumes without a CalibrationSensitive...
Definition: CalibrationDefaultProcessing.h:74
G4UA::CaloG4::CalibrationDefaultProcessing
User action for default processing of calibration energy deposits.
Definition: CalibrationDefaultProcessing.h:45
G4UA::CaloG4::CalibrationDefaultProcessing::CalibrationDefaultProcessing
CalibrationDefaultProcessing(const Config &config)
Constructor.
AthMessaging.h
G4UA::CaloG4::CalibrationDefaultProcessing::m_config
Config m_config
Configuration options.
Definition: CalibrationDefaultProcessing.h:70