Skip to content

Commit 4dff0d0

Browse files
author
Sabrina Hernandez
committed
adjust conditional statement
1 parent 9802a79 commit 4dff0d0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

PWGCF/Flow/Tasks/flowZdcTask.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,9 @@ struct FlowZdcTask {
374374
}
375375
histos.fill(HIST("hEventCounter"), EvCutLabel::VtxZ);
376376
if (isApplyRadialCut) {
377-
if (std::fabs(col.posX()) > posXcut && (std::fabs(col.posY()) > posYcut))
377+
if (std::fabs(col.posX()) > posXcut || std::fabs(col.posY()) > posYcut) {
378378
return false;
379+
}
379380
}
380381

381382
return true;

0 commit comments

Comments
 (0)