ATLAS Offline Software
MuonLayerSegmentMatchingTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUON_MUONLAYERSEGMENTMATCHINGTOOL_H
6 #define MUON_MUONLAYERSEGMENTMATCHINGTOOL_H
7 
8 #include <string>
9 #include <vector>
10 
12 #include "GaudiKernel/ToolHandle.h"
19 
20 namespace Muon {
21 
22  class MuonSegment;
23 
25  public:
27  MuonLayerSegmentMatchingTool(const std::string& type, const std::string& name, const IInterface* parent);
28  virtual ~MuonLayerSegmentMatchingTool() = default;
29  StatusCode initialize() override;
30 
32  void select(const EventContext& ctx, const MuonSystemExtension::Intersection& intersection,
33  const std::vector<std::shared_ptr<const Muon::MuonSegment> >& segments,
34  std::vector<std::shared_ptr<const Muon::MuonSegment> >& selectedSegments) const override;
35 
37  bool match(const EventContext& ctx, const MuonSystemExtension::Intersection& intersection, const MuonSegment& segment) const override;
38  private:
39 
40 
42  PublicToolHandle<MuonEDMPrinterTool> m_printer{this, "MuonEDMPrinterTool", "Muon::MuonEDMPrinterTool/MuonEDMPrinterTool"};
43 
44  ToolHandle<Trk::IExtrapolator> m_extrapolator{this, "Extrapolator", "Trk::Extrapolation/AtlasExtrapolator"};
45 
46  ToolHandle<IMuTagMatchingTool> m_matchingTool{this, "MatchTool", "MuTagMatchingTool/MuTagMatchingTool"};
47  };
48 } // namespace Muon
49 
50 #endif
MuonEDMPrinterTool.h
Muon::MuonLayerSegmentMatchingTool::m_matchingTool
ToolHandle< IMuTagMatchingTool > m_matchingTool
Definition: MuonLayerSegmentMatchingTool.h:46
Muon::MuonLayerSegmentMatchingTool::MuonLayerSegmentMatchingTool
MuonLayerSegmentMatchingTool(const std::string &type, const std::string &name, const IInterface *parent)
Default AlgTool functions.
Definition: MuonLayerSegmentMatchingTool.cxx:13
IMuTagMatchingTool.h
IExtrapolator.h
IMuonLayerSegmentMatchingTool.h
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:49
intersection
std::vector< std::string > intersection(std::vector< std::string > &v1, std::vector< std::string > &v2)
Definition: compareFlatTrees.cxx:25
xAOD::MuonSegment
MuonSegment_v1 MuonSegment
Reference the current persistent version:
Definition: Event/xAOD/xAODMuon/xAODMuon/MuonSegment.h:13
Muon::MuonLayerSegmentMatchingTool
Definition: MuonLayerSegmentMatchingTool.h:24
Muon::MuonLayerSegmentMatchingTool::select
void select(const EventContext &ctx, const MuonSystemExtension::Intersection &intersection, const std::vector< std::shared_ptr< const Muon::MuonSegment > > &segments, std::vector< std::shared_ptr< const Muon::MuonSegment > > &selectedSegments) const override
IMuonLayerSegmentMatchingTool interface: select.
Definition: MuonLayerSegmentMatchingTool.cxx:82
IMuonSegmentSelectionTool.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Muon::IMuonLayerSegmentMatchingTool
Interface for tools calculating hit count summaries for track.
Definition: IMuonLayerSegmentMatchingTool.h:18
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
Muon::MuonLayerSegmentMatchingTool::m_extrapolator
ToolHandle< Trk::IExtrapolator > m_extrapolator
Definition: MuonLayerSegmentMatchingTool.h:44
MuonSystemExtension.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
Muon::MuonLayerSegmentMatchingTool::initialize
StatusCode initialize() override
Definition: MuonLayerSegmentMatchingTool.cxx:18
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
Muon::MuonLayerSegmentMatchingTool::match
bool match(const EventContext &ctx, const MuonSystemExtension::Intersection &intersection, const MuonSegment &segment) const override
match segment to intersection
Definition: MuonLayerSegmentMatchingTool.cxx:25
Muon::MuonSystemExtension::Intersection
data per intersection
Definition: MuonSystemExtension.h:21
Muon::MuonSegment
Definition: MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h:45
AthAlgTool
Definition: AthAlgTool.h:26
Muon::MuonLayerSegmentMatchingTool::m_printer
PublicToolHandle< MuonEDMPrinterTool > m_printer
Helper tool for debugging purposes.
Definition: MuonLayerSegmentMatchingTool.h:42
Muon::MuonLayerSegmentMatchingTool::~MuonLayerSegmentMatchingTool
virtual ~MuonLayerSegmentMatchingTool()=default
NSWL1::PadTriggerAdapter::segment
Muon::NSW_PadTriggerSegment segment(const NSWL1::PadTrigger &data)
Definition: PadTriggerAdapter.cxx:5