ATLAS Offline Software
Loading...
Searching...
No Matches
VertexTraits.h
Go to the documentation of this file.
1// emacs: this is -*- c++ -*-
17
18
19#ifndef VERTEXTRAITS_H
20#define VERTEXTRAITS_H
21
22#include <cstdint>
23#include <cmath>
24#include <stdexcept>
25
26
27template<typename T>
29
30 static float x(const T& v) { return v.x(); }
31 static float y(const T& v) { return v.y(); }
32 static float z(const T& v) { return v.z(); }
33
34 static float dx(const T& ) { return 0; }
35 static float dy(const T& ) { return 0; }
36 static float dz(const T& ) { return 0; }
37
38 static size_t nTrackParticles(const T&) { return 0; }
39
40 static float chiSquared(const T& ) { return 0; }
41 static float numberDoF(const T& ) { return 0; }
42
43 static float time(const T& ) { return 0; }
44
45 static int vertexType(const T& ) { return 0; }
46
47};
48
49template<typename T>
50struct VertexTraits : public VertexTraitsBase<T> { };
51
52template<typename T>
53struct VertexTraits<const T> : VertexTraits<T> { };
54
55
56
57#endif // VERTEXTRAITS_H
58
59
60
61
62
63
64
static float time(const T &)
static float z(const T &v)
static float x(const T &v)
static float y(const T &v)
static int vertexType(const T &)
static float dx(const T &)
static float dy(const T &)
static float numberDoF(const T &)
static float dz(const T &)
static float chiSquared(const T &)
static size_t nTrackParticles(const T &)