ATLAS Offline Software
Loading...
Searching...
No Matches
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
17namespace jet {
18
22
24
25public:
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
39protected:
40
41 std::vector<const xAOD::Vertex*> m_vertex;
43
44};
45
46} // end jet namespace
47
49
50#endif
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
File providing the different SG_BASE macros.
Class to hold N-to-one aassociations between tracks and vertices.
const xAOD::Vertex * associatedVertex(const xAOD::TrackParticle *trk) const
TrackVertexAssociation(const xAOD::TrackParticleContainer *trkCont=0)
void associate(const xAOD::TrackParticle *trk, const xAOD::Vertex *vtx)
std::vector< const xAOD::Vertex * > m_vertex
const xAOD::TrackParticleContainer * m_trackContainer
std::vector< const xAOD::TrackParticle * > associatedTracks(const xAOD::Vertex *vtx) const
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Vertex_v1 Vertex
Define the latest version of the vertex class.
TrackParticleContainer_v1 TrackParticleContainer
Definition of the current "TrackParticle container version".