From 1a9c6e6ff7642aad0d089d67f769a3850bb7ada6 Mon Sep 17 00:00:00 2001 From: Subhadeep Mandal Date: Thu, 22 Jan 2026 20:36:14 +0530 Subject: [PATCH] Added switch for sel8 selection --- PWGLF/Tasks/Resonances/kstar892LightIon.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PWGLF/Tasks/Resonances/kstar892LightIon.cxx b/PWGLF/Tasks/Resonances/kstar892LightIon.cxx index f18aad19290..69cc7b0e11f 100644 --- a/PWGLF/Tasks/Resonances/kstar892LightIon.cxx +++ b/PWGLF/Tasks/Resonances/kstar892LightIon.cxx @@ -79,6 +79,7 @@ struct Kstar892LightIon { struct : ConfigurableGroup { // Configurables for event selections Configurable cfgVrtxZCut{"cfgVrtxZCut", 10.0f, "Accepted z-vertex range (cm)"}; + Configurable isApplysel8{"isApplysel8", true, "Apply sel8 event selection"}; Configurable isTriggerTVX{"isTriggerTVX", true, "TriggerTVX"}; Configurable isGoodZvtxFT0vsPV{"isGoodZvtxFT0vsPV", true, "IsGoodZvtxFT0vsPV"}; Configurable isApplyOccCut{"isApplyOccCut", false, "Apply occupancy cut"}; @@ -222,7 +223,7 @@ struct Kstar892LightIon { std::vector eveCutLabels = { "All Events", Form("|Vz| < %.1f", selectionConfig.cfgVrtxZCut.value), - "sel8", + std::string("sel8") + check(selectionConfig.isApplysel8.value), std::string("kNoTimeFrameBorder") + check(selectionConfig.isNoTimeFrameBorder.value), std::string("kNoITSROFrameBorder") + check(selectionConfig.isNoITSROFrameBorder.value), std::string("kIsTriggerTVX") + check(selectionConfig.isTriggerTVX.value), @@ -371,7 +372,7 @@ struct Kstar892LightIon { if (fillHist) hEventSelection.fill(HIST("hEventCut"), 1); - if (!collision.sel8()) + if (selectionConfig.isApplysel8 && !collision.sel8()) return false; if (fillHist) hEventSelection.fill(HIST("hEventCut"), 2);