Skip to content

Commit d2874c1

Browse files
committed
avoid common track sharing in mixed event
1 parent a97dea5 commit d2874c1

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

PWGLF/Tasks/Strangeness/taskLambdaSpinCorr.cxx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,13 @@ struct LfTaskLambdaSpinCorr {
535535
if (lambdaTag2 && aLambdaTag2) {
536536
continue;
537537
}
538+
auto postrack1 = t1.template posTrack_as<AllTrackCandidates>();
539+
auto negtrack1 = t1.template negTrack_as<AllTrackCandidates>();
540+
auto postrack2 = t2.template posTrack_as<AllTrackCandidates>();
541+
auto negtrack2 = t2.template negTrack_as<AllTrackCandidates>();
542+
if (postrack1.globalIndex() == postrack2.globalIndex() || negtrack1.globalIndex() == negtrack2.globalIndex()) {
543+
continue;
544+
}
538545
for (const auto& t3 : groupV03) {
539546
if (pairStatus[t3.index()][t2.index()]) {
540547
// LOGF(info, "repeat match found v0 id: (%d, %d)", t3.index(), t2.index());
@@ -739,6 +746,13 @@ struct LfTaskLambdaSpinCorr {
739746
if (lambdaTag2 && aLambdaTag2) {
740747
continue;
741748
}
749+
auto postrack1 = t1.template posTrack_as<AllTrackCandidates>();
750+
auto negtrack1 = t1.template negTrack_as<AllTrackCandidates>();
751+
auto postrack2 = t2.template posTrack_as<AllTrackCandidates>();
752+
auto negtrack2 = t2.template negTrack_as<AllTrackCandidates>();
753+
if (postrack1.globalIndex() == postrack2.globalIndex() || negtrack1.globalIndex() == negtrack2.globalIndex()) {
754+
continue;
755+
}
742756
for (const auto& t3 : groupV03) {
743757
if (pairStatus[t3.index()][t2.index()]) {
744758
// LOGF(info, "repeat match found v0 id: (%d, %d)", t3.index(), t2.index());

0 commit comments

Comments
 (0)