forked from sPHENIX-Collaboration/coresoftware
/
SvtxTrackState.h
84 lines (60 loc) · 1.93 KB
/
SvtxTrackState.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#ifndef __SVTXTRACKSTATE_H__
#define __SVTXTRACKSTATE_H__
#include <phool/PHObject.h>
#include <cmath>
class SvtxTrackState : public PHObject
{
public:
~SvtxTrackState() override {}
void identify(std::ostream &os = std::cout) const override
{
os << "SvtxTrackState base class" << std::endl;
}
int isValid() const override { return 0; }
PHObject *CloneMe() const override { return nullptr; }
virtual float get_pathlength() const { return NAN; }
virtual float get_x() const { return NAN; }
virtual void set_x(float) {}
virtual float get_y() const { return NAN; }
virtual void set_y(float) {}
virtual float get_z() const { return NAN; }
virtual void set_z(float) {}
virtual float get_pos(unsigned int /*i*/) const { return NAN; }
virtual float get_px() const { return NAN; }
virtual void set_px(float) {}
virtual float get_py() const { return NAN; }
virtual void set_py(float) {}
virtual float get_pz() const { return NAN; }
virtual void set_pz(float) {}
virtual float get_mom(unsigned int /*i*/) const { return NAN; }
virtual float get_p() const { return NAN; }
virtual float get_pt() const { return NAN; }
virtual float get_eta() const { return NAN; }
virtual float get_phi() const { return NAN; }
virtual float get_error(unsigned int /*i*/, unsigned int /*j*/) const { return NAN; }
virtual void set_error(unsigned int /*i*/, unsigned int /*j*/, float /*value*/) {}
virtual std::string get_name() const { return ""; }
virtual void set_name(const std::string &/*name*/) {}
///@name convenience interface, also found in Trkrcluster
//@{
/// rphi error
virtual float get_rphi_error() const
{
return NAN;
}
/// phi error
virtual float get_phi_error() const
{
return NAN;
}
/// z error
virtual float get_z_error() const
{
return NAN;
}
//@}
protected:
SvtxTrackState(float /*pathlength*/ = 0.0) {}
ClassDefOverride(SvtxTrackState, 1);
};
#endif