@@ -359,7 +359,7 @@ void ITSFeeTask::monitorData(o2::framework::ProcessingContext& ctx)
359359
360360 DPLRawParser parser (ctx.inputs ());
361361
362- resetLanePlotsAndCounters (); // action taken depending on mResetLaneStatus and mResetPayload
362+ resetLanePlotsAndCounters (false ); // not full reset // action taken depending on mResetLaneStatus and mResetPayload
363363
364364 // manual call of DPL data iterator to catch exceptoin:
365365 try {
@@ -648,9 +648,9 @@ void ITSFeeTask::resetGeneralPlots()
648648 mTrigger ->Reset ();
649649}
650650
651- void ITSFeeTask::resetLanePlotsAndCounters ()
651+ void ITSFeeTask::resetLanePlotsAndCounters (bool isFullReset )
652652{
653- if (mResetLaneStatus ) {
653+ if (mResetLaneStatus || isFullReset ) {
654654 mRDHSummary ->Reset (" ICES" ); // option ICES is to not remove layer lines and labels
655655 mFlag1Check ->Reset ();
656656 mLaneStatusSummaryIB ->Reset ();
@@ -668,14 +668,26 @@ void ITSFeeTask::resetLanePlotsAndCounters()
668668
669669 memset (mStatusFlagNumber , 0 , sizeof (mStatusFlagNumber )); // reset counters
670670 }
671- if (mResetPayload ) {
671+ if (mResetPayload || isFullReset ) {
672672 mPayloadSize ->Reset (" ICES" );
673673 }
674674}
675675
676676void ITSFeeTask::reset ()
677677{
678+ // it is expected that this reset function will be executed only at the end of run
678679 resetGeneralPlots ();
680+ resetLanePlotsAndCounters (true ); // full reset of all plots
681+ mTimeFrameId = 0 ;
682+ mDecodingCheck ->Reset ();
683+ mRDHSummaryCumulative ->Reset ();
684+ mTrailerCount ->Reset ();
685+ mActiveLanes ->Reset ();
686+ for (int i = 0 ; i < NFlags; i++) {
687+ mLaneStatusCumulative [i]->Reset (" ICES" );
688+ }
689+ mProcessingTime ->Reset ();
690+ mProcessingTime2 ->Reset ();
679691 ILOG (Debug, Devel) << " Reset" << ENDM ;
680692}
681693
0 commit comments