From 910413621c760323c890f51c7d0497560201f0ee Mon Sep 17 00:00:00 2001 From: P-A Loizeau <p.-a.loizeau@gsi.de> Date: Tue, 19 Nov 2024 11:16:44 +0100 Subject: [PATCH] Cosmetics: rename CROB Nb getter in BMon/TOF online unpackers --- algo/detectors/bmon/ReadoutConfig.cxx | 2 +- algo/detectors/bmon/ReadoutConfig.h | 2 +- algo/detectors/tof/ReadoutConfig.cxx | 2 +- algo/detectors/tof/ReadoutConfig.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/algo/detectors/bmon/ReadoutConfig.cxx b/algo/detectors/bmon/ReadoutConfig.cxx index 60b22300d3..99d4c4a3b5 100644 --- a/algo/detectors/bmon/ReadoutConfig.cxx +++ b/algo/detectors/bmon/ReadoutConfig.cxx @@ -129,7 +129,7 @@ namespace cbm::algo::bmon L_(debug) << "================== BMON Mapping ============================"; uint32_t uCh = 0; - for (uint32_t uGbtx = 0; uGbtx < pars.NCROBs(); ++uGbtx) { + for (uint32_t uGbtx = 0; uGbtx < pars.NCrobs(); ++uGbtx) { const uint32_t uCh0 = uCh; const auto& crob = pars.crobs.at(uGbtx); switch (crob.rpcType) { diff --git a/algo/detectors/bmon/ReadoutConfig.h b/algo/detectors/bmon/ReadoutConfig.h index 6b1fa6e2a5..88e0361d38 100644 --- a/algo/detectors/bmon/ReadoutConfig.h +++ b/algo/detectors/bmon/ReadoutConfig.h @@ -54,7 +54,7 @@ namespace cbm::algo::bmon yaml::Property(&ReadoutSetup::eqIds, "eqIds", "Array to hold the unique IDs (equipment ID) for all BMON DPBs" , YAML::Flow, YAML::Hex)); size_t NComponents() const { return eqIds.size(); } - size_t NCROBs() const { return crobs.size(); } + size_t NCrobs() const { return crobs.size(); } i32 NFebsPerCrob() const { return nFebsPerComponent / nCrobPerComponent; } i32 NChansPerFeb() const { return nAsicsPerFeb * nChannelsPerAsic; } i32 NChansPerComponent() const { return nChannelsPerAsic * NElinksPerComponent(); } diff --git a/algo/detectors/tof/ReadoutConfig.cxx b/algo/detectors/tof/ReadoutConfig.cxx index 5541c13cfc..aab8e3ebf8 100644 --- a/algo/detectors/tof/ReadoutConfig.cxx +++ b/algo/detectors/tof/ReadoutConfig.cxx @@ -179,7 +179,7 @@ namespace cbm::algo::tof L_(debug) << "================== TOF Mapping ============================="; uint32_t uCh = 0; - for (uint32_t uGbtx = 0; uGbtx < pars.NCROBs(); ++uGbtx) { + for (uint32_t uGbtx = 0; uGbtx < pars.NCrobs(); ++uGbtx) { uint32_t uCh0 = uCh; uint32_t uGdpb = uCh0 / (pars.nFebsPerComponent * pars.nAsicsPerFeb * pars.nChannelsPerAsic); const auto& crob = pars.crobs.at(uGbtx); diff --git a/algo/detectors/tof/ReadoutConfig.h b/algo/detectors/tof/ReadoutConfig.h index 18bd409fea..07c91d7292 100644 --- a/algo/detectors/tof/ReadoutConfig.h +++ b/algo/detectors/tof/ReadoutConfig.h @@ -60,7 +60,7 @@ namespace cbm::algo::tof yaml::Property(&ReadoutSetup::asic2PadI, "asic2PadI", "Mapping in Readout chain PCBs; Map from GET4 channel to PADI channel (size: nChansPerFeb)" , YAML::Flow)); size_t NComponents() const { return eqIds.size(); } - size_t NCROBs() const { return crobs.size(); } + size_t NCrobs() const { return crobs.size(); } i32 NFebsPerCrob() const { return nFebsPerComponent / nCrobPerComponent; } i32 NChansPerFeb() const { return nAsicsPerFeb * nChannelsPerAsic; } i32 NChansPerComponent() const { return nChannelsPerAsic * NElinksPerComponent(); } -- GitLab