ATLAS Offline Software
Loading...
Searching...
No Matches
xAODVertexTraits.h
Go to the documentation of this file.
1// emacs: this is -*- c++ -*-
16
17#ifndef XAODVERTEXTRAITS_H
18#define XAODVERTEXTRAITS_H
19
21
22#include "VertexTraits.h"
23
24
25template<>
26struct VertexTraits<xAOD::Vertex> : public VertexTraitsBase<xAOD::Vertex> {
27
28public:
29
30 static float x(const xAOD::Vertex& v) { return v.x(); }
31 static float y(const xAOD::Vertex& v) { return v.y(); }
32 static float z(const xAOD::Vertex& v) { return v.z(); }
33
34 static float dx(const xAOD::Vertex& v) { return v.covariancePosition()(Trk::x,Trk::x); }
35 static float dy(const xAOD::Vertex& v) { return v.covariancePosition()(Trk::y,Trk::y); }
36 static float dz(const xAOD::Vertex& v) { return v.covariancePosition()(Trk::z,Trk::z); }
37
38 static size_t nTrackParticles(const xAOD::Vertex& v) { return v.nTrackParticles(); }
39
40 static float chiSquared(const xAOD::Vertex& v) { return v.chiSquared(); }
41 static float numberDoF(const xAOD::Vertex& v) { return v.numberDoF(); }
42
45
46 static int vertexType(const xAOD::Vertex& v) { return v.vertexType(); }
47
48};
49
50#endif // XAODVERTEXTRAITS_H
boost::graph_traits< boost::adjacency_list< boost::vecS, boost::vecS, boost::bidirectionalS > >::vertex_descriptor Vertex
@ x
Definition ParamDefs.h:55
@ z
global position (cartesian)
Definition ParamDefs.h:57
@ y
Definition ParamDefs.h:56
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Vertex_v1 Vertex
Define the latest version of the vertex class.
static float z(const xAOD::Vertex &v)
static float dz(const xAOD::Vertex &v)
static float dx(const xAOD::Vertex &v)
static float numberDoF(const xAOD::Vertex &v)
static float dy(const xAOD::Vertex &v)
static float y(const xAOD::Vertex &v)
static int vertexType(const xAOD::Vertex &v)
for another day, lest we forget ... static float time(const xAOD::Vertex& v) { return v....
static float x(const xAOD::Vertex &v)
static size_t nTrackParticles(const xAOD::Vertex &v)
static float chiSquared(const xAOD::Vertex &v)