ATLAS Offline Software
Loading...
Searching...
No Matches
TruthView.h
Go to the documentation of this file.
1/* emacs: this is -*- c++ -*- */
21
22
23#ifndef TRIGIDR4MONITORING_TRUTHVIEW_H
24#define TRIGIDR4MONITORING_TRUTHVIEW_H
25
26#include "TrackView.h"
27
28
31
32class TruthView : public TrackView {
33
34public:
35
36 template<typename T>
37 TruthView(const T* pobj) : TrackView(pobj), m_z0(0), m_d0(0), m_phi(0) { }
38
39 TruthView( const TruthView& t ) = default;
40
41 TruthView( const TruthView* ) = delete; // don't want implicitly creating a TruthView with an internal TruthView*
42 TruthView( TruthView* ) = delete;
43
44 virtual ~TruthView() = default;
45
46 bool hasDecorations() const override { return true; }
47
48 float z0() const override { return m_z0; }
49 float d0() const override { return m_d0; }
50 float phi() const override { return m_phi; }
51
52 void add_z0( float z0 ) { m_z0 = z0; }
53 void add_d0( float d0 ) { m_d0 = d0; }
54 void add_phi( float phi ) { m_phi = phi; }
55
56private:
57
58 float m_z0;
59 float m_d0;
60 float m_phi;
61
62};
63
64
65#endif // TRIGIDR4MONITORING_TRUTHVIEW_H
66
67
68
69
70
71
72
73
74
75
TrackView(const T *pobj)
Definition TrackView.h:48
TruthView(const TruthView *)=delete
void add_z0(float z0)
Definition TruthView.h:52
float m_z0
Definition TruthView.h:58
float m_d0
Definition TruthView.h:59
float m_phi
Definition TruthView.h:60
TruthView(const T *pobj)
Definition TruthView.h:37
TruthView(const TruthView &t)=default
virtual ~TruthView()=default
float phi() const override
Definition TruthView.h:50
TruthView(TruthView *)=delete
void add_phi(float phi)
Definition TruthView.h:54
float z0() const override
Definition TruthView.h:48
bool hasDecorations() const override
Definition TruthView.h:46
float d0() const override
Definition TruthView.h:49
void add_d0(float d0)
Definition TruthView.h:53