Skip to content

Commit 0730acb

Browse files
[TOF] update TaskRaw to reset counters (#2650)
1 parent 687921e commit 0730acb

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

Modules/TOF/src/TaskRaw.cxx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,8 @@ void RawDataDecoder::estimateNoise(std::shared_ptr<TH1F> hIndexEOIsNoise)
349349
// Fill noise map
350350
mHistoNoiseMap->SetBinContent(icrate + 1, istrip * 4 + (3 - iFea) + 1, indexcounterFea);
351351
} // end loop over Feas
352-
} // end loop over strips
353-
} // end loop over sectors
352+
} // end loop over strips
353+
} // end loop over sectors
354354
}
355355

356356
// Implement the Task
@@ -581,6 +581,15 @@ void TaskRaw::reset()
581581
{
582582
// clean all the monitor objects here
583583

584+
for (unsigned int crate = 0; crate < RawDataDecoder::ncrates; crate++) {
585+
mDecoderRaw.mCounterRDH[crate].Reset();
586+
mDecoderRaw.mCounterDRM[crate].Reset();
587+
mDecoderRaw.mCounterLTM[crate].Reset();
588+
for (unsigned int j = 0; j < RawDataDecoder::ntrms; j++) {
589+
mDecoderRaw.mCounterTRM[crate][j].Reset();
590+
}
591+
}
592+
584593
ILOG(Debug, Devel) << "Resetting the histograms" << ENDM;
585594
mHistoRDH->Reset();
586595
mHistoDRM->Reset();

0 commit comments

Comments
 (0)