ATLAS Offline Software
MuonSpectrometer
MuonPhaseII
MuonG4
MuonSensitiveDetectorsR4
src
MdtSensitiveDetector.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef MUONSENSITIVEDETECTORSR4_MDTSENSITIVEDETECTOR_H
5
#define MUONSENSITIVEDETECTORSR4_MDTSENSITIVEDETECTOR_H
6
7
70
#include <
GeoPrimitives/GeoPrimitives.h
>
71
72
#include <
StoreGate/WriteHandle.h
>
73
#include <
MuonReadoutGeometryR4/MuonDetectorManager.h
>
74
#include <
xAODMuonSimHit/MuonSimHitContainer.h
>
75
#include <
AthenaBaseComps/AthMessaging.h
>
76
77
#include "
MuonSensitiveDetector.h
"
78
79
80
81
class
G4TouchableHistory;
82
83
84
namespace
MuonG4R4
{
85
86
87
class
MdtSensitiveDetector
:
public
MuonSensitiveDetector
{
88
89
public
:
90
using
MuonSensitiveDetector::MuonSensitiveDetector
;
91
92
~MdtSensitiveDetector
() =
default
;
93
94
virtual
G4bool
ProcessHits
(G4Step* aStep, G4TouchableHistory* ROhist)
override
final
;
95
96
private
:
98
const
MuonGMR4::MdtReadoutElement
*
getReadoutElement
(
const
G4TouchableHistory* touchHist)
const
;
100
Identifier
getIdentifier
(
const
ActsTrk::GeometryContext
& gctx,
101
const
MuonGMR4::MdtReadoutElement
* reElement,
102
const
G4TouchableHistory* touchHist)
const
;
103
};
104
105
}
106
#endif
MuonG4R4::MuonSensitiveDetector::MuonSensitiveDetector
MuonSensitiveDetector(const std::string &name, const std::string &output_key, const std::string &trf_storeKey, const MuonGMR4::MuonDetectorManager *detMgr)
Constructor.
Definition:
MuonSensitiveDetector.cxx:26
MuonG4R4::MdtSensitiveDetector::getIdentifier
Identifier getIdentifier(const ActsTrk::GeometryContext &gctx, const MuonGMR4::MdtReadoutElement *reElement, const G4TouchableHistory *touchHist) const
Retrieves from the Readoutelement & the touchable history the Identifier.
Definition:
MdtSensitiveDetector.cxx:111
MuonG4R4::MdtSensitiveDetector::getReadoutElement
const MuonGMR4::MdtReadoutElement * getReadoutElement(const G4TouchableHistory *touchHist) const
Retrieves the matching readout element to a G4 hit.
Definition:
MdtSensitiveDetector.cxx:24
GeoPrimitives.h
WriteHandle.h
Handle class for recording to StoreGate.
MuonG4R4
Include the common definitions from the MuonReadoutGeometry.
Definition:
MuonSpectrometer/MuonPhaseII/MuonG4/MuonSensitiveDetectorsR4/MuonSensitiveDetectorsR4/Utils.h:14
MuonG4R4::MuonSensitiveDetector
Definition:
MuonSensitiveDetector.h:22
MuonDetectorManager.h
MuonSimHitContainer.h
ActsTrk::GeometryContext
Definition:
GeometryContext.h:28
MuonG4R4::MdtSensitiveDetector::ProcessHits
virtual G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist) override final
Definition:
MdtSensitiveDetector.cxx:50
MuonGMR4::MdtReadoutElement
Definition:
MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MdtReadoutElement.h:18
MuonSensitiveDetector.h
MuonG4R4::MdtSensitiveDetector
Definition:
MdtSensitiveDetector.h:87
AthMessaging.h
MuonG4R4::MdtSensitiveDetector::~MdtSensitiveDetector
~MdtSensitiveDetector()=default
Identifier
Definition:
IdentifierFieldParser.cxx:14
Generated on Sat Nov 1 2025 21:14:18 for ATLAS Offline Software by
1.8.18