ATLAS Offline Software
Loading...
Searching...
No Matches
TrackSegmentAssociationTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRACKSEGMENTASSOCIATIONTOOL_H
6#define TRACKSEGMENTASSOCIATIONTOOL_H
7
9#include "GaudiKernel/ServiceHandle.h"
10#include "GaudiKernel/ToolHandle.h"
21
22namespace MuonCombined {
23
25 public:
26 TrackSegmentAssociationTool(const std::string&, const std::string&, const IInterface*);
27
29
30 StatusCode initialize() override;
31 bool associatedSegments(const Trk::Track& muon, const Trk::SegmentCollection* segments,
32 std::vector<const Muon::MuonSegment*>& assocSegmentVec) const override;
33
34 private:
35 ServiceHandle<Muon::IMuonEDMHelperSvc> m_edmHelperSvc{this, "edmHelper", "Muon::MuonEDMHelperSvc/MuonEDMHelperSvc",
36 "Handle to the service providing the IMuonEDMHelperSvc interface"};
37 PublicToolHandle<Muon::MuonEDMPrinterTool> m_printer{this, "MuonEDMPrinterTool", "Muon::MuonEDMPrinterTool/MuonEDMPrinterTool"};
38
39 ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
40 };
41} // namespace MuonCombined
42
43#endif
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Interface to associate the Muon segments to the muon track.
PublicToolHandle< Muon::MuonEDMPrinterTool > m_printer
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
TrackSegmentAssociationTool(const std::string &, const std::string &, const IInterface *)
ServiceHandle< Muon::IMuonEDMHelperSvc > m_edmHelperSvc
bool associatedSegments(const Trk::Track &muon, const Trk::SegmentCollection *segments, std::vector< const Muon::MuonSegment * > &assocSegmentVec) const override
IMuonSegmentTagTool interface: build muons from ID and MuonSegments.
The MuonTagToSegMap is an auxillary construct that links the MuonSegments associated with a combined ...
DataVector< Trk::Segment > SegmentCollection