ATLAS Offline Software
InDetTrackZ0SortingTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef InDetMultipleVertexSeedFinderUtils_InDetTrackZ0SortingTool_H
6 #define InDetMultipleVertexSeedFinderUtils_InDetTrackZ0SortingTool_H
7 
8 
10 #include "GaudiKernel/ToolHandle.h"
11 #include "xAODTracking/Vertex.h"
13 
26 namespace Trk
27 {
28  class Track;
29  class Vertex;
30  class TrackParticleBase;
31  class IExtrapolator;
32 }
33 
34 
35 namespace InDet
36 {
37  static const InterfaceID IID_InDetTrackZ0SortingTool("InDetTrackZ0SortingTool", 1, 1);
38 
40  {
41 
42  public:
43 
44  virtual StatusCode initialize() override;
45 
46  InDetTrackZ0SortingTool(const std::string& t, const std::string& n, const IInterface* p);
47 
48  static const InterfaceID& interfaceID() {return IID_InDetTrackZ0SortingTool;}
49 
51 
56  std::vector<int> sortedIndex(const std::vector<const Trk::Track*>& tracks, const Trk::Vertex * reference = 0 )const;
57 
58  std::vector<int> sortedIndex(const std::vector<const xAOD::TrackParticle*>& perigeeList, const xAOD::Vertex * beamVtx = 0) const;
59 
60  private:
61 
62  ToolHandle<Trk::IExtrapolator> m_extrapolator; //<! Extrapolator tool
63 
64  };//end of class definitions
65 
66 }//end of namespace definitions
67 #endif //TrkMultipleVertexSeedFinders_InDetTrackZ0SortingTool_H
Trk::Vertex
Definition: Tracking/TrkEvent/VxVertex/VxVertex/Vertex.h:26
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
xAOD::Vertex
Vertex_v1 Vertex
Define the latest version of the vertex class.
Definition: Event/xAOD/xAODTracking/xAODTracking/Vertex.h:16
InDet::InDetTrackZ0SortingTool::initialize
virtual StatusCode initialize() override
Definition: InDetTrackZ0SortingTool.cxx:14
InDet::InDetTrackZ0SortingTool::m_extrapolator
ToolHandle< Trk::IExtrapolator > m_extrapolator
Definition: InDetTrackZ0SortingTool.h:62
InDet
DUMMY Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
reference
Definition: hcg.cxx:437
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
Vertex.h
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
TrackParticle.h
InDet::InDetTrackZ0SortingTool::~InDetTrackZ0SortingTool
~InDetTrackZ0SortingTool()
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42
InDet::InDetTrackZ0SortingTool::InDetTrackZ0SortingTool
InDetTrackZ0SortingTool(const std::string &t, const std::string &n, const IInterface *p)
Definition: InDetTrackZ0SortingTool.cxx:27
Track
Definition: TriggerChamberClusterOnTrackCreator.h:21
InDet::InDetTrackZ0SortingTool
Definition: InDetTrackZ0SortingTool.h:40
AthAlgTool
Definition: AthAlgTool.h:26
InDet::InDetTrackZ0SortingTool::sortedIndex
std::vector< int > sortedIndex(const std::vector< const Trk::Track * > &tracks, const Trk::Vertex *reference=0) const
Sorting method itself .
Definition: InDetTrackZ0SortingTool.cxx:44
InDet::InDetTrackZ0SortingTool::interfaceID
static const InterfaceID & interfaceID()
Definition: InDetTrackZ0SortingTool.h:48