From 42727365bf909cf01666a02532ba2a1364c7f231 Mon Sep 17 00:00:00 2001 From: Maximiliano Puccio Date: Wed, 4 Jun 2025 18:58:58 +0200 Subject: [PATCH] feat(nonPromptCascade): Introduce configurable triggers of interest The changes made in this commit introduce a new configurable parameter `cfgTriggersOfInterest` to allow for more flexibility in specifying the triggers of interest for the Zorro processing. This replaces the previous hardcoded "HighMultOmega" trigger with a comma-separated list of triggers that can be configured. The key changes are: - Renamed `cfgHMOmegaTrigger` to `cfgTriggersOfInterest` to better reflect the purpose of the parameter. - Updated the default value of `cfgTriggersOfInterest` to include both "fTrackedOmega" and "fOmegaHighMult" triggers. - Removed the call to `mZorroSummary->setupTOIs()` as it is no longer needed with the new configurable parameter. - Updated the call to `mZorro.initCCDB()` to use the new `cfgTriggersOfInterest` parameter. --- PWGLF/Tasks/Strangeness/nonPromptCascade.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/PWGLF/Tasks/Strangeness/nonPromptCascade.cxx b/PWGLF/Tasks/Strangeness/nonPromptCascade.cxx index f46b865393a..c5388c034a2 100644 --- a/PWGLF/Tasks/Strangeness/nonPromptCascade.cxx +++ b/PWGLF/Tasks/Strangeness/nonPromptCascade.cxx @@ -195,7 +195,7 @@ struct NonPromptCascadeTask { Configurable cfgMinCosPA{"cfgMinCosPA", -1.f, "Minimum cosine of pointing angle"}; Configurable> cfgCutsPID{"particlesCutsPID", {cutsPID[0], nParticles, nCutsPID, particlesNames, cutsNames}, "Nuclei PID selections"}; Configurable cfgSkimmedProcessing{"cfgSkimmedProcessing", true, "Skimmed dataset processing"}; - Configurable cfgHMOmegaTrigger{"cfgHMOmegaTrigger", "HighMultOmega", "OTS high multiplicity Omega trigger"}; + Configurable cfgTriggersOfInterest{"cfgTriggersOfInterest", "fTrackedOmega,fOmegaHighMult", "Triggers of interest, comma separated for Zorro"}; Zorro mZorro; OutputObj mZorroSummary{"ZorroSummary"}; @@ -230,7 +230,6 @@ struct NonPromptCascadeTask { void init(InitContext const&) { mZorroSummary.setObject(mZorro.getZorroSummary()); - mZorroSummary->setupTOIs(1, cfgHMOmegaTrigger); mCCDB->setURL(ccdbUrl); mCCDB->setFatalWhenNull(true); mCCDB->setCaching(true); @@ -295,7 +294,7 @@ struct NonPromptCascadeTask { for (const auto& coll : collisions) { auto bc = coll.template bc_as(); if (runNumber != bc.runNumber()) { - mZorro.initCCDB(mCCDB.service, bc.runNumber(), bc.timestamp(), "fTrackedOmega"); + mZorro.initCCDB(mCCDB.service, bc.runNumber(), bc.timestamp(), cfgTriggersOfInterest.value); mZorro.populateHistRegistry(mRegistry, bc.runNumber()); runNumber = bc.runNumber(); }