ATLAS Offline Software
Loading...
Searching...
No Matches
MuonCombinedAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MUONCOMBINEDALGS_MUONCOMBINEDALG_H
6#define MUONCOMBINEDALGS_MUONCOMBINEDALG_H
7
8
10
14
18
22
24public:
25 using AthReentrantAlgorithm::AthReentrantAlgorithm;
26
27 ~MuonCombinedAlg() = default;
28
29 StatusCode execute(const EventContext& ctx) const override;
30 StatusCode initialize() override;
31
32private:
35 bool pass_prematching(const MuonCombined::MuonCandidate& muonCandidate,
36 const MuonCombined::InDetCandidate& idCandidate) const;
37
38 SG::ReadHandleKey<InDetCandidateCollection> m_indetCandidateCollectionName{this, "InDetCandidateLocation", "InDetCandidates",
39 "name of ID candidate collection"};
40 SG::ReadHandleKey<MuonCandidateCollection> m_muonCandidateCollectionName{this, "MuonCandidateLocation", "MuonCandidates",
41 "name of muon candidate collection"};
43 this, "CombinedTagMaps", {"muidcoTagMap", "stacoTagMap"}, "combined muon tag maps"};
44 SG::WriteHandleKey<TrackCollection> m_muidCombinedTracks{this, "MuidCombinedTracksLocation", "MuidCombinedTracks",
45 "Muidco combined Tracks"};
46 SG::WriteHandleKey<TrackCollection> m_muidMETracks{this, "MuidMETracksLocation", "MuidMETracks", "Muidco ME Tracks"};
47
48 // helpers, managers, tools
49 PublicToolHandle<Muon::MuonEDMPrinterTool> m_printer{this, "Printer", "Muon::MuonEDMPrinterTool/MuonEDMPrinterTool"};
50 ToolHandleArray<MuonCombined::IMuonCombinedTagTool> m_muonCombinedTagTools{this, "MuonCombinedTagTools", {}};
51
53 PublicToolHandle<Muon::IMuonAlignmentUncertTool> m_alignUncertTool{this, "AlignmentUncertTool", ""};
54
55 Gaudi::Property<float> m_deltaEtaPreSelection{this, "DeltaEtaPreSelection", 0.5};
56 Gaudi::Property<float> m_deltaPhiPreSelection{this, "DeltaPhiPreSelection", 1};
57 Gaudi::Property<float> m_ptBalance{this, "PtBalancePreSelection", -1.};
58};
59
60#endif
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.
PublicToolHandle< Muon::MuonEDMPrinterTool > m_printer
PublicToolHandle< Muon::IMuonAlignmentUncertTool > m_alignUncertTool
Use this tool to retrieve the last and first measurments of the ID and MS, respectively.
SG::ReadHandleKey< MuonCandidateCollection > m_muonCandidateCollectionName
SG::WriteHandleKey< TrackCollection > m_muidMETracks
StatusCode execute(const EventContext &ctx) const override
SG::ReadHandleKey< InDetCandidateCollection > m_indetCandidateCollectionName
Gaudi::Property< float > m_deltaPhiPreSelection
SG::WriteHandleKey< TrackCollection > m_muidCombinedTracks
~MuonCombinedAlg()=default
SG::WriteHandleKeyArray< MuonCombined::InDetCandidateToTagMap > m_combTagMaps
bool pass_prematching(const MuonCombined::MuonCandidate &muonCandidate, const MuonCombined::InDetCandidate &idCandidate) const
Checks whether the Id & the muon candidate are compatible to attempt a combination of the two as a si...
Gaudi::Property< float > m_ptBalance
StatusCode initialize() override
ToolHandleArray< MuonCombined::IMuonCombinedTagTool > m_muonCombinedTagTools
Gaudi::Property< float > m_deltaEtaPreSelection
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.
HandleKeyArray< WriteHandle< T >, WriteHandleKey< T >, Gaudi::DataHandle::Writer > WriteHandleKeyArray