Skip to content

Commit 63a60cb

Browse files
authored
Fix condition to check particle pt against ptCut
1 parent 9ffa18c commit 63a60cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PWGLF/Tasks/QC/mcParticlePrediction.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ struct McParticlePrediction {
559559
histos.fill(HIST("particles/y/undefined"), particle.y());
560560
}
561561

562-
if (std::abs(particle.pt()) < ptCut.value) { // Fill the eta and rapidity histograms only for particles above the pt cut
562+
if (std::abs(particle.pt()) > ptCut.value) { // Fill the eta and rapidity histograms only for particles above the pt cut
563563
for (int i = 0; i < Estimators::nEstimators; i++) {
564564
if (!enabledEstimatorsArray[i]) {
565565
continue;

0 commit comments

Comments
 (0)