From ff38087cb815b7db378993567dc478df08481364 Mon Sep 17 00:00:00 2001 From: Francesca Ercolessi Date: Tue, 1 Dec 2026 14:34:13 +0100 Subject: [PATCH 1/3] fix competing mass cut --- PWGLF/TableProducer/Strangeness/v0selector.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PWGLF/TableProducer/Strangeness/v0selector.cxx b/PWGLF/TableProducer/Strangeness/v0selector.cxx index 12b299b0470..9a895a07eb7 100644 --- a/PWGLF/TableProducer/Strangeness/v0selector.cxx +++ b/PWGLF/TableProducer/Strangeness/v0selector.cxx @@ -251,7 +251,7 @@ struct V0SelectorTask { std::vector mincuts = {rmin, ctaumin, cospamin, dcadmin, dcapmin, dcanmin}; std::vector maxcuts = {rmax, ctaumax, cospamax, dcadmax, dcapmax, dcanmax}; - if (competingMassCuts) { + if (massCuts) { vals.push_back(v0.mAntiLambda()); mincuts.push_back(AntiLambdaMassLowVals->at(ptBin)); maxcuts.push_back(AntiLambdaMassHighVals->at(ptBin)); From 746199aed676a6801607e07f003389f08012ef2e Mon Sep 17 00:00:00 2001 From: Francesca Ercolessi Date: Tue, 1 Dec 2026 14:36:17 +0100 Subject: [PATCH 2/3] add armenteros cut --- PWGJE/Tasks/lfJetSpectra.cxx | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/PWGJE/Tasks/lfJetSpectra.cxx b/PWGJE/Tasks/lfJetSpectra.cxx index 6e1129b978b..31c6157dea7 100644 --- a/PWGJE/Tasks/lfJetSpectra.cxx +++ b/PWGJE/Tasks/lfJetSpectra.cxx @@ -96,8 +96,10 @@ struct LfJetSpectra { kStepDcaV0Dau, kStepDauEta, kStepCompetingMass, + kStepArmenteros, kNSelectionSteps }; - static constexpr std::array StepLabels = {"all", "jet finder acc.", "not rejected", "signal flag", "radius", "DCA dau-PV", "cos PA", "DCA V0 dau", "dau #eta", "competing mass"}; + static constexpr int StepAllPassed = kNSelectionSteps - 1; // last step: all the selections passed + static constexpr std::array StepLabels = {"all", "jet finder acc.", "not rejected", "signal flag", "radius", "DCA dau-PV", "cos PA", "DCA V0 dau", "dau #eta", "competing mass", "Armenteros"}; // Folders of the V0 QA histograms: all the stored V0s (before selections) and the selected V0s of each species. // The first three entries are also the species names used in the MC histograms @@ -221,6 +223,8 @@ struct LfJetSpectra { Configurable doCompetingMassRejection{"doCompetingMassRejection", true, "Apply the competing V0 mass rejection"}; Configurable lambdaRejWindow{"lambdaRejWindow", 0.005, "Lambda mass window rejected for K0s candidates (GeV/c^2)"}; Configurable k0sRejWindow{"k0sRejWindow", 0.010, "K0s mass window rejected for (Anti)Lambda candidates (GeV/c^2)"}; + // Armenteros-Podolanski selection of the K0s candidates + Configurable armenterosK0sMin{"armenterosK0sMin", 0., "K0s candidates: require qT^Arm > armenterosK0sMin * |alpha^Arm| (0 = no cut, typical 0.2)"}; // invariant mass windows, used only in the per-jet V0 multiplicity and momentum fraction histograms Configurable k0sMassWindow{"k0sMassWindow", 0.015, "Half-width of the K0s mass window around the PDG mass (GeV/c^2), per-jet V0 histograms"}; Configurable lambdaMassWindow{"lambdaMassWindow", 0.006, "Half-width of the (Anti)Lambda mass window around the PDG mass (GeV/c^2), per-jet V0 histograms"}; @@ -860,7 +864,7 @@ struct LfJetSpectra { } // V0 selection for a given species hypothesis, applied step by step. Returns the last step passed - // (kStepCompetingMass = all the selections passed). It is used both for the selection and for the cut flow QA + // (StepAllPassed = all the selections passed). It is used both for the selection and for the cut flow QA template int lastPassedSelectionStep(T const& v0, V0Species species, bool isJetFinderV0) { @@ -895,14 +899,17 @@ struct LfJetSpectra { if (v0Cuts.doCompetingMassRejection && competingMassDelta(v0, species) < ((species == kK0s) ? v0Cuts.lambdaRejWindow : v0Cuts.k0sRejWindow)) { return kStepDauEta; } - return kStepCompetingMass; + if (species == kK0s && v0Cuts.armenterosK0sMin > 0.f && v0.qtarm() < v0Cuts.armenterosK0sMin * std::abs(v0.alpha())) { + return kStepCompetingMass; + } + return kStepArmenteros; } // Full selection of a V0 (accepted by the jet finder) for a given species hypothesis template bool passedV0Selection(T const& v0, V0Species species) { - return lastPassedSelectionStep(v0, species, true) == kStepCompetingMass; + return lastPassedSelectionStep(v0, species, true) == StepAllPassed; } // Invariant mass window of a species, used only in the per-jet V0 multiplicity and momentum fraction histograms @@ -969,7 +976,7 @@ struct LfJetSpectra { for (int step = kStepAll; step <= lastStep; step++) { registryQC.fill(HIST("QA/V0CutFlow"), species, step); } - if (lastStep != kStepCompetingMass) { + if (lastStep != StepAllPassed) { continue; } if (species == kK0s) { From d68d872dde8e4fb538d449d195e073ec527b296f Mon Sep 17 00:00:00 2001 From: Francesca Ercolessi Date: Tue, 1 Dec 2026 14:39:07 +0100 Subject: [PATCH 3/3] add armenteros cut for lambda too --- PWGJE/Tasks/lfJetSpectra.cxx | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/PWGJE/Tasks/lfJetSpectra.cxx b/PWGJE/Tasks/lfJetSpectra.cxx index 31c6157dea7..5a3490b6bcd 100644 --- a/PWGJE/Tasks/lfJetSpectra.cxx +++ b/PWGJE/Tasks/lfJetSpectra.cxx @@ -223,8 +223,9 @@ struct LfJetSpectra { Configurable doCompetingMassRejection{"doCompetingMassRejection", true, "Apply the competing V0 mass rejection"}; Configurable lambdaRejWindow{"lambdaRejWindow", 0.005, "Lambda mass window rejected for K0s candidates (GeV/c^2)"}; Configurable k0sRejWindow{"k0sRejWindow", 0.010, "K0s mass window rejected for (Anti)Lambda candidates (GeV/c^2)"}; - // Armenteros-Podolanski selection of the K0s candidates + // Armenteros-Podolanski selections Configurable armenterosK0sMin{"armenterosK0sMin", 0., "K0s candidates: require qT^Arm > armenterosK0sMin * |alpha^Arm| (0 = no cut, typical 0.2)"}; + Configurable armenterosLambdaMax{"armenterosLambdaMax", 0., "(Anti)Lambda candidates: require qT^Arm < armenterosLambdaMax * |alpha^Arm|, with alpha^Arm > 0 for Lambda and < 0 for AntiLambda (0 = no cut, typical 0.2)"}; // invariant mass windows, used only in the per-jet V0 multiplicity and momentum fraction histograms Configurable k0sMassWindow{"k0sMassWindow", 0.015, "Half-width of the K0s mass window around the PDG mass (GeV/c^2), per-jet V0 histograms"}; Configurable lambdaMassWindow{"lambdaMassWindow", 0.006, "Half-width of the (Anti)Lambda mass window around the PDG mass (GeV/c^2), per-jet V0 histograms"}; @@ -899,12 +900,29 @@ struct LfJetSpectra { if (v0Cuts.doCompetingMassRejection && competingMassDelta(v0, species) < ((species == kK0s) ? v0Cuts.lambdaRejWindow : v0Cuts.k0sRejWindow)) { return kStepDauEta; } - if (species == kK0s && v0Cuts.armenterosK0sMin > 0.f && v0.qtarm() < v0Cuts.armenterosK0sMin * std::abs(v0.alpha())) { + if (!passedArmenteros(v0, species)) { return kStepCompetingMass; } return kStepArmenteros; } + // Armenteros-Podolanski selection. K0s: above the line qT = c |alpha|. (Anti)Lambda: below the line and on the side of + // the (anti)proton (alpha > 0 for Lambda, < 0 for AntiLambda), which removes the K0s band and the opposite (anti)Lambda + template + bool passedArmenteros(T const& v0, V0Species species) + { + const float alpha = v0.alpha(); + const float qt = v0.qtarm(); + if (species == kK0s) { + return v0Cuts.armenterosK0sMin <= 0.f || qt > v0Cuts.armenterosK0sMin * std::abs(alpha); + } + if (v0Cuts.armenterosLambdaMax <= 0.f) { + return true; + } + const bool rightSide = (species == kLambda) ? (alpha > 0.f) : (alpha < 0.f); + return rightSide && qt < v0Cuts.armenterosLambdaMax * std::abs(alpha); + } + // Full selection of a V0 (accepted by the jet finder) for a given species hypothesis template bool passedV0Selection(T const& v0, V0Species species)