Skip to content

Commit e6fda9a

Browse files
author
Bianca-Maria Popa
committed
updated the v0-v0 pair task
1 parent 47c97e8 commit e6fda9a

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)