From e4d5ed397f527cbbf97be9c726479a3c408d37ee Mon Sep 17 00:00:00 2001 From: Giovanni Malfattore Date: Sat, 23 Sep 2023 17:37:26 +0200 Subject: [PATCH 1/2] [PWGLF] LightNucleiTask - Add multiplicity selection --- PWGLF/Tasks/LFNucleiBATask.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/PWGLF/Tasks/LFNucleiBATask.cxx b/PWGLF/Tasks/LFNucleiBATask.cxx index df3ba8d2256..aaf95ab2099 100644 --- a/PWGLF/Tasks/LFNucleiBATask.cxx +++ b/PWGLF/Tasks/LFNucleiBATask.cxx @@ -50,6 +50,10 @@ struct LFNucleiBATask { Configurable enableHe{"enableHe", true, "Flag to enable helium-3 analysis."}; Configurable enableAl{"enableAl", true, "Flag to enable alpha analysis."}; + // Set the multiplity event limits + Configurable cfgLowMultCut{"cfgLowMultCut", 0.0f, "Accepted multiplicity percentage lower limit"}; + Configurable cfgHighMultCut{"cfgHighMultCut", 100.0f, "Accepted multiplicity percentage higher limit"}; + // Set the z-vertex event cut limits Configurable cfgHighCutVertex{"cfgHighCutVertex", 10.0f, "Accepted z-vertex upper limit"}; Configurable cfgLowCutVertex{"cfgLowCutVertex", -10.0f, "Accepted z-vertex lower limit"}; @@ -1263,11 +1267,19 @@ struct LFNucleiBATask { if (!event.sel8()) { return; } + if (event.centFT0M() < cfgLowMultCut || event.centFT0M() > cfgHighMultCut) { + return; + } + if (event.centFV0M() < cfgLowMultCut || event.centFV0M() > cfgHighMultCut) { + return; + } if (event.posZ() < cfgLowCutVertex || event.posZ() > cfgHighCutVertex) { return; } } + if (event.centFT0M() < cfgLowMultCut || event.centFT0M() > cfgHighMultCut) + return; if (event.posZ() < cfgLowCutVertex || event.posZ() > cfgHighCutVertex) return; From ec69bf992ba634f1dc8de4397b8a353b94786791 Mon Sep 17 00:00:00 2001 From: Giovanni Malfattore Date: Sat, 23 Sep 2023 18:19:42 +0200 Subject: [PATCH 2/2] [PWGLF] LightNucleiTask - Fix build issues --- PWGLF/Tasks/LFNucleiBATask.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PWGLF/Tasks/LFNucleiBATask.cxx b/PWGLF/Tasks/LFNucleiBATask.cxx index aaf95ab2099..87b7dbaaef3 100644 --- a/PWGLF/Tasks/LFNucleiBATask.cxx +++ b/PWGLF/Tasks/LFNucleiBATask.cxx @@ -1270,9 +1270,9 @@ struct LFNucleiBATask { if (event.centFT0M() < cfgLowMultCut || event.centFT0M() > cfgHighMultCut) { return; } - if (event.centFV0M() < cfgLowMultCut || event.centFV0M() > cfgHighMultCut) { - return; - } + // if (event.centFV0M() < cfgLowMultCut || event.centFV0M() > cfgHighMultCut) { + // return; + // } if (event.posZ() < cfgLowCutVertex || event.posZ() > cfgHighCutVertex) { return; }