ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
Jet
JetEDM
JetEDM
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
"
13
#include "
xAODTracking/TrackParticle.h
"
14
#include "
xAODTracking/TrackParticleContainer.h
"
15
#include "
xAODCore/CLASS_DEF.h
"
16
17
namespace
jet
{
18
22
23
class
TrackVertexAssociation
{
24
25
public
:
26
27
// Ctor.
28
TrackVertexAssociation
(
const
xAOD::TrackParticleContainer
* trkCont=0) ;
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
;
42
const
xAOD::TrackParticleContainer
*
m_trackContainer
;
43
44
};
45
46
}
// end jet namespace
47
48
CLASS_DEF
(
jet::TrackVertexAssociation
, 34721930 , 1)
49
50
#endif
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:67
CLASS_DEF.h
File providing the different SG_BASE macros.
TrackParticleContainer.h
TrackParticle.h
Vertex.h
jet::TrackVertexAssociation
Class to hold N-to-one aassociations between tracks and vertices.
Definition
TrackVertexAssociation.h:23
jet::TrackVertexAssociation::associatedVertex
const xAOD::Vertex * associatedVertex(const xAOD::TrackParticle *trk) const
Definition
TrackVertexAssociation.cxx:23
jet::TrackVertexAssociation::TrackVertexAssociation
TrackVertexAssociation(const xAOD::TrackParticleContainer *trkCont=0)
Definition
TrackVertexAssociation.cxx:9
jet::TrackVertexAssociation::associate
void associate(const xAOD::TrackParticle *trk, const xAOD::Vertex *vtx)
Definition
TrackVertexAssociation.cxx:19
jet::TrackVertexAssociation::m_vertex
std::vector< const xAOD::Vertex * > m_vertex
Definition
TrackVertexAssociation.h:41
jet::TrackVertexAssociation::m_trackContainer
const xAOD::TrackParticleContainer * m_trackContainer
Definition
TrackVertexAssociation.h:42
jet::TrackVertexAssociation::associatedTracks
std::vector< const xAOD::TrackParticle * > associatedTracks(const xAOD::Vertex *vtx) const
Definition
TrackVertexAssociation.cxx:27
jet
Definition
JetCalibTools_PlotJESFactors.cxx:23
xAOD::TrackParticle
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Definition
Event/xAOD/xAODTracking/xAODTracking/TrackParticle.h:13
xAOD::Vertex
Vertex_v1 Vertex
Define the latest version of the vertex class.
Definition
Event/xAOD/xAODTracking/xAODTracking/Vertex.h:16
xAOD::TrackParticleContainer
TrackParticleContainer_v1 TrackParticleContainer
Definition of the current "TrackParticle container version".
Definition
Event/xAOD/xAODTracking/xAODTracking/TrackParticleContainer.h:14
Generated on
for ATLAS Offline Software by
1.17.0