ATLAS Offline Software
JetFitterInitializationHelper.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
23 #ifndef TrkJetFitter_JetFitterInitializationHelper_H
24 #define TrkJetFitter_JetFitterInitializationHelper_H
25 
26 #include "GaudiKernel/ToolHandle.h"
27 #include <utility>
28 #include <vector>
31 
32 
33 namespace Trk {
34  class TrackParticleBase;
35  class Track;
36  class VxJetCandidate;
37  class RecVertex;
38  class IVertexLinearizedTrackFactory;
39 
40  static const InterfaceID IID_JetFitterInitializationHelper("Trk::JetFitterInitializationHelper", 1, 0);
41 
42 
44  {
45 
46  public:
47 
48  static const InterfaceID& interfaceID() {
49  return IID_JetFitterInitializationHelper;
50  }
51 
52  virtual StatusCode initialize() override;
53 
58  JetFitterInitializationHelper(const std::string& t, const std::string& n, const IInterface* p);
59 
65 
72  VxJetCandidate * initializeJetCandidate(const std::vector<const Trk::ITrackLink*> & vectorOfLink,
73  const RecVertex* primaryVertex,
74  const Amg::Vector3D* jetdirection=0,
75  const Amg::Vector3D* linearizationjetdirection=0) const;
76 
77 
83  VxJetCandidate * initializeJetCandidate(const std::vector<const Trk::Track*> & vectorOfT,
84  const RecVertex* primaryVertex,
85  const Amg::Vector3D* jetdirection=0,
86  const Amg::Vector3D* linearizationjetdirection=0) const;
87 
94  VxJetCandidate * initializeJetCandidate(const std::vector<const Trk::TrackParticleBase*> & vectorOfTP,
95  const RecVertex* primaryVertex,
96  const Amg::Vector3D* jetdirection=0,
97  const Amg::Vector3D* linearizationjetdirection=0) const;
98 
110  static void updateTrackNumbering(VxJetCandidate*) ;
111 
123  bool signfliptreatment=false,
124  double maxdistance=1.) const; //CLHEP::mm
125 
126  private:
127 
133  const RecVertex* primaryVertex,
134  const Amg::Vector3D* jetdirection=0,
135  const Amg::Vector3D* linearizationjetdirection=0) const;
136 
137 
138  ToolHandle<IVertexLinearizedTrackFactory> m_linearizedFactory;
139 
149 
159 
160  };//end class declaration
161 
162 }//end namespace Trk
163 
164 
165 #endif
Trk::JetFitterInitializationHelper::JetFitterInitializationHelper
JetFitterInitializationHelper(const std::string &t, const std::string &n, const IInterface *p)
Constructor.
Definition: JetFitterInitializationHelper.cxx:89
Trk::JetFitterInitializationHelper::m_linearizedFactory
ToolHandle< IVertexLinearizedTrackFactory > m_linearizedFactory
Definition: JetFitterInitializationHelper.h:138
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
Trk::JetFitterInitializationHelper::~JetFitterInitializationHelper
~JetFitterInitializationHelper()
Destructor.
Trk::JetFitterInitializationHelper::linearizeAllTracks
void linearizeAllTracks(VxJetCandidate *, bool signfliptreatment=false, double maxdistance=1.) const
Calls the linearization of all the tracks (adds the Linearized Track data member to every VxTrackAtVe...
Definition: JetFitterInitializationHelper.cxx:351
Trk::RecVertex
Trk::RecVertex inherits from Trk::Vertex.
Definition: RecVertex.h:44
Trk::JetFitterInitializationHelper::initializeJetClusters
VxJetCandidate * initializeJetClusters(VxJetCandidate *myJetCandidate, const RecVertex *primaryVertex, const Amg::Vector3D *jetdirection=0, const Amg::Vector3D *linearizationjetdirection=0) const
Internal method to initialized a VxJetCandidate.
Definition: JetFitterInitializationHelper.cxx:193
Trk::JetFitterInitializationHelper::updateTrackNumbering
static void updateTrackNumbering(VxJetCandidate *)
Does the update of the ordering of the vertices along the jetaxis.
Definition: JetFitterInitializationHelper.cxx:286
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
Trk::JetFitterInitializationHelper::m_errphiJetAxis
float m_errphiJetAxis
Error on phi on the flight direction you want to initialize the fit with (set errphiJetAxis by JobOpt...
Definition: JetFitterInitializationHelper.h:148
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
Trk::JetFitterInitializationHelper::initializeJetCandidate
VxJetCandidate * initializeJetCandidate(const std::vector< const Trk::ITrackLink * > &vectorOfLink, const RecVertex *primaryVertex, const Amg::Vector3D *jetdirection=0, const Amg::Vector3D *linearizationjetdirection=0) const
Initialize the JetCandidate using a vector of Trk::ITrackLink* - needed for example if you run on ESD...
Definition: JetFitterInitializationHelper.cxx:129
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::VxJetCandidate
Definition: VxJetCandidate.h:72
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
Trk::JetFitterInitializationHelper::interfaceID
static const InterfaceID & interfaceID()
Definition: JetFitterInitializationHelper.h:48
Trk::JetFitterInitializationHelper::initialize
virtual StatusCode initialize() override
Definition: JetFitterInitializationHelper.cxx:109
Track
Definition: TriggerChamberClusterOnTrackCreator.h:21
AthAlgTool
Definition: AthAlgTool.h:26
Trk::JetFitterInitializationHelper::m_erretaJetAxis
float m_erretaJetAxis
Error on eta on the flight direction you want to initialize the fit with (set erretaJetAxis by JobOpt...
Definition: JetFitterInitializationHelper.h:158
Trk::JetFitterInitializationHelper
Februar 2007 (c) Atlas Detector Reconstruction Software.
Definition: JetFitterInitializationHelper.h:44