ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonPhaseII
MuonG4
MuonSensitiveDetectorsR4
src
MuonSensitiveDetectorTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef MUONG4R4_MUONSENSITIVEDETECTORTOOL_H
5
#define MUONG4R4_MUONSENSITIVEDETECTORTOOL_H
6
7
8
#include <
GeoPrimitives/GeoPrimitives.h
>
10
#include <
G4AtlasTools/SensitiveDetectorBase.h
>
11
#include <
MuonReadoutGeometryR4/MuonDetectorManager.h
>
12
#include <
xAODMuonSimHit/MuonSimHitContainer.h
>
13
14
15
namespace
MuonG4R4
{
23
class
MuonSensitiveDetectorTool
:
public
SensitiveDetectorBase
{
24
25
public
:
27
using
SensitiveDetectorBase::SensitiveDetectorBase
;
29
~MuonSensitiveDetectorTool
()=
default
;
31
virtual
StatusCode
initialize
() override final;
33
virtual StatusCode
SetupEvent
(
HitCollectionMap
& hitCollections) override final;
35
virtual StatusCode
Gather
(
HitCollectionMap
& hitCollections) override final;
36
protected
:
38
const
MuonGMR4
::MuonDetectorManager*
m_detMgr
{
nullptr
};
40
Gaudi::Property<std::string>
m_alignStoreKey
{
this
,
"AlignStoreKey"
,
""
};
41
};
42
}
43
#endif
GeoPrimitives.h
MuonDetectorManager.h
MuonSimHitContainer.h
SensitiveDetectorBase.h
HitCollectionMap
Small wrapper around hit collection map to facilitate accessing the hit collection.
Definition
HitCollectionMap.h:23
MuonG4R4::MuonSensitiveDetectorTool
Baseline MuonSensitive detector tool to store the sim hits.
Definition
MuonSensitiveDetectorTool.h:23
MuonG4R4::MuonSensitiveDetectorTool::initialize
virtual StatusCode initialize() override final
Definition
MuonSensitiveDetectorTool.cxx:10
MuonG4R4::MuonSensitiveDetectorTool::m_alignStoreKey
Gaudi::Property< std::string > m_alignStoreKey
: Key to the alignment / transform store per event.
Definition
MuonSensitiveDetectorTool.h:40
MuonG4R4::MuonSensitiveDetectorTool::SetupEvent
virtual StatusCode SetupEvent(HitCollectionMap &hitCollections) override final
Beginning of an athena event.
Definition
MuonSensitiveDetectorTool.cxx:15
MuonG4R4::MuonSensitiveDetectorTool::SensitiveDetectorBase
SensitiveDetectorBase(const std::string &type, const std::string &name, const IInterface *parent)
Use the standard AthAlgTool constructors.
Definition
SensitiveDetectorBase.cxx:17
MuonG4R4::MuonSensitiveDetectorTool::m_detMgr
const MuonGMR4::MuonDetectorManager * m_detMgr
The muon detector manager to retrieve the sensitive elements.
Definition
MuonSensitiveDetectorTool.h:38
MuonG4R4::MuonSensitiveDetectorTool::Gather
virtual StatusCode Gather(HitCollectionMap &hitCollections) override final
End of an athena event.
Definition
MuonSensitiveDetectorTool.cxx:20
MuonG4R4::MuonSensitiveDetectorTool::~MuonSensitiveDetectorTool
~MuonSensitiveDetectorTool()=default
Default the destructor.
SensitiveDetectorBase::SensitiveDetectorBase
SensitiveDetectorBase(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Definition
SensitiveDetectorBase.cxx:17
const
MuonG4R4
Include the common definitions from the MuonReadoutGeometry.
Definition
MuonSpectrometer/MuonPhaseII/MuonG4/MuonSensitiveDetectorsR4/MuonSensitiveDetectorsR4/Utils.h:22
MuonGMR4
The ReadoutGeomCnvAlg converts the Run4 Readout geometry build from the GeoModelXML into the legacy M...
Definition
MdtCalibInput.h:19
protected
#define protected
Definition
testRead.cxx:26
Generated on
for ATLAS Offline Software by
1.17.0