Skip to content

Commit 47ff46d

Browse files
authored
Fix injection gap math
The change introduced in #1431 had the side effect that no signal events were present in recent productions using this generator, as for operator precedence one could never satisfy the condition of the if regulating the generation of signal events.
1 parent d1b9a1f commit 47ff46d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MC/config/PWGLF/pythia8/generator_pythia8_LF.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ class GeneratorPythia8LF : public o2::eventgen::GeneratorPythia8
165165
if (mGapBetweenInjection > 0) {
166166
if (mGapBetweenInjection == 1 && mEventCounter % 2 == 0) {
167167
doSignal = false;
168-
} else if (mEventCounter % mGapBetweenInjection + 1 != 0) {
168+
} else if (mEventCounter % (mGapBetweenInjection + 1) != 0) {
169169
doSignal = false;
170170
}
171171
}

0 commit comments

Comments
 (0)