CMS 3D CMS Logo

TotemTimingDigi.cc
Go to the documentation of this file.
1 
9 
11  const uint64_t fpgaTimestamp,
12  const uint16_t timestampA,
13  const uint16_t timestampB,
14  const uint16_t cellInfo,
15  const std::vector<uint8_t>& samples,
16  const TotemTimingEventInfo& totemTimingEventInfo)
17  : hwId_(hwId),
18  fpgaTimestamp_(fpgaTimestamp),
19  timestampA_(timestampA),
20  timestampB_(timestampB),
21  cellInfo_(cellInfo),
22  samples_(samples),
23  totemTimingEventInfo_(totemTimingEventInfo) {}
24 
26  : hwId_(digi.hwId_),
27  fpgaTimestamp_(digi.fpgaTimestamp_),
28  timestampA_(digi.timestampA_),
29  timestampB_(digi.timestampB_),
30  cellInfo_(digi.cellInfo_),
31  samples_(digi.samples_),
32  totemTimingEventInfo_(digi.totemTimingEventInfo_) {}
33 
34 TotemTimingDigi::TotemTimingDigi() : hwId_(0), fpgaTimestamp_(0), timestampA_(0), timestampB_(0), cellInfo_(0) {}
35 
36 // Comparison
38  if (hwId_ != digi.hwId_ || fpgaTimestamp_ != digi.fpgaTimestamp_ || timestampA_ != digi.timestampA_ ||
39  timestampB_ != digi.timestampB_ || cellInfo_ != digi.cellInfo_ || samples_ != digi.samples_)
40  return false;
41  return true;
42 }
TotemTimingDigi::hwId_
uint8_t hwId_
Definition: TotemTimingDigi.h:112
TotemTimingDigi::timestampB_
uint16_t timestampB_
Definition: TotemTimingDigi.h:115
TotemTimingDigi.h
EgammaValidation_cff.samples
samples
Definition: EgammaValidation_cff.py:19
TotemTimingDigi
Definition: TotemTimingDigi.h:19
TotemTimingDigi::timestampA_
uint16_t timestampA_
Definition: TotemTimingDigi.h:114
TotemTimingDigi::samples_
std::vector< uint8_t > samples_
Definition: TotemTimingDigi.h:118
TotemTimingEventInfo
Definition: TotemTimingEventInfo.h:17
TotemTimingDigi::cellInfo_
uint16_t cellInfo_
Definition: TotemTimingDigi.h:116
TotemTimingDigi::TotemTimingDigi
TotemTimingDigi()
Definition: TotemTimingDigi.cc:34
TotemTimingDigi::operator==
bool operator==(const TotemTimingDigi &digi) const
Digis are equal if they have all the same values, NOT checking the samples!
Definition: TotemTimingDigi.cc:37
cond::uint64_t
unsigned long long uint64_t
Definition: Time.h:13
TotemTimingDigi::fpgaTimestamp_
uint64_t fpgaTimestamp_
Definition: TotemTimingDigi.h:113