File indexing completed on 2023-03-17 10:49:36
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(const TotemTimingDigi& digi)
0026 : hwId_(digi.hwId_),
0027 fpgaTimestamp_(digi.fpgaTimestamp_),
0028 timestampA_(digi.timestampA_),
0029 timestampB_(digi.timestampB_),
0030 cellInfo_(digi.cellInfo_),
0031 samples_(digi.samples_),
0032 totemTimingEventInfo_(digi.totemTimingEventInfo_) {}
0033
0034 TotemTimingDigi::TotemTimingDigi() : hwId_(0), fpgaTimestamp_(0), timestampA_(0), timestampB_(0), cellInfo_(0) {}
0035
0036
0037 bool TotemTimingDigi::operator==(const TotemTimingDigi& digi) const {
0038 if (hwId_ != digi.hwId_ || fpgaTimestamp_ != digi.fpgaTimestamp_ || timestampA_ != digi.timestampA_ ||
0039 timestampB_ != digi.timestampB_ || cellInfo_ != digi.cellInfo_ || samples_ != digi.samples_)
0040 return false;
0041 return true;
0042 }