diff --git a/Modules/TOF/src/TaskRaw.cxx b/Modules/TOF/src/TaskRaw.cxx index c95aacf7e..99dff1671 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();