4#ifndef MUONSENSITIVEDETECTORSR4_MMSENSITIVEDETECTOR_H
5#define MUONSENSITIVEDETECTORSR4_MMSENSITIVEDETECTOR_H
26 virtual G4bool
ProcessHits(G4Step* aStep, G4TouchableHistory* ROhist)
override final;
39 const G4TouchableHistory* touchHist)
const;
Sensitive detector implementation to record G4 hits in the micromega detectors.
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.
Identifier getIdentifier(const ActsTrk::GeometryContext &gctx, const MuonGMR4::MmReadoutElement *readOutEle, const Amg::Vector3D &hitAtGapPlane) const
Identify the gas gap in which the G4 hit produced.
virtual G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist) override final
const MuonGMR4::MmReadoutElement * getReadoutElement(const ActsTrk::GeometryContext &gctx, const G4TouchableHistory *touchHist) const
Retrieves the readout element matching the Micromega multiplet in which the G4 energy depsoit is taki...
~MmSensitiveDetector()=default
Default destructor.
MuonSensitiveDetector(const std::string &name, const std::string &output_key, const std::string &trf_storeKey, const MuonGMR4::MuonDetectorManager *detMgr)
Constructor.
Eigen::Matrix< double, 3, 1 > Vector3D
Include the common definitions from the MuonReadoutGeometry.