From aa5273b137c9889367f88d7e9eb453731468f847 Mon Sep 17 00:00:00 2001 From: Sofia Tomassini Date: Wed, 11 Mar 2026 09:56:25 +0100 Subject: [PATCH] [TOF] update TaskRaw to reset counters --- Modules/TOF/src/TaskRaw.cxx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Modules/TOF/src/TaskRaw.cxx b/Modules/TOF/src/TaskRaw.cxx index c95aacf7ee..99dff1671e 100644 --- a/Modules/TOF/src/TaskRaw.cxx +++ b/Modules/TOF/src/TaskRaw.cxx @@ -349,8 +349,8 @@ void RawDataDecoder::estimateNoise(std::shared_ptr hIndexEOIsNoise) // Fill noise map mHistoNoiseMap->SetBinContent(icrate + 1, istrip * 4 + (3 - iFea) + 1, indexcounterFea); } // end loop over Feas - } // end loop over strips - } // end loop over sectors + } // end loop over strips + } // end loop over sectors } // Implement the Task @@ -581,6 +581,15 @@ void TaskRaw::reset() { // clean all the monitor objects here + for (unsigned int crate = 0; crate < RawDataDecoder::ncrates; crate++) { + mDecoderRaw.mCounterRDH[crate].Reset(); + mDecoderRaw.mCounterDRM[crate].Reset(); + mDecoderRaw.mCounterLTM[crate].Reset(); + for (unsigned int j = 0; j < RawDataDecoder::ntrms; j++) { + mDecoderRaw.mCounterTRM[crate][j].Reset(); + } + } + ILOG(Debug, Devel) << "Resetting the histograms" << ENDM; mHistoRDH->Reset(); mHistoDRM->Reset();