From d06f9528d70b076ffe8780fdb45715770706d62e Mon Sep 17 00:00:00 2001 From: Zhihe Han Date: Sun, 22 Nov 2026 10:41:42 +0800 Subject: [PATCH] [PWGHF] Register the D* - V0 MC process in the femto task process counter The V0 femto task verifies in init() that exactly one process function is enabled, using a hard-coded list of the process switches, and derives from them the particle-type flags used e.g. for the close-pair rejection setup. processMcDstarV0 was added in #18830 but not registered in that list, so enabling only the new process results in a count of zero and the task stops with "One and only one process function must be enabled at a time". The D* flag was also not set for the new process. Add doprocessMcDstarV0 to the process list and to the D* flag, following the pattern already used in the track-based femto task. --- PWGHF/HFC/Tasks/taskCharmHadronsV0FemtoDream.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PWGHF/HFC/Tasks/taskCharmHadronsV0FemtoDream.cxx b/PWGHF/HFC/Tasks/taskCharmHadronsV0FemtoDream.cxx index 9e6dfb64f99..10bffaacc78 100644 --- a/PWGHF/HFC/Tasks/taskCharmHadronsV0FemtoDream.cxx +++ b/PWGHF/HFC/Tasks/taskCharmHadronsV0FemtoDream.cxx @@ -322,13 +322,13 @@ struct HfTaskCharmHadronsV0FemtoDream { void init(InitContext& /*context*/) { - std::array processes = {doprocessDataLcV0, doprocessDataDplusV0, doprocessDataD0V0, doprocessDataDstarV0, doprocessMcDplusV0}; + std::array processes = {doprocessDataLcV0, doprocessDataDplusV0, doprocessDataD0V0, doprocessDataDstarV0, doprocessMcDplusV0, doprocessMcDstarV0}; if (std::accumulate(processes.begin(), processes.end(), 0) != 1) { LOGP(fatal, "One and only one process function must be enabled at a time."); } bool process3Prong = doprocessDataLcV0 || doprocessDataDplusV0 || doprocessMcDplusV0; bool process2Prong = doprocessDataD0V0; - bool processDstar = doprocessDataDstarV0; + bool processDstar = doprocessDataDstarV0 || doprocessMcDstarV0; // setup columnpolicy for binning colBinningMult = {{AxisBinning.mixingBinVztx, AxisBinning.mixingBinMult}};