ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
MuonIdentification
MuonCombinedBaseTools
src
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
8
#include "
AthenaBaseComps/AthAlgTool.h
"
9
#include "GaudiKernel/ServiceHandle.h"
10
#include "GaudiKernel/ToolHandle.h"
11
#include "
MuonCombinedToolInterfaces/IMuonTrackToSegmentAssociationTool.h
"
12
#include "
MuonIdHelpers/IMuonIdHelperSvc.h
"
13
#include "
MuonRecHelperTools/IMuonEDMHelperSvc.h
"
14
#include "
MuonRecHelperTools/MuonEDMPrinterTool.h
"
15
#include "
TrkSegment/SegmentCollection.h
"
21
22
namespace
MuonCombined
{
23
24
class
TrackSegmentAssociationTool
:
public
AthAlgTool
,
virtual
public
IMuonTrackToSegmentAssociationTool
{
25
public
:
26
TrackSegmentAssociationTool
(
const
std::string&,
const
std::string&,
const
IInterface*);
27
28
~TrackSegmentAssociationTool
() =
default
;
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.h
IMuonEDMHelperSvc.h
IMuonIdHelperSvc.h
IMuonTrackToSegmentAssociationTool.h
MuonEDMPrinterTool.h
SegmentCollection.h
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
MuonCombined::IMuonTrackToSegmentAssociationTool
Interface to associate the Muon segments to the muon track.
Definition
IMuonTrackToSegmentAssociationTool.h:19
MuonCombined::TrackSegmentAssociationTool::m_printer
PublicToolHandle< Muon::MuonEDMPrinterTool > m_printer
Definition
TrackSegmentAssociationTool.h:37
MuonCombined::TrackSegmentAssociationTool::initialize
StatusCode initialize() override
Definition
TrackSegmentAssociationTool.cxx:33
MuonCombined::TrackSegmentAssociationTool::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition
TrackSegmentAssociationTool.h:39
MuonCombined::TrackSegmentAssociationTool::TrackSegmentAssociationTool
TrackSegmentAssociationTool(const std::string &, const std::string &, const IInterface *)
Definition
TrackSegmentAssociationTool.cxx:28
MuonCombined::TrackSegmentAssociationTool::m_edmHelperSvc
ServiceHandle< Muon::IMuonEDMHelperSvc > m_edmHelperSvc
Definition
TrackSegmentAssociationTool.h:35
MuonCombined::TrackSegmentAssociationTool::associatedSegments
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.
Definition
TrackSegmentAssociationTool.cxx:40
MuonCombined::TrackSegmentAssociationTool::~TrackSegmentAssociationTool
~TrackSegmentAssociationTool()=default
ServiceHandle
Definition
ClusterMakerTool.h:36
Trk::Track
The ATLAS Track class.
Definition
Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
MuonCombined
The MuonTagToSegMap is an auxillary construct that links the MuonSegments associated with a combined ...
Definition
IMuonSystemExtensionTool.h:23
Trk::SegmentCollection
DataVector< Trk::Segment > SegmentCollection
Definition
SegmentCollection.h:13
Generated on
for ATLAS Offline Software by
1.17.0