We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5db0583 commit 0516cbeCopy full SHA for 0516cbe
1 file changed
Modules/CTP/src/RawDataQcTask.cxx
@@ -226,11 +226,13 @@ void CTPRawDataReaderTask::monitorData(o2::framework::ProcessingContext& ctx)
226
mHistoInputs->getNum()->Fill(i);
227
mHistoInputRatios->getNum()->Fill(i);
228
if (i == indexMB1 - 1) {
229
- mHistoBCMinBias1->Fill((bcid - mShiftInput1) % 3564, 1. / mScaleInput1);
+ int bc = bcid - mShiftInput1 >= 0 ? bcid - mShiftInput1 : bcid - mShiftInput1 + 3564;
230
+ mHistoBCMinBias1->Fill(bc, 1. / mScaleInput1);
231
mHistoInputRatios->getDen()->Fill(0., 1);
232
}
233
if (i == indexMB2 - 1) {
- mHistoBCMinBias2->Fill((bcid - mShiftInput2) % 3564, 1. / mScaleInput2);
234
+ int bc = bcid - mShiftInput2 >= 0 ? bcid - mShiftInput2 : bcid - mShiftInput2 + 3564;
235
+ mHistoBCMinBias2->Fill(bc, 1. / mScaleInput2);
236
237
238
0 commit comments