Skip to content

Commit cef632d

Browse files
BiancaMPopaBianca-Maria Popa
andauthored
[PWGCF] updated the v0-v0 pair task (#13574)
Co-authored-by: Bianca-Maria Popa <ge84qed@nidoking.ktas.ph.tum.de>
1 parent f4aa72a commit cef632d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PWGCF/FemtoDream/Tasks/femtoDreamPairTaskV0V0.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -371,10 +371,10 @@ struct femtoDreamPairTaskV0V0 {
371371
continue;
372372
}
373373
for (auto& [p1, p2] : combinations(CombinationsFullIndexPolicy(SliceV01, SliceV02))) {
374-
const auto& posChild_1 = parts.iteratorAt(p1.index() - 2);
375-
const auto& negChild_1 = parts.iteratorAt(p1.index() - 1);
376-
const auto& posChild_2 = parts.iteratorAt(p2.index() - 2);
377-
const auto& negChild_2 = parts.iteratorAt(p2.index() - 1);
374+
const auto& posChild_1 = parts.iteratorAt(p1.globalIndex() - 2);
375+
const auto& negChild_1 = parts.iteratorAt(p1.globalIndex() - 1);
376+
const auto& posChild_2 = parts.iteratorAt(p2.globalIndex() - 2);
377+
const auto& negChild_2 = parts.iteratorAt(p2.globalIndex() - 1);
378378
if (((posChild_1.cut() & V01.ChildPos_CutBit) == V01.ChildPos_CutBit) &&
379379
((posChild_1.pidcut() & V01.ChildPos_TPCBit) == V01.ChildPos_TPCBit) &&
380380
((negChild_1.cut() & V01.ChildNeg_CutBit) == V01.ChildNeg_CutBit) &&

0 commit comments

Comments
 (0)