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 
25 TotemTimingDigi::TotemTimingDigi() : hwId_(0), fpgaTimestamp_(0), timestampA_(0), timestampB_(0), cellInfo_(0) {}
26 
27 // Comparison
29  if (hwId_ != digi.hwId_ || fpgaTimestamp_ != digi.fpgaTimestamp_ || timestampA_ != digi.timestampA_ ||
30  timestampB_ != digi.timestampB_ || cellInfo_ != digi.cellInfo_ || samples_ != digi.samples_)
31  return false;
32  return true;
33 }
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_