Skip to content

Commit c4d9319

Browse files
IsakovADBarthelemy
authored andcommitted
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
1 parent 648f093 commit c4d9319

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

Modules/ITS/src/ITSFhrTask.cxx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ void ITSFhrTask::initialize(o2::framework::InitContext& /*ctx*/)
8888
{
8989
ILOG(Debug, Devel) << "initialize ITSFhrTask" << ENDM;
9090
getParameters();
91-
9291
mGeneralOccupancy = new TH2Poly();
9392
mGeneralOccupancy->SetTitle("General Occupancy;mm (IB 3x);mm (IB 3x)");
9493
mGeneralOccupancy->SetName("General/General_Occupancy");
@@ -781,7 +780,6 @@ void ITSFhrTask::reset()
781780
{
782781
resetGeneralPlots();
783782
resetOccupancyPlots();
784-
785783
mGeneralOccupancy->Reset("content");
786784
mGeneralNoisyPixel->Reset("content");
787785
mDecoder->clearStat();
@@ -797,6 +795,7 @@ void ITSFhrTask::reset()
797795
mHitnumberLane[istave][ichip] = 0;
798796
mOccupancyLane[istave][ichip] = 0;
799797
mHitPixelID_InStave[istave][0][ichip].clear();
798+
mChipStat[istave][ichip] = 0;
800799
}
801800
}
802801
} else {
@@ -813,13 +812,11 @@ void ITSFhrTask::reset()
813812
mOccupancyLane[istave][2 * ihic + 1] = 0;
814813
for (int ichip = 0; ichip < nChipsPerHic[mLayer]; ichip++) {
815814
mHitPixelID_InStave[istave][ihic][ichip].clear();
815+
mChipStat[istave][ihic * nChipsPerHic[mLayer] + ichip] = 0;
816816
}
817817
}
818818
}
819819
}
820-
821-
mTFCount = 0;
822-
std::fill(&mChipStat[0][0], &mChipStat[0][0] + NStaves[mLayer] * nHicPerStave[mLayer] * nChipsPerHic[mLayer], 0);
823820
std::fill(&mNoisyPixelNumber[0][0], &mNoisyPixelNumber[0][0] + 7 * 48, 0);
824821
ILOG(Debug, Devel) << "Reset" << ENDM;
825822
}

0 commit comments

Comments
 (0)