Skip to content

Commit cd29e22

Browse files
committed
Properly account for -1 shift between CTPinput and test bit function
1 parent 0a5e5a4 commit cd29e22

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PWGMM/Lumi/Tasks/lumiStabilityPP.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,11 +337,11 @@ struct LumiStabilityPP {
337337
isSuperLeadingBcFT0 = false; // not a super-leading BC for FT0
338338
}
339339

340-
if (ctpInputMask.test(13) || ctpInputMask.test(15) || ctpInputMask.test(16) || ctpInputMask.test(17) || ctpInputMask.test(18)) { // 5 FDD triggers
341-
globalBCIdOfLastBCWithActivityFDD = globalBC;
340+
if (ctpInputMask.test(12) || ctpInputMask.test(14) || ctpInputMask.test(15) || ctpInputMask.test(16) || ctpInputMask.test(17)) { // 5 FDD triggers
341+
globalBCIdOfLastBCWithActivityFDD = globalBCFDD;
342342
}
343-
if (ctpInputMask.test(1) || ctpInputMask.test(2) || ctpInputMask.test(3) || ctpInputMask.test(4) || ctpInputMask.test(5)) { // 5 FT0 triggers
344-
globalBCIdOfLastBCWithActivityFT0 = globalBCFDD;
343+
if (ctpInputMask.test(0) || ctpInputMask.test(1) || ctpInputMask.test(2) || ctpInputMask.test(3) || ctpInputMask.test(4)) { // 5 FT0 triggers
344+
globalBCIdOfLastBCWithActivityFT0 = globalBC;
345345
}
346346

347347
if (!bcPatternB[localBC]) {

0 commit comments

Comments
 (0)