ATLAS Offline Software
TRTSensitiveDetectorTool.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 TRT_G4_SD_TRTSENSITIVEDETECTORTOOL_H
6 #define TRT_G4_SD_TRTSENSITIVEDETECTORTOOL_H
7 
8 // Base class
10 
11 // STL headers
12 #include <string>
13 
14 class G4VSensitiveDetector;
15 
17 {
18  public:
19  // Constructor
20  TRTSensitiveDetectorTool(const std::string& type, const std::string& name, const IInterface *parent);
21 
22  virtual StatusCode SetupEvent(HitCollectionMap&) override;
23  virtual StatusCode Gather(HitCollectionMap&) override;
24 
25 protected:
26  // Make me an SD!
27  G4VSensitiveDetector* makeSD() const override final;
28 
29 };
30 
31 #endif //TRT_G4_SD_TRTSENSITIVEDETECTORTOOL_H
SensitiveDetectorBase::SetupEvent
virtual StatusCode SetupEvent() override
Beginning of an athena event.
Definition: SensitiveDetectorBase.h:70
HitCollectionMap
Small wrapper around hit collection map to facilitate accessing the hit collection.
Definition: HitCollectionMap.h:21
SensitiveDetectorBase
Common base class for tools that create and manage Geant4 sensitive detectors.
Definition: SensitiveDetectorBase.h:50
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
TRTSensitiveDetectorTool::makeSD
G4VSensitiveDetector * makeSD() const override final
Definition: TRTSensitiveDetectorTool.cxx:35
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
test_pyathena.parent
parent
Definition: test_pyathena.py:15
TRTSensitiveDetectorTool::TRTSensitiveDetectorTool
TRTSensitiveDetectorTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: TRTSensitiveDetectorTool.cxx:16
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
SensitiveDetectorBase.h
TRTSensitiveDetectorTool
Definition: TRTSensitiveDetectorTool.h:17
SensitiveDetectorBase::Gather
virtual StatusCode Gather() override
End of an athena event.
Definition: SensitiveDetectorBase.h:78