CMS 3D CMS Logo

DiskResidual.h
Go to the documentation of this file.
1 #ifndef L1Trigger_TrackFindingTracklet_interface_DiskResidual_h
2 #define L1Trigger_TrackFindingTracklet_interface_DiskResidual_h
3 
5 
6 #include <cassert>
7 
8 namespace trklet {
9 
10  class Settings;
11  class Stub;
12 
13  class DiskResidual {
14  public:
15  DiskResidual() { valid_ = false; }
16 
17  ~DiskResidual() = default;
18 
19  void init(Settings const& settings,
20  int disk,
21  int iphiresid,
22  int irresid,
23  int istubid,
24  double phiresid,
25  double rresid,
26  double phiresidapprox,
27  double rresidapprox,
28  double zstub,
29  double alpha,
31  const Stub* stubptr);
32 
33  bool valid() const { return valid_; }
34 
35  const FPGAWord& fpgaphiresid() const {
36  assert(valid_);
37  return fpgaphiresid_;
38  };
39 
40  const FPGAWord& fpgarresid() const {
41  assert(valid_);
42  return fpgarresid_;
43  };
44 
45  const FPGAWord& fpgastubid() const {
46  assert(valid_);
47  return fpgastubid_;
48  };
49 
50  double phiresid() const {
51  assert(valid_);
52  return phiresid_;
53  };
54 
55  double rresid() const {
56  assert(valid_);
57  return rresid_;
58  };
59 
60  double phiresidapprox() const {
61  assert(valid_);
62  return phiresidapprox_;
63  };
64 
65  double rresidapprox() const {
66  assert(valid_);
67  return rresidapprox_;
68  };
69 
70  double zstub() const {
71  assert(valid_);
72  return zstub_;
73  };
74 
75  double alpha() const {
76  assert(valid_);
77  return alpha_;
78  };
79 
80  const FPGAWord& ialpha() const {
81  assert(valid_);
82  return ialpha_;
83  };
84 
85  const Stub* stubptr() const {
86  assert(valid_);
87  return stubptr_;
88  };
89 
90  protected:
91  bool valid_;
92 
93  int disk_;
94 
98 
99  double phiresid_;
100  double rresid_;
101 
104 
105  double zstub_;
106  double alpha_;
108  const Stub* stubptr_;
109  };
110 
111 }; // namespace trklet
112 #endif
trklet::DiskResidual::fpgaphiresid_
FPGAWord fpgaphiresid_
Definition: DiskResidual.h:95
trklet::DiskResidual::stubptr_
const Stub * stubptr_
Definition: DiskResidual.h:108
trklet::DiskResidual::rresidapprox
double rresidapprox() const
Definition: DiskResidual.h:65
trklet::DiskResidual::phiresidapprox
double phiresidapprox() const
Definition: DiskResidual.h:60
trklet::DiskResidual
Definition: DiskResidual.h:13
trklet::Settings
Definition: Settings.h:26
cms::cuda::assert
assert(be >=bs)
trklet::DiskResidual::alpha_
double alpha_
Definition: DiskResidual.h:106
trklet::DiskResidual::phiresidapprox_
double phiresidapprox_
Definition: DiskResidual.h:102
trklet::DiskResidual::valid
bool valid() const
Definition: DiskResidual.h:33
FPGAWord.h
trklet::DiskResidual::DiskResidual
DiskResidual()
Definition: DiskResidual.h:15
trklet::DiskResidual::~DiskResidual
~DiskResidual()=default
trklet::Stub
Definition: Stub.h:16
trklet::DiskResidual::rresidapprox_
double rresidapprox_
Definition: DiskResidual.h:103
trklet::DiskResidual::fpgastubid
const FPGAWord & fpgastubid() const
Definition: DiskResidual.h:45
trklet::DiskResidual::init
void init(Settings const &settings, int disk, int iphiresid, int irresid, int istubid, double phiresid, double rresid, double phiresidapprox, double rresidapprox, double zstub, double alpha, FPGAWord ialpha, const Stub *stubptr)
Definition: DiskResidual.cc:7
trklet::FPGAWord
Definition: FPGAWord.h:9
trklet::DiskResidual::fpgarresid_
FPGAWord fpgarresid_
Definition: DiskResidual.h:96
trklet::DiskResidual::phiresid_
double phiresid_
Definition: DiskResidual.h:99
trklet::DiskResidual::fpgastubid_
FPGAWord fpgastubid_
Definition: DiskResidual.h:97
trklet::DiskResidual::zstub
double zstub() const
Definition: DiskResidual.h:70
trklet::DiskResidual::valid_
bool valid_
Definition: DiskResidual.h:88
trklet::DiskResidual::stubptr
const Stub * stubptr() const
Definition: DiskResidual.h:85
trklet::DiskResidual::ialpha_
FPGAWord ialpha_
Definition: DiskResidual.h:107
trklet::DiskResidual::fpgaphiresid
const FPGAWord & fpgaphiresid() const
Definition: DiskResidual.h:35
trklet
Definition: AllProjectionsMemory.h:9
trklet::DiskResidual::zstub_
double zstub_
Definition: DiskResidual.h:105
trklet::DiskResidual::rresid
double rresid() const
Definition: DiskResidual.h:55
trklet::DiskResidual::fpgarresid
const FPGAWord & fpgarresid() const
Definition: DiskResidual.h:40
trklet::DiskResidual::disk_
int disk_
Definition: DiskResidual.h:93
trklet::DiskResidual::rresid_
double rresid_
Definition: DiskResidual.h:100
trklet::DiskResidual::ialpha
const FPGAWord & ialpha() const
Definition: DiskResidual.h:80
trklet::DiskResidual::phiresid
double phiresid() const
Definition: DiskResidual.h:50
trklet::DiskResidual::alpha
double alpha() const
Definition: DiskResidual.h:75