Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions MC/config/PWGLF/pythia8/generator_pythia8_LF.C
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,7 @@ class GeneratorPythia8LF : public o2::eventgen::GeneratorPythia8
LOG(info) << "Using config container ";
cfg.print();
if (mUseTriggering) { // Do the triggering
bool doSignal = true; // Do signal or gap
if (mGapBetweenInjection > 0) {
if (mGapBetweenInjection == 1 && mEventCounter % 2 == 0) {
doSignal = false;
} else if (mEventCounter % mGapBetweenInjection + 1 != 0) {
doSignal = false;
}
}
bool doSignal{mEventCounter % (mGapBetweenInjection + 1) == 0}; // Do signal or gap

if (doSignal) {
LOG(info) << "Generating triggered signal event for particle";
Expand Down
Loading