From b4927221b038cdc9047601aaff73d674e8e76ff2 Mon Sep 17 00:00:00 2001 From: Giovanna Lazzari Miotto <giovanna.lazzari.miotto@cern.ch> Date: Tue, 27 Feb 2024 11:55:19 +0100 Subject: [PATCH] lint: proc: Add override decorator --- src/bmtf_orbit_processor.h | 2 +- src/calo_obj_orbit_processor.h | 2 +- src/calo_orbit_processor.h | 2 +- src/calo_sum_orbit_processor.h | 2 +- src/muon_orbit_processor.h | 2 +- src/ugt_orbit_processor.h | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/bmtf_orbit_processor.h b/src/bmtf_orbit_processor.h index c892c1cf..87150630 100644 --- a/src/bmtf_orbit_processor.h +++ b/src/bmtf_orbit_processor.h @@ -10,7 +10,7 @@ class BmtfOrbitProcessor : public OrbitProcessor { int ProcessBlock(MemRegion &readable_block, WriteMemRegion &writeable_block, BxMetadata meta) override; - inline uint32_t GetPacketSize() const { + inline uint32_t GetPacketSize() const override { // size of bmtf stubs packet is 4bytes*(3headerWords + 2frames*8dataWords)=236 return 4 * (3 + (2 * 8)); } diff --git a/src/calo_obj_orbit_processor.h b/src/calo_obj_orbit_processor.h index 6494f35e..dcd361c1 100644 --- a/src/calo_obj_orbit_processor.h +++ b/src/calo_obj_orbit_processor.h @@ -33,7 +33,7 @@ class CaloObjOrbitProcessor : public OrbitProcessor { int ProcessBlock(MemRegion &readable_block, WriteMemRegion &writeable_block, BxMetadata meta) override; - inline uint32_t GetPacketSize() const { + inline uint32_t GetPacketSize() const override { // size of calo object packet is 4bytes*(3headerWords + 2frames*8dataWords)=76 return 4 * (3 + (2 * 8)); } diff --git a/src/calo_orbit_processor.h b/src/calo_orbit_processor.h index cf628c0e..4b822da2 100644 --- a/src/calo_orbit_processor.h +++ b/src/calo_orbit_processor.h @@ -10,7 +10,7 @@ class CaloOrbitProcessor : public OrbitProcessor { int ProcessBlock(MemRegion &readable_block, WriteMemRegion &writeable_block, BxMetadata meta) override; - inline uint32_t GetPacketSize() const { + inline uint32_t GetPacketSize() const override { // size of calo packet is 4bytes*(8links*7dataWords + 3headerWords)=236 bytes. // Note 7 data words per link because we have the "link number" word + 6 words from calo L2 return 4 * ((8 * 7) + 3); diff --git a/src/calo_sum_orbit_processor.h b/src/calo_sum_orbit_processor.h index 322073cd..0f458164 100644 --- a/src/calo_sum_orbit_processor.h +++ b/src/calo_sum_orbit_processor.h @@ -10,7 +10,7 @@ class CaloSumOrbitProcessor : public OrbitProcessor { int ProcessBlock(MemRegion &readable_block, WriteMemRegion &writeable_block, BxMetadata meta) override; - inline uint32_t GetPacketSize() const { + inline uint32_t GetPacketSize() const override { // size of calo sums packet is 4bytes*(2headerWords + 1frames*8dataWords)=40 return 4 * (2 + (1 * 8)); } diff --git a/src/muon_orbit_processor.h b/src/muon_orbit_processor.h index ac4a77ce..d2f87f46 100644 --- a/src/muon_orbit_processor.h +++ b/src/muon_orbit_processor.h @@ -10,7 +10,7 @@ class MuonOrbitProcessor : public OrbitProcessor { int ProcessBlock(MemRegion &readable_block, WriteMemRegion &writeable_block, BxMetadata meta) override; - inline uint32_t GetPacketSize() const { return (3 + 2 * 8 * 3) * 4; } + inline uint32_t GetPacketSize() const override { return (3 + 2 * 8 * 3) * 4; } inline uint32_t GetOrbitSizeInBytes(const FillOrbitMetadata &meta) const override { // 12 bytes for each muon/count then 12 bytes for each bx header diff --git a/src/ugt_orbit_processor.h b/src/ugt_orbit_processor.h index 858bcd9b..e6d9f926 100644 --- a/src/ugt_orbit_processor.h +++ b/src/ugt_orbit_processor.h @@ -10,7 +10,7 @@ class UgtOrbitProcessor : public OrbitProcessor { int ProcessBlock(MemRegion &readable_block, WriteMemRegion &writeable_block, BxMetadata meta) override; - inline uint32_t GetPacketSize() const { + inline uint32_t GetPacketSize() const override { // size of ugt bits packet is 4bytes*(2headerWords + 2frames*8dataWords) return 4 * (2 + (2 * 8)); } -- GitLab