ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonPhaseII
MuonG4
MuonSensitiveDetectorsR4
src
TgcSensitiveDetector.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef MUONG4R4_TGCSensitiveDetector_H
5
#define MUONG4R4_TGCSensitiveDetector_H
6
7
#include "
MuonSensitiveDetector.h
"
8
9
#include <
StoreGate/WriteHandle.h
>
10
#include <
AthenaBaseComps/AthMessaging.h
>
11
#include <
MuonReadoutGeometryR4/MuonDetectorManager.h
>
12
#include <
MuonReadoutGeometryR4/TgcReadoutElement.h
>
13
#include <
xAODMuonSimHit/MuonSimHitContainer.h
>
14
15
namespace
MuonG4R4
{
22
class
TgcSensitiveDetector
:
public
MuonSensitiveDetector
{
23
public
:
25
using
MuonSensitiveDetector::MuonSensitiveDetector
;
27
~TgcSensitiveDetector
()=
default
;
29
virtual
G4bool
ProcessHits
(G4Step* aStep, G4TouchableHistory* ROhist)
override
final
;
30
private
:
34
const
MuonGMR4::TgcReadoutElement
*
getReadoutElement
(
const
G4TouchableHistory* touchHist)
const
;
40
Identifier
getIdentifier
(
const
ActsTrk::GeometryContext
& gctx,
41
const
MuonGMR4::TgcReadoutElement
* readOutEle,
42
const
Amg::Vector3D
& hitAtGapPlane,
bool
phiGap)
const
;
43
};
44
}
45
46
#endif
AthMessaging.h
MuonDetectorManager.h
TgcReadoutElement.h
MuonSensitiveDetector.h
MuonSimHitContainer.h
WriteHandle.h
Handle class for recording to StoreGate.
ActsTrk::GeometryContext
Definition
GeometryContext.h:30
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:27
MuonG4R4::TgcSensitiveDetector
Sensitive detector implementation to record G4 hits in the Tgc detectors.
Definition
TgcSensitiveDetector.h:22
MuonG4R4::TgcSensitiveDetector::~TgcSensitiveDetector
~TgcSensitiveDetector()=default
Default destructor.
MuonG4R4::TgcSensitiveDetector::getReadoutElement
const MuonGMR4::TgcReadoutElement * getReadoutElement(const G4TouchableHistory *touchHist) const
Retrieves the readout element that's associates with the TouchableHistory.
Definition
TgcSensitiveDetector.cxx:50
MuonG4R4::TgcSensitiveDetector::MuonSensitiveDetector
MuonSensitiveDetector(const std::string &name, const std::string &output_key, const std::string &trf_storeKey, const MuonGMR4::MuonDetectorManager *detMgr)
Recycle the constructor from the MuonSensitiveDetector.
Definition
MuonSensitiveDetector.cxx:27
MuonG4R4::TgcSensitiveDetector::getIdentifier
Identifier getIdentifier(const ActsTrk::GeometryContext &gctx, const MuonGMR4::TgcReadoutElement *readOutEle, const Amg::Vector3D &hitAtGapPlane, bool phiGap) const
Constructs the Identifier of the gasGap using the readoutElement and the hit expressed in it's local ...
Definition
TgcSensitiveDetector.cxx:70
MuonG4R4::TgcSensitiveDetector::ProcessHits
virtual G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist) override final
Definition
TgcSensitiveDetector.cxx:20
MuonGMR4::TgcReadoutElement
Definition
MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/TgcReadoutElement.h:19
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition
GeoPrimitives.h:47
Identifier
Definition
IdentifierFieldParser.cxx:14
MuonG4R4
Include the common definitions from the MuonReadoutGeometry.
Definition
MuonSpectrometer/MuonPhaseII/MuonG4/MuonSensitiveDetectorsR4/MuonSensitiveDetectorsR4/Utils.h:22
Generated on
for ATLAS Offline Software by
1.17.0