From dfb8db982012bfa0256b9130fb85381fec931a07 Mon Sep 17 00:00:00 2001 From: Ivan Razumov Date: Fri, 17 Nov 2023 14:56:03 +0100 Subject: [PATCH] Remove explicit copy-constructor from TotemTimingDigi --- DataFormats/CTPPSDigi/interface/TotemTimingDigi.h | 2 -- .../CTPPSDigi/interface/TotemTimingEventInfo.h | 2 -- DataFormats/CTPPSDigi/src/TotemTimingDigi.cc | 9 --------- DataFormats/CTPPSDigi/src/TotemTimingEventInfo.cc | 12 ------------ 4 files changed, 25 deletions(-) diff --git a/DataFormats/CTPPSDigi/interface/TotemTimingDigi.h b/DataFormats/CTPPSDigi/interface/TotemTimingDigi.h index 3a77553152468..e5858355153a6 100644 --- a/DataFormats/CTPPSDigi/interface/TotemTimingDigi.h +++ b/DataFormats/CTPPSDigi/interface/TotemTimingDigi.h @@ -25,9 +25,7 @@ class TotemTimingDigi { const uint16_t cellInfo, const std::vector& samples, const TotemTimingEventInfo& totemTimingEventInfo); - TotemTimingDigi(const TotemTimingDigi& digi); TotemTimingDigi(); - ~TotemTimingDigi(){}; /// Digis are equal if they have all the same values, NOT checking the samples! bool operator==(const TotemTimingDigi& digi) const; diff --git a/DataFormats/CTPPSDigi/interface/TotemTimingEventInfo.h b/DataFormats/CTPPSDigi/interface/TotemTimingEventInfo.h index cabbd1cca9f3a..64d0ab04d8194 100644 --- a/DataFormats/CTPPSDigi/interface/TotemTimingEventInfo.h +++ b/DataFormats/CTPPSDigi/interface/TotemTimingEventInfo.h @@ -26,9 +26,7 @@ class TotemTimingEventInfo { const uint8_t numberOfSamples, const uint8_t offsetOfSamples, const uint8_t pllInfo); - TotemTimingEventInfo(const TotemTimingEventInfo& eventInfo); TotemTimingEventInfo(); - ~TotemTimingEventInfo(){}; /// Digis are equal if they have all the same values, NOT checking the samples! bool operator==(const TotemTimingEventInfo& eventInfo) const; diff --git a/DataFormats/CTPPSDigi/src/TotemTimingDigi.cc b/DataFormats/CTPPSDigi/src/TotemTimingDigi.cc index 2306f06bc2dd6..cf760183a5cb4 100644 --- a/DataFormats/CTPPSDigi/src/TotemTimingDigi.cc +++ b/DataFormats/CTPPSDigi/src/TotemTimingDigi.cc @@ -22,15 +22,6 @@ TotemTimingDigi::TotemTimingDigi(const uint8_t hwId, samples_(samples), totemTimingEventInfo_(totemTimingEventInfo) {} -TotemTimingDigi::TotemTimingDigi(const TotemTimingDigi& digi) - : hwId_(digi.hwId_), - fpgaTimestamp_(digi.fpgaTimestamp_), - timestampA_(digi.timestampA_), - timestampB_(digi.timestampB_), - cellInfo_(digi.cellInfo_), - samples_(digi.samples_), - totemTimingEventInfo_(digi.totemTimingEventInfo_) {} - TotemTimingDigi::TotemTimingDigi() : hwId_(0), fpgaTimestamp_(0), timestampA_(0), timestampB_(0), cellInfo_(0) {} // Comparison diff --git a/DataFormats/CTPPSDigi/src/TotemTimingEventInfo.cc b/DataFormats/CTPPSDigi/src/TotemTimingEventInfo.cc index 1933ddf248e71..b60822eee5386 100644 --- a/DataFormats/CTPPSDigi/src/TotemTimingEventInfo.cc +++ b/DataFormats/CTPPSDigi/src/TotemTimingEventInfo.cc @@ -27,18 +27,6 @@ TotemTimingEventInfo::TotemTimingEventInfo(const uint8_t hwId, offsetOfSamples_(offsetOfSamples), pllInfo_(pllInfo) {} -TotemTimingEventInfo::TotemTimingEventInfo(const TotemTimingEventInfo& eventInfo) - : hwId_(eventInfo.hwId_), - l1ATimestamp_(eventInfo.l1ATimestamp_), - bunchNumber_(eventInfo.bunchNumber_), - orbitNumber_(eventInfo.orbitNumber_), - eventNumber_(eventInfo.eventNumber_), - channelMap_(eventInfo.channelMap_), - l1ALatency_(eventInfo.l1ALatency_), - numberOfSamples_(eventInfo.numberOfSamples_), - offsetOfSamples_(eventInfo.offsetOfSamples_), - pllInfo_(eventInfo.pllInfo_) {} - TotemTimingEventInfo::TotemTimingEventInfo() : hwId_(0), l1ATimestamp_(0),