ATLAS Offline Software
Loading...
Searching...
No Matches
MDTSensitiveDetectorCosmicsTool.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 MDTSensitiveDetectorCosmicsTool_H
6#define MDTSensitiveDetectorCosmicsTool_H
7
9#include "GaudiKernel/ServiceHandle.h"
11
13
14public:
15 MDTSensitiveDetectorCosmicsTool(const std::string& type, const std::string& name, const IInterface *parent);
16 virtual StatusCode SetupEvent(HitCollectionMap& hitCollections) override;
17 virtual StatusCode Gather(HitCollectionMap& hitCollections) override;
18protected:
19 G4VSensitiveDetector* makeSD() const override final;
20private:
21 ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
22};
23
24#endif
Small wrapper around hit collection map to facilitate accessing the hit collection.
MDTSensitiveDetectorCosmicsTool(const std::string &type, const std::string &name, const IInterface *parent)
G4VSensitiveDetector * makeSD() const override final
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
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.