From 1c385cd16006b0ca6837298176be3ec932a5e70d Mon Sep 17 00:00:00 2001 From: dstocco Date: Tue, 7 Feb 2023 12:04:43 +0100 Subject: [PATCH] Retrieve number of orbits in TF from GRP --- Detectors/MUON/MID/Workflow/src/ChannelCalibratorSpec.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Detectors/MUON/MID/Workflow/src/ChannelCalibratorSpec.cxx b/Detectors/MUON/MID/Workflow/src/ChannelCalibratorSpec.cxx index 36656f88ff5c9..b220b6dced0ab 100644 --- a/Detectors/MUON/MID/Workflow/src/ChannelCalibratorSpec.cxx +++ b/Detectors/MUON/MID/Workflow/src/ChannelCalibratorSpec.cxx @@ -80,7 +80,7 @@ class ChannelCalibratorDeviceDPL std::array, 2> calibData{pc.inputs().get>("mid_noise"), pc.inputs().get>("mid_dead")}; auto deadRof = pc.inputs().get>("mid_dead_rof"); - std::array timeOrTriggers{mHBFsPerTF * o2::constants::lhc::LHCOrbitNS * 1e-9, static_cast(deadRof.size())}; + std::array timeOrTriggers{o2::base::GRPGeomHelper::instance().getGRPECS()->getNHBFPerTF() * o2::constants::lhc::LHCOrbitNS * 1e-9, static_cast(deadRof.size())}; for (size_t idx = 0; idx < calibData.size(); ++idx) { o2::base::TFIDInfoHelper::fillTFIDInfo(pc, mCalibrators[idx].getCurrentTFInfo()); @@ -101,7 +101,6 @@ class ChannelCalibratorDeviceDPL std::array mCalibrators{}; ///< Channels calibrators std::shared_ptr mCCDBRequest; std::vector mRefMasks{}; ///< Reference masks - int mHBFsPerTF = 128.; ///< Number of HBFs per TF void sendOutput(of::DataAllocator& output) {