ATLAS Offline Software
Loading...
Searching...
No Matches
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
20namespace 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
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Interface for tools calculating hit count summaries for track.
ToolHandle< Trk::IExtrapolator > m_extrapolator
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.
MuonLayerSegmentMatchingTool(const std::string &type, const std::string &name, const IInterface *parent)
Default AlgTool functions.
virtual ~MuonLayerSegmentMatchingTool()=default
ToolHandle< IMuTagMatchingTool > m_matchingTool
PublicToolHandle< MuonEDMPrinterTool > m_printer
Helper tool for debugging purposes.
bool match(const EventContext &ctx, const MuonSystemExtension::Intersection &intersection, const MuonSegment &segment) const override
match segment to intersection
This is the common class for 3D segments used in the muon spectrometer.
std::vector< std::string > intersection(std::vector< std::string > &v1, std::vector< std::string > &v2)
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.