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_),
30  cellInfo_(digi.cellInfo_),
31  samples_(digi.samples_),
33 
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 }
TotemTimingEventInfo totemTimingEventInfo_
bool operator==(const TotemTimingDigi &digi) const
Digis are equal if they have all the same values, NOT checking the samples!
unsigned long long uint64_t
Definition: Time.h:13
uint64_t fpgaTimestamp_
std::vector< uint8_t > samples_