ATLAS Offline Software
Loading...
Searching...
No Matches
PixelSensorSDTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5/****************************************************************
6 Pixel Sensitive Detector class
7 Davide Costanzo Sep 4th 2002.
8 ****************************************************************/
9
10#ifndef PIXEL_G4_SD_PIXELSENSORSDTOOL_H
11#define PIXEL_G4_SD_PIXELSENSORSDTOOL_H
12
13// Base class
15
17
18// STL headers
19#include <string>
20
21class G4VSensitiveDetector;
22
24{
25 public:
26 // Constructor
27 PixelSensorSDTool(const std::string& type, const std::string& name, const IInterface *parent);
28
29 virtual StatusCode SetupEvent(HitCollectionMap&) override;
30 virtual StatusCode Gather(HitCollectionMap&) override;
31
32protected:
33 // Make me an SD!
34 G4VSensitiveDetector* makeSD() const override final;
35
36 // property to toggle GeoModelXML
37 Gaudi::Property<bool> m_gmxSensor{this, "GmxSensor", false};
38 ServiceHandle<IGeoDbTagSvc> m_geoDbTagSvc{this, "GeoDbTagSvc", "GeoDbTagSvc", ""};
39};
40
41#endif //PIXEL_G4_SD_PIXELSENSORSDTOOL_H
Small wrapper around hit collection map to facilitate accessing the hit collection.
Gaudi::Property< bool > m_gmxSensor
ServiceHandle< IGeoDbTagSvc > m_geoDbTagSvc
PixelSensorSDTool(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.