File indexing completed on 2024-04-06 12:04:01
0001
0002
0003
0004
0005
0006
0007
0008 #include "DataFormats/CTPPSDigi/interface/TotemTimingDigi.h"
0009
0010 TotemTimingDigi::TotemTimingDigi(const uint8_t hwId,
0011 const uint64_t fpgaTimestamp,
0012 const uint16_t timestampA,
0013 const uint16_t timestampB,
0014 const uint16_t cellInfo,
0015 const std::vector<uint8_t>& samples,
0016 const TotemTimingEventInfo& totemTimingEventInfo)
0017 : hwId_(hwId),
0018 fpgaTimestamp_(fpgaTimestamp),
0019 timestampA_(timestampA),
0020 timestampB_(timestampB),
0021 cellInfo_(cellInfo),
0022 samples_(samples),
0023 totemTimingEventInfo_(totemTimingEventInfo) {}
0024
0025 TotemTimingDigi::TotemTimingDigi() : hwId_(0), fpgaTimestamp_(0), timestampA_(0), timestampB_(0), cellInfo_(0) {}
0026
0027
0028 bool TotemTimingDigi::operator==(const TotemTimingDigi& digi) const {
0029 if (hwId_ != digi.hwId_ || fpgaTimestamp_ != digi.fpgaTimestamp_ || timestampA_ != digi.timestampA_ ||
0030 timestampB_ != digi.timestampB_ || cellInfo_ != digi.cellInfo_ || samples_ != digi.samples_)
0031 return false;
0032 return true;
0033 }