CMS 3D CMS Logo

LayerResidual.h
Go to the documentation of this file.
1 #ifndef L1Trigger_TrackFindingTracklet_interface_LayerResidual_h
2 #define L1Trigger_TrackFindingTracklet_interface_LayerResidual_h
3 
5 
6 #include <cassert>
7 
8 namespace trklet {
9 
10  class Settings;
11  class Stub;
12 
13  class LayerResidual {
14  public:
15  LayerResidual() { valid_ = false; }
16 
17  ~LayerResidual() = default;
18 
19  void init(Settings const& settings,
20  int layer,
21  int iphiresid,
22  int izresid,
23  int istubid,
24  double phiresid,
25  double zresid,
26  double phiresidapprox,
27  double zresidapprox,
28  double rstub,
29  const Stub* stubptr);
30 
31  bool valid() const { return valid_; }
32 
33  const FPGAWord& fpgaphiresid() const {
34  assert(valid_);
35  return fpgaphiresid_;
36  };
37 
38  const FPGAWord& fpgazresid() const {
39  assert(valid_);
40  return fpgazresid_;
41  };
42 
43  const FPGAWord& fpgastubid() const {
44  assert(valid_);
45  return fpgastubid_;
46  };
47 
48  double phiresid() const {
49  assert(valid_);
50  return phiresid_;
51  };
52 
53  double zresid() const {
54  assert(valid_);
55  return zresid_;
56  };
57 
58  double phiresidapprox() const {
59  assert(valid_);
60  return phiresidapprox_;
61  };
62 
63  double zresidapprox() const {
64  assert(valid_);
65  return zresidapprox_;
66  };
67 
68  double rstub() const {
69  assert(valid_);
70  return rstub_;
71  }
72 
73  const Stub* stubptr() const {
74  assert(valid_);
75  return stubptr_;
76  }
77 
78  protected:
79  bool valid_;
80 
81  int layer_;
82 
86 
87  double phiresid_;
88  double zresid_;
89 
91  double zresidapprox_;
92 
93  double rstub_;
94  const Stub* stubptr_;
95  };
96 
97 }; // namespace trklet
98 #endif
trklet::LayerResidual::fpgastubid_
FPGAWord fpgastubid_
Definition: LayerResidual.h:85
trklet::LayerResidual::stubptr_
const Stub * stubptr_
Definition: LayerResidual.h:94
trklet::LayerResidual::zresidapprox
double zresidapprox() const
Definition: LayerResidual.h:63
trklet::LayerResidual::rstub_
double rstub_
Definition: LayerResidual.h:93
trklet::LayerResidual::phiresidapprox_
double phiresidapprox_
Definition: LayerResidual.h:90
trklet::LayerResidual::zresidapprox_
double zresidapprox_
Definition: LayerResidual.h:91
trklet::LayerResidual::init
void init(Settings const &settings, int layer, int iphiresid, int izresid, int istubid, double phiresid, double zresid, double phiresidapprox, double zresidapprox, double rstub, const Stub *stubptr)
Definition: LayerResidual.cc:7
trklet::Settings
Definition: Settings.h:26
trklet::LayerResidual::fpgaphiresid
const FPGAWord & fpgaphiresid() const
Definition: LayerResidual.h:33
cms::cuda::assert
assert(be >=bs)
trklet::LayerResidual::zresid
double zresid() const
Definition: LayerResidual.h:53
trklet::LayerResidual::LayerResidual
LayerResidual()
Definition: LayerResidual.h:15
trklet::LayerResidual::phiresid
double phiresid() const
Definition: LayerResidual.h:48
FPGAWord.h
trklet::LayerResidual::stubptr
const Stub * stubptr() const
Definition: LayerResidual.h:73
trklet::LayerResidual::zresid_
double zresid_
Definition: LayerResidual.h:88
trklet::Stub
Definition: Stub.h:16
trklet::LayerResidual::fpgazresid_
FPGAWord fpgazresid_
Definition: LayerResidual.h:84
trklet::LayerResidual::phiresid_
double phiresid_
Definition: LayerResidual.h:87
trklet::LayerResidual::phiresidapprox
double phiresidapprox() const
Definition: LayerResidual.h:58
trklet::FPGAWord
Definition: FPGAWord.h:9
trklet::LayerResidual::valid
bool valid() const
Definition: LayerResidual.h:31
trklet::LayerResidual::rstub
double rstub() const
Definition: LayerResidual.h:68
trklet::LayerResidual::valid_
bool valid_
Definition: LayerResidual.h:79
trklet
Definition: AllProjectionsMemory.h:9
trklet::LayerResidual
Definition: LayerResidual.h:13
trklet::LayerResidual::fpgastubid
const FPGAWord & fpgastubid() const
Definition: LayerResidual.h:43
trklet::LayerResidual::layer_
int layer_
Definition: LayerResidual.h:81
trklet::LayerResidual::fpgaphiresid_
FPGAWord fpgaphiresid_
Definition: LayerResidual.h:83
trklet::LayerResidual::~LayerResidual
~LayerResidual()=default
trklet::LayerResidual::fpgazresid
const FPGAWord & fpgazresid() const
Definition: LayerResidual.h:38