ATLAS Offline Software
Loading...
Searching...
No Matches
PrepDataToSimHitAssocAlg.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 MUONTRUTHALGSR4_PREPDATATOSIMHITASSOCALG_H
5#define MUONTRUTHALGSR4_PREPDATATOSIMHITASSOCALG_H
6
8
16
17namespace MuonR4{
24 public:
25 using AthReentrantAlgorithm::AthReentrantAlgorithm;
26
27 StatusCode initialize() override final;
28 StatusCode execute(const EventContext & ctx) const override final;
29 private:
31 template <typename Cont_t> using Viewer_t = xAOD::ChamberViewer<Cont_t>;
35 template <typename PrdType_t>
37 const xAOD::UncalibratedMeasurement* measurement) const;
38
47 ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "IdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
48 };
49}
50
51
52#endif
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
The PrepDataToSimHitAssocAlg matches the uncalibrated measurements to the MuonSimHits or to the MuonS...
xAOD::ChamberViewer< Cont_t > Viewer_t
Abrivate the chamber viewer type.
const xAOD::MuonSimHit * truthMatchPrd(Viewer_t< xAOD::MuonSimHitContainer > &simHits, const xAOD::UncalibratedMeasurement *measurement) const
Searches for the best matching sim hit to a measurement.
SG::ReadHandleKey< xAOD::MuonSimHitContainer > m_simHitsKey
Key to the associated simHit container.
ElementLink< xAOD::MuonSimHitContainer > LinkType
Attached sim-hit link decoration to the measurement container.
SG::ReadHandleKey< xAOD::UncalibratedMeasurementContainer > m_prdHitKey
Key to the uncalibrated measurements to decorate.
StatusCode execute(const EventContext &ctx) const override final
SG::WriteDecorHandleKey< xAOD::UncalibratedMeasurementContainer > m_decorKey
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
IdHelperSvc to decode the Identifiers.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
This header ties the generic definitions in this package.
MuonSimHit_v1 MuonSimHit
Defined the version of the MuonSimHit.
Definition MuonSimHit.h:12
UncalibratedMeasurement_v1 UncalibratedMeasurement
Define the version of the uncalibrated measurement class.