ATLAS Offline Software
VertexTrackIsolation.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // VertexTrackIsolation.h,
8 
9 #ifndef DERIVATIONFRAMEWORK_VertexTrackIsolation_H
10 #define DERIVATIONFRAMEWORK_VertexTrackIsolation_H
11 
12 #include <string>
13 
17 #include <vector>
19 
22 namespace DerivationFramework {
23 
25  public:
26  VertexTrackIsolation(const std::string& t, const std::string& n, const IInterface* p);
27 
30 
31  virtual StatusCode addBranches() const;
32 
33  bool isSame(const xAOD::Vertex* theVtx1, const xAOD::Vertex* theVtx2) const;
34  bool isContainedIn(const xAOD::Vertex* theVtx, const std::vector<const xAOD::Vertex*> &theColl) const;
35 
36  private:
37 
38  ToolHandle<xAOD::ITrackIsolationTool> m_trackIsoTool;
39 
40  std::string m_trackContainerName;
41  std::string m_vertexContainerName;
42  std::vector<unsigned int> m_cones;
43  std::vector<std::string> m_passFlags;
44  int m_vertexType; //Which type of primary vertices should be used? (7 = 0b111 are all at the moment)
45 
48 
51  };
52 }
53 
54 #endif
DerivationFramework::VertexTrackIsolation::addBranches
virtual StatusCode addBranches() const
Pass the thinning service
Definition: VertexTrackIsolation.cxx:125
DerivationFramework::VertexTrackIsolation
Definition: VertexTrackIsolation.h:24
DerivationFramework::VertexTrackIsolation::m_trackContainerName
std::string m_trackContainerName
Definition: VertexTrackIsolation.h:40
DerivationFramework::VertexTrackIsolation::initialize
StatusCode initialize()
Definition: VertexTrackIsolation.cxx:53
IAugmentationTool.h
DerivationFramework::VertexTrackIsolation::isContainedIn
bool isContainedIn(const xAOD::Vertex *theVtx, const std::vector< const xAOD::Vertex * > &theColl) const
Definition: VertexTrackIsolation.cxx:114
DerivationFramework::VertexTrackIsolation::m_cones
std::vector< unsigned int > m_cones
Definition: VertexTrackIsolation.h:42
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
DerivationFramework::IAugmentationTool
Definition: IAugmentationTool.h:24
DerivationFramework::VertexTrackIsolation::finalize
StatusCode finalize()
Definition: VertexTrackIsolation.cxx:76
DerivationFramework::VertexTrackIsolation::m_vertexType
int m_vertexType
Definition: VertexTrackIsolation.h:44
DerivationFramework::VertexTrackIsolation::m_trackIsoTool
ToolHandle< xAOD::ITrackIsolationTool > m_trackIsoTool
Definition: VertexTrackIsolation.h:38
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
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
DerivationFramework::VertexTrackIsolation::m_removeDuplicate
int m_removeDuplicate
Definition: VertexTrackIsolation.h:47
InDetTrackSelectionTool.h
DerivationFramework::VertexTrackIsolation::m_fixElecExclusion
bool m_fixElecExclusion
Definition: VertexTrackIsolation.h:49
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::VertexTrackIsolation::m_includeV0
bool m_includeV0
Definition: VertexTrackIsolation.h:50
DerivationFramework::VertexTrackIsolation::m_passFlags
std::vector< std::string > m_passFlags
Definition: VertexTrackIsolation.h:43
DerivationFramework::VertexTrackIsolation::m_doIsoPerTrk
bool m_doIsoPerTrk
Definition: VertexTrackIsolation.h:46
DerivationFramework::VertexTrackIsolation::isSame
bool isSame(const xAOD::Vertex *theVtx1, const xAOD::Vertex *theVtx2) const
Definition: VertexTrackIsolation.cxx:82
DerivationFramework::VertexTrackIsolation::m_vertexContainerName
std::string m_vertexContainerName
Definition: VertexTrackIsolation.h:41
DerivationFramework::VertexTrackIsolation::VertexTrackIsolation
VertexTrackIsolation(const std::string &t, const std::string &n, const IInterface *p)
Definition: VertexTrackIsolation.cxx:21
ITrackIsolationTool.h
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42
AthAlgTool
Definition: AthAlgTool.h:26