From f90089203ad7601e9d579f33212beb6d2491e760 Mon Sep 17 00:00:00 2001 From: skundu692 Date: Tue, 11 Nov 2025 13:13:52 +0100 Subject: [PATCH 1/5] fix bug of histogram fill for pid --- PWGLF/Tasks/Resonances/doublephimeson.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/PWGLF/Tasks/Resonances/doublephimeson.cxx b/PWGLF/Tasks/Resonances/doublephimeson.cxx index 408eee907db..046de7943a4 100644 --- a/PWGLF/Tasks/Resonances/doublephimeson.cxx +++ b/PWGLF/Tasks/Resonances/doublephimeson.cxx @@ -770,7 +770,6 @@ struct doublephimeson { histos.fill(HIST("hnsigmaTPCTOFKaon"), t.phid1TPC(), t.phid1TOF(), kpluspt); histos.fill(HIST("hnsigmaTPCKaonPlus"), t.phid1TPC(), kpluspt); histos.fill(HIST("hnsigmaTPCKaonMinus"), t.phid2TPC(), kminuspt); - ++phimult; } if (phimult < 2) @@ -824,6 +823,11 @@ struct doublephimeson { const double kplus1pt = std::hypot(t1.phid1Px(), t1.phid1Py()); const double kminus1pt = std::hypot(t1.phid2Px(), t1.phid2Py()); +<<<<<<< HEAD +======= + + +>>>>>>> cc7c4eeeb (fix bug of histogram fill for pid) if (kplus1pt > maxKaonPt || kminus1pt > maxKaonPt) continue; if (!selectionPID(t1.phid1TPC(), t1.phid1TOF(), t1.phid1TOFHit(), strategyPID1, kplus1pt)) From cf7e269c23e2863ea4f1464e6fddcfd3830bed85 Mon Sep 17 00:00:00 2001 From: skundu692 Date: Mon, 10 Nov 2025 09:13:33 +0100 Subject: [PATCH 2/5] Add PID histogram --- PWGLF/Tasks/Resonances/doublephimeson.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/PWGLF/Tasks/Resonances/doublephimeson.cxx b/PWGLF/Tasks/Resonances/doublephimeson.cxx index 046de7943a4..1b99689f667 100644 --- a/PWGLF/Tasks/Resonances/doublephimeson.cxx +++ b/PWGLF/Tasks/Resonances/doublephimeson.cxx @@ -770,6 +770,7 @@ struct doublephimeson { histos.fill(HIST("hnsigmaTPCTOFKaon"), t.phid1TPC(), t.phid1TOF(), kpluspt); histos.fill(HIST("hnsigmaTPCKaonPlus"), t.phid1TPC(), kpluspt); histos.fill(HIST("hnsigmaTPCKaonMinus"), t.phid2TPC(), kminuspt); + ++phimult; } if (phimult < 2) From 71e3207b7e314327f501c4386194a51d789e4cbd Mon Sep 17 00:00:00 2001 From: skundu692 Date: Mon, 10 Nov 2025 19:18:55 +0100 Subject: [PATCH 3/5] Improve both leg bixing --- PWGLF/Tasks/Resonances/doublephimeson.cxx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/PWGLF/Tasks/Resonances/doublephimeson.cxx b/PWGLF/Tasks/Resonances/doublephimeson.cxx index 1b99689f667..66e5cbff2db 100644 --- a/PWGLF/Tasks/Resonances/doublephimeson.cxx +++ b/PWGLF/Tasks/Resonances/doublephimeson.cxx @@ -824,11 +824,7 @@ struct doublephimeson { const double kplus1pt = std::hypot(t1.phid1Px(), t1.phid1Py()); const double kminus1pt = std::hypot(t1.phid2Px(), t1.phid2Py()); -<<<<<<< HEAD -======= - ->>>>>>> cc7c4eeeb (fix bug of histogram fill for pid) if (kplus1pt > maxKaonPt || kminus1pt > maxKaonPt) continue; if (!selectionPID(t1.phid1TPC(), t1.phid1TOF(), t1.phid1TOFHit(), strategyPID1, kplus1pt)) From d380284f300ede3ee59488d76196b27d8d92d026 Mon Sep 17 00:00:00 2001 From: skundu692 Date: Tue, 11 Nov 2025 20:15:06 +0100 Subject: [PATCH 4/5] Fix clang error --- PWGLF/Tasks/Resonances/doublephimeson.cxx | 1 - 1 file changed, 1 deletion(-) diff --git a/PWGLF/Tasks/Resonances/doublephimeson.cxx b/PWGLF/Tasks/Resonances/doublephimeson.cxx index 66e5cbff2db..408eee907db 100644 --- a/PWGLF/Tasks/Resonances/doublephimeson.cxx +++ b/PWGLF/Tasks/Resonances/doublephimeson.cxx @@ -824,7 +824,6 @@ struct doublephimeson { const double kplus1pt = std::hypot(t1.phid1Px(), t1.phid1Py()); const double kminus1pt = std::hypot(t1.phid2Px(), t1.phid2Py()); - if (kplus1pt > maxKaonPt || kminus1pt > maxKaonPt) continue; if (!selectionPID(t1.phid1TPC(), t1.phid1TOF(), t1.phid1TOFHit(), strategyPID1, kplus1pt)) From d08934304c9fc9b2d98498a8abed785bec251a67 Mon Sep 17 00:00:00 2001 From: skundu692 Date: Sun, 16 Nov 2025 09:41:54 +0100 Subject: [PATCH 5/5] Fix bug for ccdb access --- PWGLF/Tasks/Strangeness/lambdaspincorrderived.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PWGLF/Tasks/Strangeness/lambdaspincorrderived.cxx b/PWGLF/Tasks/Strangeness/lambdaspincorrderived.cxx index 19f5d11e333..7bb9607adcd 100644 --- a/PWGLF/Tasks/Strangeness/lambdaspincorrderived.cxx +++ b/PWGLF/Tasks/Strangeness/lambdaspincorrderived.cxx @@ -635,11 +635,11 @@ struct lambdaspincorrderived { } else if (mixedLeg == 2) { double w2 = 1.0; if (tag1 == 0 && tag2 == 0) { - w2 = hweight12->GetBinContent(hweight12->FindBin(dphi2, deta1, pt2)); + w2 = hweight12->GetBinContent(hweight12->FindBin(dphi2, deta2, pt2)); } else if (tag1 == 0 && tag2 == 1) { - w2 = hweight22->GetBinContent(hweight22->FindBin(dphi2, deta1, pt2)); + w2 = hweight22->GetBinContent(hweight22->FindBin(dphi2, deta2, pt2)); } else if (tag1 == 1 && tag2 == 0) { - w2 = hweight32->GetBinContent(hweight32->FindBin(dphi2, deta1, pt2)); + w2 = hweight32->GetBinContent(hweight32->FindBin(dphi2, deta2, pt2)); } else if (tag1 == 1 && tag2 == 1) { w2 = hweight42->GetBinContent(hweight42->FindBin(dphi2, deta2, pt2)); }