ATLAS Offline Software
Loading...
Searching...
No Matches
MuonSpectrometer/MuonPhaseII/MuonRecToolInterfacesR4/MuonRecToolInterfacesR4/ITrackSummaryTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4#ifndef MUONRECTOOLINTERFACESR4_ITRACKSUMMARYTOOL_H
5#define MUONRECTOOLINTERFACESR4_ITRACKSUMMARYTOOL_H
6
7#include <GaudiKernel/IAlgTool.h>
8#include <GaudiKernel/EventContext.h>
9
12#include "xAODBase/IParticle.h"
13
14
15namespace Trk {
16 class Track;
17}
18
19namespace MuonR4{
20 struct HitSummary;
21 class MsTrackSeed;
22}
23
24
25namespace MuonR4{
30 class ITrackSummaryTool: virtual public IAlgTool {
31 public:
33 virtual ~ITrackSummaryTool() = default;
36
38 using ConstTrack_t = ActsTrk::TrackContainer::ConstTrackProxy;
44 virtual HitSummary makeSummary(const EventContext& ctx,
45 const ConstTrack_t trackProxy) const = 0;
51 virtual HitSummary makeSummary(const EventContext& ctx,
52 const std::vector<const xAOD::MuonSegment*>& segments) const = 0;
59 virtual HitSummary makeSummary(const EventContext& ctx,
60 const Trk::Track& trk) const = 0;
63 virtual void copySummary(const HitSummary& summary,
64 const xAOD::IParticle& track) const = 0;
65
66 };
67}
68
69
70#endif
Interface tool to calculate the hit summary of tracks & track seeds in the MuonSpectrometer.
virtual ~ITrackSummaryTool()=default
Default destructor.
virtual HitSummary makeSummary(const EventContext &ctx, const std::vector< const xAOD::MuonSegment * > &segments) const =0
Creates a summary from a list of passed segments that are associated to a track seed,...
ActsTrk::TrackContainer::ConstTrackProxy ConstTrack_t
Abrivation of the Track proxy.
DeclareInterfaceID(MuonR4::ITrackSummaryTool, 1, 0)
Declare the interface.
virtual HitSummary makeSummary(const EventContext &ctx, const Trk::Track &trk) const =0
Creates a summary from a Trk::Track object produced by the legacy reconstruction software.
virtual HitSummary makeSummary(const EventContext &ctx, const ConstTrack_t trackProxy) const =0
Creates a summary from the passed track.
virtual void copySummary(const HitSummary &summary, const xAOD::IParticle &track) const =0
Decorates the hit summary to the parsed track (xAOD::TrackParticle, xAOD::Muon or xAOD::TruthParticle...
Class providing the definition of the 4-vector interface.
This header ties the generic definitions in this package.
Ensure that the ATLAS eigen extensions are properly loaded.
Summary struct to hold the hit counts on the track per MS layer.
Definition HitSummary.h:22