Skip to content

Commit d519a77

Browse files
authored
[PWGLF] Avoid common track sharing in mixed event pairing (#11295)
1 parent 2693637 commit d519a77

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

PWGLF/Tasks/Strangeness/taskLambdaSpinCorr.cxx

Lines changed: 15 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());
@@ -610,6 +617,7 @@ struct LfTaskLambdaSpinCorr {
610617
using CollisionMCRecTableCentFT0C = soa::Join<aod::Collisions, aod::CentFT0Cs, aod::EvSels>;
611618
using TrackMCRecTable = soa::Join<aod::Tracks, aod::TracksExtra, aod::TracksDCA, aod::TrackSelection, aod::pidTPCFullPi, aod::pidTPCFullPr>;
612619
using V0TrackCandidatesMC = soa::Join<aod::V0Datas, aod::McV0Labels>;
620+
613621
void processMC(CollisionMCRecTableCentFT0C::iterator const& collision, TrackMCRecTable const& /*tracks*/, V0TrackCandidatesMC const& V0s)
614622
{
615623

@@ -738,6 +746,13 @@ struct LfTaskLambdaSpinCorr {
738746
if (lambdaTag2 && aLambdaTag2) {
739747
continue;
740748
}
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+
}
741756
for (const auto& t3 : groupV03) {
742757
if (pairStatus[t3.index()][t2.index()]) {
743758
// LOGF(info, "repeat match found v0 id: (%d, %d)", t3.index(), t2.index());

0 commit comments

Comments
 (0)