From 03f5997c1a43b35004501768d87561315f128096 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 38a7f31ed21..72c2b00ee4d 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 9548a24b48c24e72ed12f1f05b6c0d395779a589 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 72c2b00ee4d..c27f16e2ad7 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 abdc64b4eacbbe277af46eb2ec2979b619e154db 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 c27f16e2ad7..31f258be71b 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 dad2d72417854dc9317c5c520e943566625075eb 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 31f258be71b..38a7f31ed21 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 35ca04ebe53e77f637980928a58b5ee58f186fec Mon Sep 17 00:00:00 2001 From: skundu692 Date: Tue, 18 Nov 2025 13:57:31 +0100 Subject: [PATCH 5/5] Tighten dca cut for daughter --- PWGLF/Tasks/Strangeness/lambdaspincorrderived.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PWGLF/Tasks/Strangeness/lambdaspincorrderived.cxx b/PWGLF/Tasks/Strangeness/lambdaspincorrderived.cxx index caacb8c0ed6..9040c6bf16d 100644 --- a/PWGLF/Tasks/Strangeness/lambdaspincorrderived.cxx +++ b/PWGLF/Tasks/Strangeness/lambdaspincorrderived.cxx @@ -257,10 +257,10 @@ struct lambdaspincorrderived { if (candidate.dcaBetweenDaughter() > dcaDaughters) { return false; } - if (candidate.v0Status() == 0 && std::abs(candidate.dcaPositive()) < dcaProton && std::abs(candidate.dcaNegative()) < dcaPion) { + if (candidate.v0Status() == 0 && (std::abs(candidate.dcaPositive()) < dcaProton || std::abs(candidate.dcaNegative()) < dcaPion)) { return false; } - if (candidate.v0Status() == 1 && std::abs(candidate.dcaPositive()) < dcaPion && std::abs(candidate.dcaNegative()) < dcaProton) { + if (candidate.v0Status() == 1 && (std::abs(candidate.dcaPositive()) < dcaPion || std::abs(candidate.dcaNegative()) < dcaProton)) { return false; } if (candidate.lambdaPt() < ptMin) {