diff --git a/PWGLF/Tasks/LFNucleiBATask.cxx b/PWGLF/Tasks/LFNucleiBATask.cxx index df3ba8d2256..87b7dbaaef3 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;