From b21f7f3935baaacdae08182ab6847e2feeb50179 Mon Sep 17 00:00:00 2001 From: Francesca Ercolessi Date: Fri, 17 Sep 2021 16:51:55 +0200 Subject: [PATCH] check to debug decoder problem --- Modules/TOF/src/TaskDigits.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Modules/TOF/src/TaskDigits.cxx b/Modules/TOF/src/TaskDigits.cxx index 816d5bc733..34c3547ef4 100644 --- a/Modules/TOF/src/TaskDigits.cxx +++ b/Modules/TOF/src/TaskDigits.cxx @@ -268,6 +268,10 @@ void TaskDigits::monitorData(o2::framework::ProcessingContext& ctx) const auto digits_in_row = row.getBunchChannelData(digits); // Digits inside a readout window // Loop on digits for (auto const& digit : digits_in_row) { + if (digit.getChannel() < 0) { + LOG(ERROR) << "No valid channel"; + continue; + } o2::tof::Geo::getVolumeIndices(digit.getChannel(), det); strip = o2::tof::Geo::getStripNumberPerSM(det[1], det[2]); // Strip index in the SM mHitCounterPerStrip[strip].Count(det[0] * 4 + det[4] / 12);