ATLAS Offline Software
SegmentFitParDecorAlg.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 MUONSEGMENTCNV_SEGMENTFITPARDECORALG_H
5 #define MUONSEGMENTCNV_SEGMENTFITPARDECORALG_H
6 
8 
11 
16 namespace MuonR4{
21  public:
22  using AthReentrantAlgorithm::AthReentrantAlgorithm;
23 
24  virtual StatusCode initialize() override final;
25  virtual StatusCode execute(const EventContext& ctx) const override final;
26  private:
29  using PrdLinkVec = std::vector<PrdLink_t>;
31 
38  StatusCode fetchMeasurement(const EventContext& ctx,
39  const MeasKey_t& key,
40  const Identifier& measId,
41  const xAOD::UncalibratedMeasurement*& meas) const;
46  StatusCode addLink(const EventContext& ctx,
47  const Identifier& rotId,
48  PrdLinkVec& prdLinks) const;
49 
51  "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
52 
53  SG::ReadHandleKey<ActsGeometryContext> m_geoCtxKey{this, "AlignmentKey", "ActsAlignment", "cond handle key"};
54 
56 
58 
63 
64  MeasKey_t m_keyTgc{this, "TgcKey", "xTgcStrips"};
65  MeasKey_t m_keyRpc{this, "RpcKey", "xRpcMeasurements"};
66  MeasKey_t m_keyMdt{this, "MdtKey", "xMdtMeasurements"};
67  MeasKey_t m_keysTgc{this, "sTgcKey", "STGC_Measurements"};
68  MeasKey_t m_keyMM{this, "MmKey", "xAODMMClusters"};
69 
70  };
71 }
72 
73 #endif
SG::WriteDecorHandleKey< xAOD::MuonSegmentContainer >
MuonR4::SegmentFitParDecorAlg::m_detMgr
const MuonGMR4::MuonDetectorManager * m_detMgr
Definition: SegmentFitParDecorAlg.h:55
MuonR4::SegmentFitParDecorAlg::m_keyMdt
MeasKey_t m_keyMdt
Definition: SegmentFitParDecorAlg.h:66
MuonR4::SegmentFitParDecorAlg::m_keyMM
MeasKey_t m_keyMM
Definition: SegmentFitParDecorAlg.h:68
MuonGMR4::MuonDetectorManager
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonDetectorManager.h:62
ActsGeometryContext.h
MuonR4::SegmentFitParDecorAlg::m_prdLinkKey
SG::WriteDecorHandleKey< xAOD::MuonSegmentContainer > m_prdLinkKey
Decoration key of the associated prep data objects.
Definition: SegmentFitParDecorAlg.h:62
MuonR4::SegmentFitParDecorAlg::m_keysTgc
MeasKey_t m_keysTgc
Definition: SegmentFitParDecorAlg.h:67
SG::ReadHandleKey< PrdCont_t >
MuonR4::SegmentFitParDecorAlg::m_keyTgc
MeasKey_t m_keyTgc
Definition: SegmentFitParDecorAlg.h:64
MuonR4::SegmentFitParDecorAlg::m_geoCtxKey
SG::ReadHandleKey< ActsGeometryContext > m_geoCtxKey
Definition: SegmentFitParDecorAlg.h:53
MuonR4::SegmentFitParDecorAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition: SegmentFitParDecorAlg.cxx:87
MuonSegmentContainer.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:74
xAOD::UncalibratedMeasurement_v1
Definition: UncalibratedMeasurement_v1.h:13
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
UncalibratedMeasurementContainer.h
MuonDetectorManager.h
MuonR4::SegmentFitParDecorAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: SegmentFitParDecorAlg.h:50
MuonR4::SegmentFitParDecorAlg::m_segmentKey
SG::ReadHandleKey< xAOD::MuonSegmentContainer > m_segmentKey
Definition: SegmentFitParDecorAlg.h:57
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
MuonR4::SegmentFitParDecorAlg
Algorithm to decorate the segment fit parameters in the chamber's frame onto the xAOD::MuonSegment Ad...
Definition: SegmentFitParDecorAlg.h:20
MuonR4::SegmentFitParDecorAlg::PrdLinkVec
std::vector< PrdLink_t > PrdLinkVec
Definition: SegmentFitParDecorAlg.h:29
AthReentrantAlgorithm.h
MuonR4::SegmentFitParDecorAlg::initialize
virtual StatusCode initialize() override final
Definition: SegmentFitParDecorAlg.cxx:18
xAOD::UncalibratedMeasurementContainer
UncalibratedMeasurementContainer_v1 UncalibratedMeasurementContainer
Define the version of the uncalibrated measurement container.
Definition: UncalibratedMeasurementContainer.h:14
MuonR4
This header ties the generic definitions in this package.
Definition: HoughEventData.h:16
MuonR4::SegmentFitParDecorAlg::m_keyRpc
MeasKey_t m_keyRpc
Definition: SegmentFitParDecorAlg.h:65
MuonR4::SegmentFitParDecorAlg::m_locParKey
SG::WriteDecorHandleKey< xAOD::MuonSegmentContainer > m_locParKey
Decoration key of the local parameters.
Definition: SegmentFitParDecorAlg.h:60
MuonR4::SegmentFitParDecorAlg::fetchMeasurement
StatusCode fetchMeasurement(const EventContext &ctx, const MeasKey_t &key, const Identifier &measId, const xAOD::UncalibratedMeasurement *&meas) const
Tries to load the PrdCont_t from StoreGate and then to find the uncalibrated measurement with the sam...
Definition: SegmentFitParDecorAlg.cxx:32
MuonR4::SegmentFitParDecorAlg::addLink
StatusCode addLink(const EventContext &ctx, const Identifier &rotId, PrdLinkVec &prdLinks) const
Tries to add the Link to the uncalibrated measurement corresponding to the passed ROT id.
Definition: SegmentFitParDecorAlg.cxx:53
IMuonIdHelperSvc.h
ServiceHandle< Muon::IMuonIdHelperSvc >
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37
Identifier
Definition: IdentifierFieldParser.cxx:14