ATLAS Offline Software
Loading...
Searching...
No Matches
PatternCnvAlg.h
Go to the documentation of this file.
1
2/*
3 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
4*/
5#ifndef MUONPATTERNCNV_MUONPATTERNCNVALG_H
6#define MUONPATTERNCNV_MUONPATTERNCNVALG_H
7
12
18namespace MuonR4{
23 public:
24
25 using AthReentrantAlgorithm::AthReentrantAlgorithm;
26
27 StatusCode initialize() override final;
28
29 StatusCode execute(const EventContext& ctx) const override final;
30
31 private:
32 /*** @brief Fetches a MuonPrepData object from the PrepData container by matching the parsed Identifier.
33 * Nullptr is returned if the object does not exist and an error message is printed
34 * @param prdId: Identifier of the measurement to fetch
35 * @param prdContainer: Pointer to the MuonPrepData container to fetch the object from.
36 */
37 template <class PrdType>
38 const PrdType* fetchPrd(const Identifier& prdId,
39 const Muon::MuonPrepDataContainerT<PrdType>* prdContainer) const;
40
48 StatusCode convertSeed(const EventContext& ctx,
49 const SegmentSeedContainer& seedContainer,
50 ::MuonPatternCombinationCollection& patternContainer,
51 Muon::HoughDataPerSectorVec& houghDataSec) const;
52
55 Muon::HoughDataPerSectorVec& houghDataSec)const;
56
57
58
59
61 "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
62
63 SG::ReadHandleKey<Muon::TgcPrepDataContainer> m_keyTgc{this, "TgcKey", "TGC_MeasurementsAllBCs"};
64 SG::ReadHandleKey<Muon::RpcPrepDataContainer> m_keyRpc{this, "RpcKey", "RPC_Measurements"};
65 SG::ReadHandleKey<Muon::MdtPrepDataContainer> m_keyMdt{this, "MdtKey", "MDT_DriftCircles"};
66 SG::ReadHandleKey<Muon::sTgcPrepDataContainer> m_keysTgc{this, "sTgcKey", "STGC_Measurements"};
67 SG::ReadHandleKey<Muon::MMPrepDataContainer> m_keyMM{this, "MmKey", "MM_Measurements"};
68
69 SG::ReadHandleKeyArray<SegmentSeedContainer> m_readKeys{this, "Patterns", {"MuonHoughStationSegmentSeeds"}};
70 SG::ReadHandleKey<ActsTrk::GeometryContext> m_geoCtxKey{this, "AlignmentKey", "ActsAlignment", "cond handle key"};
71
72 SG::WriteHandleKey<::MuonPatternCombinationCollection> m_combiKey{this, "PatternCombiKey", "MuonLayerHoughCombis"};
74 "HoughDataPerSectorVec", "HoughDataPerSectorVec key"};
75
76 };
77
78}
79
80#endif
DataVector< Muon::MuonPatternCombination > MuonPatternCombinationCollection
This typedef represents a collection of MuonPatternCombination objects.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
The MuonPatternCnvAlg converts the SegmentSeeds produced by the R4 pattern recognition chain into the...
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
const PrdType * fetchPrd(const Identifier &prdId, const Muon::MuonPrepDataContainerT< PrdType > *prdContainer) const
void convertMaximum(const Muon::MuonPatternChamberIntersect &intersect, Muon::HoughDataPerSectorVec &houghDataSec) const
: Converts the maximum back into the HoughDataPersector
SG::WriteHandleKey<::MuonPatternCombinationCollection > m_combiKey
SG::ReadHandleKey< Muon::sTgcPrepDataContainer > m_keysTgc
StatusCode initialize() override final
SG::ReadHandleKey< Muon::MdtPrepDataContainer > m_keyMdt
SG::ReadHandleKey< Muon::RpcPrepDataContainer > m_keyRpc
SG::ReadHandleKey< Muon::MMPrepDataContainer > m_keyMM
SG::ReadHandleKey< Muon::TgcPrepDataContainer > m_keyTgc
Prep data container keys.
SG::ReadHandleKeyArray< SegmentSeedContainer > m_readKeys
SG::ReadHandleKey< ActsTrk::GeometryContext > m_geoCtxKey
StatusCode execute(const EventContext &ctx) const override final
StatusCode convertSeed(const EventContext &ctx, const SegmentSeedContainer &seedContainer, ::MuonPatternCombinationCollection &patternContainer, Muon::HoughDataPerSectorVec &houghDataSec) const
Converts each segment seed first into a PatternCombination - serving as input for the legacy segment ...
SG::WriteHandleKey< Muon::HoughDataPerSectorVec > m_dataPerSecKey
This class holds information needed for the Moore and MoMu pattern recognition for a muon chamber.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
This header ties the generic definitions in this package.
DataVector< SegmentSeed > SegmentSeedContainer
MuonPrepDataContainer< MuonPrepDataCollection< PrdType > > MuonPrepDataContainerT
HandleKeyArray< ReadHandle< T >, ReadHandleKey< T >, Gaudi::DataHandle::Reader > ReadHandleKeyArray