Skip to content

Commit 8447104

Browse files
authored
FT0 DigitQcTask: HW division logic for amp triggers (#1880)
1 parent 52c587e commit 8447104

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/FIT/FT0/src/DigitQcTask.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,9 +553,9 @@ void DigitQcTask::monitorData(o2::framework::ProcessingContext& ctx)
553553

554554
for (const auto& entry : mapPMhash2sumAmpl) {
555555
if (mMapPMhash2isAside[entry.first])
556-
pmSumAmplA += std::lround(static_cast<int>(entry.second / 8.));
556+
pmSumAmplA += (entry.second >> 3);
557557
else
558-
pmSumAmplC += std::lround(static_cast<int>(entry.second / 8.));
558+
pmSumAmplC += (entry.second >> 3);
559559
}
560560

561561
auto pmNChan = pmNChanA + pmNChanC;

0 commit comments

Comments
 (0)