ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonG4
MuonG4SD
src
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
8
#include "
G4AtlasTools/SensitiveDetectorBase.h
"
9
#include "GaudiKernel/ServiceHandle.h"
10
#include "
MuonIdHelpers/IMuonIdHelperSvc.h
"
11
12
class
MDTSensitiveDetectorCosmicsTool
:
public
SensitiveDetectorBase
{
13
14
public
:
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
;
18
protected
:
19
G4VSensitiveDetector*
makeSD
()
const
override
final
;
20
private
:
21
ServiceHandle<Muon::IMuonIdHelperSvc>
m_idHelperSvc
{
this
,
"MuonIdHelperSvc"
,
"Muon::MuonIdHelperSvc/MuonIdHelperSvc"
};
22
};
23
24
#endif
IMuonIdHelperSvc.h
SensitiveDetectorBase.h
HitCollectionMap
Small wrapper around hit collection map to facilitate accessing the hit collection.
Definition
HitCollectionMap.h:23
MDTSensitiveDetectorCosmicsTool::MDTSensitiveDetectorCosmicsTool
MDTSensitiveDetectorCosmicsTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
MDTSensitiveDetectorCosmicsTool.cxx:12
MDTSensitiveDetectorCosmicsTool::makeSD
G4VSensitiveDetector * makeSD() const override final
Definition
MDTSensitiveDetectorCosmicsTool.cxx:28
MDTSensitiveDetectorCosmicsTool::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition
MDTSensitiveDetectorCosmicsTool.h:21
MDTSensitiveDetectorCosmicsTool::SetupEvent
virtual StatusCode SetupEvent(HitCollectionMap &hitCollections) override
Beginning of an athena event.
Definition
MDTSensitiveDetectorCosmicsTool.cxx:17
MDTSensitiveDetectorCosmicsTool::Gather
virtual StatusCode Gather(HitCollectionMap &hitCollections) override
End of an athena event.
Definition
MDTSensitiveDetectorCosmicsTool.cxx:23
SensitiveDetectorBase::SensitiveDetectorBase
SensitiveDetectorBase(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Definition
SensitiveDetectorBase.cxx:17
ServiceHandle
Definition
ClusterMakerTool.h:36
type
Generated on
for ATLAS Offline Software by
1.17.0