From 46cc24628699153ca8db6de67cd5a53e0f0b9fba Mon Sep 17 00:00:00 2001 From: Isakov Artem Date: Mon, 11 Dec 2023 13:39:48 +0100 Subject: [PATCH] ITS: FHRTask patch (#2071) * Added all objects to reset function for correct SSS * Fixed crash in FHR Task because of access to non-existing memory space --- Modules/ITS/src/ITSFhrTask.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Modules/ITS/src/ITSFhrTask.cxx b/Modules/ITS/src/ITSFhrTask.cxx index ff09e2f4c6..031836f07f 100644 --- a/Modules/ITS/src/ITSFhrTask.cxx +++ b/Modules/ITS/src/ITSFhrTask.cxx @@ -88,7 +88,6 @@ void ITSFhrTask::initialize(o2::framework::InitContext& /*ctx*/) { ILOG(Debug, Devel) << "initialize ITSFhrTask" << ENDM; getParameters(); - mGeneralOccupancy = new TH2Poly(); mGeneralOccupancy->SetTitle("General Occupancy;mm (IB 3x);mm (IB 3x)"); mGeneralOccupancy->SetName("General/General_Occupancy"); @@ -781,7 +780,6 @@ void ITSFhrTask::reset() { resetGeneralPlots(); resetOccupancyPlots(); - mGeneralOccupancy->Reset("content"); mGeneralNoisyPixel->Reset("content"); mDecoder->clearStat(); @@ -797,6 +795,7 @@ void ITSFhrTask::reset() mHitnumberLane[istave][ichip] = 0; mOccupancyLane[istave][ichip] = 0; mHitPixelID_InStave[istave][0][ichip].clear(); + mChipStat[istave][ichip] = 0; } } } else { @@ -813,13 +812,11 @@ void ITSFhrTask::reset() mOccupancyLane[istave][2 * ihic + 1] = 0; for (int ichip = 0; ichip < nChipsPerHic[mLayer]; ichip++) { mHitPixelID_InStave[istave][ihic][ichip].clear(); + mChipStat[istave][ihic * nChipsPerHic[mLayer] + ichip] = 0; } } } } - - mTFCount = 0; - std::fill(&mChipStat[0][0], &mChipStat[0][0] + NStaves[mLayer] * nHicPerStave[mLayer] * nChipsPerHic[mLayer], 0); std::fill(&mNoisyPixelNumber[0][0], &mNoisyPixelNumber[0][0] + 7 * 48, 0); ILOG(Debug, Devel) << "Reset" << ENDM; }