Skip to content

Commit cd67cfa

Browse files
authored
[PWGLF] small change to match logics and naming (#10615)
1 parent b23f411 commit cd67cfa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PWGLF/Tasks/Nuspex/antinucleiInJets.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,10 +451,10 @@ struct AntinucleiInJets {
451451
static std::mt19937 gen(rd());
452452
static std::uniform_int_distribution<> dis(0, 99);
453453
int randomNumber = dis(gen);
454-
if (randomNumber <= rejectionPercentage) {
455-
return false;
454+
if (randomNumber > rejectionPercentage) {
455+
return false; // accept event
456456
}
457-
return true;
457+
return true; // reject event
458458
}
459459

460460
// Process Data

0 commit comments

Comments
 (0)