Skip to content

Commit

Permalink
TRD digit QC protection against division by zero (#2049)
Browse files Browse the repository at this point in the history
  • Loading branch information
martenole authored Nov 28, 2023
1 parent e2d657a commit 72358b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Modules/TRD/src/DigitsTask.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,9 @@ void DigitsTask::monitorData(o2::framework::ProcessingContext& ctx)
continue;
}
mDigitsPerEvent->Fill(nDigits);
mDigitsSizevsTrackletSize->Fill(nDigits / trigger.getNumberOfTracklets());
if (trigger.getNumberOfTracklets() > 0) {
mDigitsSizevsTrackletSize->Fill(nDigits / trigger.getNumberOfTracklets());
}

for (int iDigit = iDigitFirst; iDigit < iDigitLast; ++iDigit) {
const auto& digit = digits[iDigit];
Expand Down

0 comments on commit 72358b2

Please sign in to comment.