ATLAS Offline Software
Loading...
Searching...
No Matches
InDetTrackSummaryHelperTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef INDETTRACKSUMMARYHELPERTOOL_H
6#define INDETTRACKSUMMARYHELPERTOOL_H
7
10
15#include "TrkTrackSummary/TrackSummary.h" // defines the Trk::numberOfDetectorTypes enum
16
19
20#include "GaudiKernel/ToolHandle.h"
21
22#include <bitset>
23#include <vector>
24
25class ITRT_StrawSummaryTool;
26class PixelID;
27class SCT_ID;
28class TRT_ID;
29
30namespace Trk {
32class RIO_OnTrack;
33class Track;
35}
36
37namespace InDet {
38
40 : public extends<AthAlgTool, Trk::ITrackSummaryHelperTool>
41{
42public:
44 InDetTrackSummaryHelperTool(const std::string&,
45 const std::string&,
46 const IInterface*);
47
49 virtual ~InDetTrackSummaryHelperTool() = default;
50
53 virtual StatusCode initialize() override;
54 virtual StatusCode finalize() override;
55
61
62 virtual void analyse(
63 const EventContext& ctx,
64 const Trk::Track& track,
65 const Trk::RIO_OnTrack* rot,
66 const Trk::TrackStateOnSurface* tsos,
67 std::vector<int>& information,
68 std::bitset<Trk::numberOfDetectorTypes>& hitPattern) const override final;
69
70 virtual void analyse(
71 const EventContext& ctx,
72 const Trk::Track& track,
73 const Trk::CompetingRIOsOnTrack* crot,
74 const Trk::TrackStateOnSurface* tsos,
75 std::vector<int>& information,
76 std::bitset<Trk::numberOfDetectorTypes>& hitPattern) const override final;
79
80 virtual void addDetailedTrackSummary(const EventContext& ctx,
81 const Trk::Track&,
82 Trk::TrackSummary&) const override final;
83
93 virtual void searchForHoles(
94 const Trk::Track& track,
95 std::vector<int>& information,
96 const Trk::ParticleHypothesis partHyp = Trk::pion) const override final;
97
98
99private:
100
102 const PixelID* m_pixelId{ nullptr };
103
105 const SCT_ID* m_sctId{ nullptr };
106
108 const TRT_ID* m_trtId{ nullptr };
109
110 ToolHandle<Trk::ITrackHoleSearchTool> m_holeSearchTool{
111 this,
112 "HoleSearch",
113 "InDet::InDetTrackHoleSearchTool"
114 };
115
116 ToolHandle<ITRT_StrawStatusSummaryTool> m_TRTStrawSummaryTool{
117 this,
118 "TRTStrawSummarySvc",
119 "TRT_StrawStatusSummaryTool",
120 "The ConditionsSummaryTool"
121 };
122
123 BooleanProperty m_usePixel{ this, "usePixel", true };
124 BooleanProperty m_useSCT{ this, "useSCT", true };
125 BooleanProperty m_useTRT{ this, "useTRT", true };
126};
127
128}
129#endif
abstract interface to TRT straw status constants
virtual void addDetailedTrackSummary(const EventContext &ctx, const Trk::Track &, Trk::TrackSummary &) const override final
ToolHandle< ITRT_StrawStatusSummaryTool > m_TRTStrawSummaryTool
virtual StatusCode initialize() override
standard AlgTool methods: initialise retrieves Tools, finalize does nothing
virtual void analyse(const EventContext &ctx, const Trk::Track &track, const Trk::RIO_OnTrack *rot, const Trk::TrackStateOnSurface *tsos, std::vector< int > &information, std::bitset< Trk::numberOfDetectorTypes > &hitPattern) const override final
Input : rot, tsos Output: Changes in information and hitPattern Input quantities rot,...
ToolHandle< Trk::ITrackHoleSearchTool > m_holeSearchTool
InDetTrackSummaryHelperTool(const std::string &, const std::string &, const IInterface *)
constructor
virtual void searchForHoles(const Trk::Track &track, std::vector< int > &information, const Trk::ParticleHypothesis partHyp=Trk::pion) const override final
Input : track, partHyp Output: Changes in information This method first calls the method getListOfHit...
const PixelID * m_pixelId
ID pixel helper.
virtual ~InDetTrackSummaryHelperTool()=default
destructor
This is an Identifier helper class for the Pixel subdetector.
Definition PixelID.h:69
This is an Identifier helper class for the SCT subdetector.
Definition SCT_ID.h:68
This is an Identifier helper class for the TRT subdetector.
Definition TRT_ID.h:84
Base class for all CompetingRIOsOnTack implementations, extends the common MeasurementBase.
Class to handle RIO On Tracks ROT) for InDet and Muons, it inherits from the common MeasurementBase.
Definition RIO_OnTrack.h:70
represents the track state (measurement, material, fit parameters and quality) at a surface.
A summary of the information contained by a track.
Primary Vertex Finder.
Ensure that the ATLAS eigen extensions are properly loaded.
ParticleHypothesis
Enumeration for Particle hypothesis respecting the interaction with material.