ATLAS Offline Software
JetFitterTrackSelectorTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /*
6  * This tooltakes the input track collection of a jet candidate
7  * It runs a filter on track quality
8  * And separates tracks into primary vertex and secondary vertex tracks
9  * By computing their compatibility with the primary vertex
10  */
11 
12 #ifndef JETFITTER_TRACKSELECTOR_TOOL_H
13 #define JETFITTER_TRACKSELECTOR_TOOL_H 1
14 
16 #include "GaudiKernel/ToolHandle.h"
17 
19 #include "xAODTracking/Vertex.h"
20 
25 
28 
29 #include "VxVertex/RecVertex.h"
30 
31 namespace InDet {
32 
33  static const InterfaceID IID_JetFitterTrackSelectorTool("JetFitterTrackSelectorTool", 1, 0);
34 
36  public:
37 
38  static const InterfaceID& interfaceID() {
39  return IID_JetFitterTrackSelectorTool;
40  }
41 
42  virtual StatusCode initialize() override;
43 
44  JetFitterTrackSelectorTool(const std::string &t, const std::string &n, const IInterface *p);
46 
47  /*
48  * method for performing track selection
49  */
50  const Trk::SelectedTracksInJet* doTrackSelection(const xAOD::Vertex &primaryVertex,
51  const TLorentzVector &jetMomentum,
52  const std::vector<const xAOD::IParticle *> &inputTracks) const;
53 
54  private:
55  int computeTrackCompatibility( const xAOD::Vertex &primaryVertex,
56  const TLorentzVector &jetMomentum,
57  const xAOD::TrackParticle &trk_iter ) const;
58 
59  private:
60  ToolHandle< Trk::IExtrapolator > m_extrapolator {this,"Extrapolator","Trk::Extrapolator/InDetExtrapolator",""};
61  ToolHandle< InDet::InDetJetFitterUtils > m_jetFitterUtils {this,"InDetJetFitterUtils","InDet::InDetJetFitterUtils/InDetJetFitterUtils",""};
62  ToolHandle< Trk::ITrackSelectorTool > m_trkFilter {this,"TrackSelector","InDet::InDetDetailedTrackSelectorTool",""};
63 
64  private:
65  Gaudi::Property< bool > m_revertFromPositiveToNegativeTags {this,"revertFromPositiveToNegativeTags",false,""};
66  Gaudi::Property< double > m_cutCompatibilityPrimaryVertexForPositiveLifetimeTracks {this,"cutCompPrimaryVertexForPosLifetimeTracks",1e-1,""};
67  Gaudi::Property< double > m_cutCompatibilityPrimaryVertexForNegativeLifetimeTracks {this,"cutCompPrimaryVertexForNegLifetimeTracks",5e-2,""};
68  };
69 
70 }
71 
72 #endif
RecVertex.h
Trk::SelectedTracksInJet
Definition: SelectedTracksInJet.h:62
InDet::JetFitterTrackSelectorTool::computeTrackCompatibility
int computeTrackCompatibility(const xAOD::Vertex &primaryVertex, const TLorentzVector &jetMomentum, const xAOD::TrackParticle &trk_iter) const
Definition: JetFitterTrackSelectorTool.cxx:98
InDet::JetFitterTrackSelectorTool::m_trkFilter
ToolHandle< Trk::ITrackSelectorTool > m_trkFilter
Definition: JetFitterTrackSelectorTool.h:62
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
InDet
DUMMY Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
InDetJetFitterUtils.h
InDet::JetFitterTrackSelectorTool
Definition: JetFitterTrackSelectorTool.h:35
IExtrapolator.h
SelectedTracksInJet.h
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
InDet::JetFitterTrackSelectorTool::m_cutCompatibilityPrimaryVertexForPositiveLifetimeTracks
Gaudi::Property< double > m_cutCompatibilityPrimaryVertexForPositiveLifetimeTracks
Definition: JetFitterTrackSelectorTool.h:66
InDet::JetFitterTrackSelectorTool::m_cutCompatibilityPrimaryVertexForNegativeLifetimeTracks
Gaudi::Property< double > m_cutCompatibilityPrimaryVertexForNegativeLifetimeTracks
Definition: JetFitterTrackSelectorTool.h:67
LinkToXAODTrackParticle.h
python.TrigInDetConfig.inputTracks
inputTracks
Definition: TrigInDetConfig.py:168
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
InDet::JetFitterTrackSelectorTool::m_jetFitterUtils
ToolHandle< InDet::InDetJetFitterUtils > m_jetFitterUtils
Definition: JetFitterTrackSelectorTool.h:61
InDet::JetFitterTrackSelectorTool::~JetFitterTrackSelectorTool
~JetFitterTrackSelectorTool()
Vertex.h
InDet::JetFitterTrackSelectorTool::initialize
virtual StatusCode initialize() override
Definition: JetFitterTrackSelectorTool.cxx:17
InDet::JetFitterTrackSelectorTool::m_extrapolator
ToolHandle< Trk::IExtrapolator > m_extrapolator
Definition: JetFitterTrackSelectorTool.h:60
InDet::JetFitterTrackSelectorTool::doTrackSelection
const Trk::SelectedTracksInJet * doTrackSelection(const xAOD::Vertex &primaryVertex, const TLorentzVector &jetMomentum, const std::vector< const xAOD::IParticle * > &inputTracks) const
Definition: JetFitterTrackSelectorTool.cxx:38
DiTauMassTools::MaxHistStrategyV2::e
e
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:26
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
AthAlgTool
Definition: AthAlgTool.h:26
InDet::JetFitterTrackSelectorTool::JetFitterTrackSelectorTool
JetFitterTrackSelectorTool(const std::string &t, const std::string &n, const IInterface *p)
Definition: JetFitterTrackSelectorTool.cxx:9
ITrackSelectorTool.h
InDet::JetFitterTrackSelectorTool::interfaceID
static const InterfaceID & interfaceID()
Definition: JetFitterTrackSelectorTool.h:38
TrackParticleContainer.h
InDet::JetFitterTrackSelectorTool::m_revertFromPositiveToNegativeTags
Gaudi::Property< bool > m_revertFromPositiveToNegativeTags
Definition: JetFitterTrackSelectorTool.h:65