ATLAS Offline Software
Loading...
Searching...
No Matches
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
14class 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
25protected:
26 // Make me an SD!
27 G4VSensitiveDetector* makeSD() const override final;
28
29};
30
31#endif //TRT_G4_SD_TRTSENSITIVEDETECTORTOOL_H
Small wrapper around hit collection map to facilitate accessing the hit collection.
SensitiveDetectorBase(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
TRTSensitiveDetectorTool(const std::string &type, const std::string &name, const IInterface *parent)
virtual StatusCode Gather(HitCollectionMap &) override
End of an athena event.
virtual StatusCode SetupEvent(HitCollectionMap &) override
Beginning of an athena event.
G4VSensitiveDetector * makeSD() const override final