Skip to content

Commit

Permalink
fix for the BC ID shift
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucia Anna Tarasovicova committed Nov 12, 2024
1 parent 5db0583 commit 6220b12
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Modules/CTP/src/RawDataQcTask.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,13 @@ void CTPRawDataReaderTask::monitorData(o2::framework::ProcessingContext& ctx)
mHistoInputs->getNum()->Fill(i);
mHistoInputRatios->getNum()->Fill(i);
if (i == indexMB1 - 1) {
mHistoBCMinBias1->Fill((bcid - mShiftInput1) % 3564, 1. / mScaleInput1);
int bc = bcid - mShiftInput1 >= 0 ? bcid - mShiftInput1 : bcid - mShiftInput1 + 3564;
mHistoBCMinBias1->Fill(bc, 1. / mScaleInput1);
mHistoInputRatios->getDen()->Fill(0., 1);
}
if (i == indexMB2 - 1) {
mHistoBCMinBias2->Fill((bcid - mShiftInput2) % 3564, 1. / mScaleInput2);
int bc = bcid - mShiftInput2 >= 0 ? bcid - mShiftInput2 : bcid - mShiftInput2 + 3564;
mHistoBCMinBias2->Fill(bc, 1. / mScaleInput2);
}
}
}
Expand Down

0 comments on commit 6220b12

Please sign in to comment.