ATLAS Offline Software
Loading...
Searching...
No Matches
InDetTrackSummaryHelperTool.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 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::IExtendedTrackSummaryHelperTool>
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 using IExtendedTrackSummaryHelperTool::addDetailedTrackSummary;
62 using IExtendedTrackSummaryHelperTool::analyse;
63
64 virtual void analyse(
65 const EventContext& ctx,
66 const Trk::Track& track,
67 const Trk::RIO_OnTrack* rot,
68 const Trk::TrackStateOnSurface* tsos,
69 std::vector<int>& information,
70 std::bitset<Trk::numberOfDetectorTypes>& hitPattern) const override final;
71
72 virtual void analyse(
73 const EventContext& ctx,
74 const Trk::Track& track,
75 const Trk::CompetingRIOsOnTrack* crot,
76 const Trk::TrackStateOnSurface* tsos,
77 std::vector<int>& information,
78 std::bitset<Trk::numberOfDetectorTypes>& hitPattern) const override final;
81
82 virtual void addDetailedTrackSummary(const EventContext& ctx,
83 const Trk::Track&,
84 Trk::TrackSummary&) const override final;
85
95 virtual void searchForHoles(
96 const Trk::Track& track,
97 std::vector<int>& information,
98 const Trk::ParticleHypothesis partHyp = Trk::pion) const override final;
99
100
101private:
102
104 const PixelID* m_pixelId{ nullptr };
105
107 const SCT_ID* m_sctId{ nullptr };
108
110 const TRT_ID* m_trtId{ nullptr };
111
112 ToolHandle<Trk::ITrackHoleSearchTool> m_holeSearchTool{
113 this,
114 "HoleSearch",
115 "InDet::InDetTrackHoleSearchTool"
116 };
117
118 ToolHandle<ITRT_StrawStatusSummaryTool> m_TRTStrawSummaryTool{
119 this,
120 "TRTStrawSummarySvc",
121 "TRT_StrawStatusSummaryTool",
122 "The ConditionsSummaryTool"
123 };
124
125 BooleanProperty m_usePixel{ this, "usePixel", true };
126 BooleanProperty m_useSCT{ this, "useSCT", true };
127 BooleanProperty m_useTRT{ this, "useTRT", true };
128};
129
130}
131#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
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:67
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:82
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.