ATLAS Offline Software
TrackVertexAssociation.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // TrackVertexAssociation.h
6 
7 #ifndef JETEDM_TRACKVERTEXASSOCIATION_H
8 #define JETEDM_TRACKVERTEXASSOCIATION_H
9 
10 #include <vector>
11 
12 #include "xAODTracking/Vertex.h"
15 #include "xAODCore/CLASS_DEF.h"
16 
17 namespace jet {
18 
22 
24 
25 public:
26 
27  // Ctor.
29 
30  // Associate a track with a vertex.
31  void associate(const xAOD::TrackParticle* trk, const xAOD::Vertex* vtx);
32 
33  // Return the vertex associated to a track.
34  const xAOD::Vertex* associatedVertex(const xAOD::TrackParticle* trk) const;
35 
36  // Return the tracks associatged with a vertex.
37  std::vector<const xAOD::TrackParticle*> associatedTracks(const xAOD::Vertex* vtx) const;
38 
39 protected:
40 
41  std::vector<const xAOD::Vertex*> m_vertex;
43 
44 };
45 
46 } // end jet namespace
47 
49 
50 #endif
jet::TrackVertexAssociation::TrackVertexAssociation
TrackVertexAssociation(const xAOD::TrackParticleContainer *trkCont=0)
Definition: TrackVertexAssociation.cxx:9
jet::TrackVertexAssociation::m_trackContainer
const xAOD::TrackParticleContainer * m_trackContainer
Definition: TrackVertexAssociation.h:42
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
jet::TrackVertexAssociation
Class to hold N-to-one aassociations between tracks and vertices.
Definition: TrackVertexAssociation.h:23
jet::TrackVertexAssociation::associatedTracks
std::vector< const xAOD::TrackParticle * > associatedTracks(const xAOD::Vertex *vtx) const
Definition: TrackVertexAssociation.cxx:27
jet::TrackVertexAssociation::associate
void associate(const xAOD::TrackParticle *trk, const xAOD::Vertex *vtx)
Definition: TrackVertexAssociation.cxx:19
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
Vertex.h
jet::TrackVertexAssociation::associatedVertex
const xAOD::Vertex * associatedVertex(const xAOD::TrackParticle *trk) const
Definition: TrackVertexAssociation.cxx:23
jet::TrackVertexAssociation::m_vertex
std::vector< const xAOD::Vertex * > m_vertex
Definition: TrackVertexAssociation.h:41
CLASS_DEF.h
File providing the different SG_BASE macros.
TrackParticle.h
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
TrackParticleContainer.h