Skip to content

Commit 25e206d

Browse files
authored
[PWGCF/FemtoUniverse] Fix: do swapping also for same particles (#11723)
1 parent 1ca4757 commit 25e206d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackTrackExtended.cxx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,12 @@ struct FemtoUniversePairTaskTrackTrackExtended {
567567
weight *= effCorrection.getWeight(ParticleNo::TWO, p2);
568568
}
569569

570-
sameEventCont.setPair<isMC>(p1, p2, multCol, twotracksconfigs.confUse3D, weight);
570+
if (swpart)
571+
sameEventCont.setPair<isMC>(p1, p2, multCol, twotracksconfigs.confUse3D, weight);
572+
else
573+
sameEventCont.setPair<isMC>(p2, p1, multCol, twotracksconfigs.confUse3D, weight);
574+
575+
swpart = !swpart;
571576
}
572577
}
573578
}

0 commit comments

Comments
 (0)