ATLAS Offline Software
Loading...
Searching...
No Matches
RPCSensitiveDetectorTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef RPCSensitiveDetectorTool_H
6#define RPCSensitiveDetectorTool_H
7
9#include "GaudiKernel/ServiceHandle.h"
11
13
14public:
16 RPCSensitiveDetectorTool(const std::string& type, const std::string& name, const IInterface *parent);
17 virtual StatusCode SetupEvent(HitCollectionMap& hitCollections) override;
18 virtual StatusCode Gather(HitCollectionMap& hitCollections) override;
19protected:
20 G4VSensitiveDetector* makeSD() const override final;
21private:
22 ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
23};
24
25#endif
Small wrapper around hit collection map to facilitate accessing the hit collection.
RPCSensitiveDetectorTool(const std::string &type, const std::string &name, const IInterface *parent)
construction/destruction
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
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.