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 }
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_