ATLAS Offline Software
Loading...
Searching...
No Matches
SctSensorSDTool.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/****************************************************************
6 SCT Sensitive Detector Tool
7 ****************************************************************/
8
9#ifndef SCT_G4_SD_SCTSENSORSDTOOL_H
10#define SCT_G4_SD_SCTSENSORSDTOOL_H
11
12// Base class
14
16
17// STL headers
18#include <string>
19
20class G4VSensitiveDetector;
21
22//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
23
25{
26 public:
27 // Constructor
28 SctSensorSDTool(const std::string& type, const std::string& name, const IInterface *parent);
29
30 virtual StatusCode SetupEvent(HitCollectionMap&) override;
31 virtual StatusCode Gather(HitCollectionMap&) override;
32
33protected:
34 // Make me an SD!
35 G4VSensitiveDetector* makeSD() const override final;
37 ServiceHandle<IGeoDbTagSvc> m_geoDbTagSvc{this, "GeoDbTagSvc", "GeoDbTagSvc", ""};
38
39
40};
41
42#endif //SCT_G4_SD_SCTSENSORSDTOOL_H
Small wrapper around hit collection map to facilitate accessing the hit collection.
ServiceHandle< IGeoDbTagSvc > m_geoDbTagSvc
SctSensorSDTool(const std::string &type, const std::string &name, const IInterface *parent)
G4VSensitiveDetector * makeSD() const override final
virtual StatusCode Gather() override
End of an athena event.
virtual StatusCode SetupEvent() override
Beginning of an athena event.
SensitiveDetectorBase(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.