From 15a62f1d90980b57c5035b0a83270874955c48e2 Mon Sep 17 00:00:00 2001 From: apalasciano Date: Tue, 24 Nov 2026 18:37:32 +0100 Subject: [PATCH] [PWGHF] D+-h: remove mass ambiguity in McRec level --- PWGHF/HFC/Tasks/taskCorrelationDplusHadrons.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PWGHF/HFC/Tasks/taskCorrelationDplusHadrons.cxx b/PWGHF/HFC/Tasks/taskCorrelationDplusHadrons.cxx index fcce20ad9ad..809e5e1a0d5 100644 --- a/PWGHF/HFC/Tasks/taskCorrelationDplusHadrons.cxx +++ b/PWGHF/HFC/Tasks/taskCorrelationDplusHadrons.cxx @@ -141,6 +141,7 @@ struct HfTaskCorrelationDplusHadrons { Configurable nTpcCrossedRows{"nTpcCrossedRows", 70, "Number of crossed TPC Rows"}; Configurable cutCollPosZMc{"cutCollPosZMc", 10., "max z-vertex position for collision acceptance"}; Configurable storeMassAxis{"storeMassAxis", false, "Store Mass axis in THnSparse"}; + Configurable applyMassCutSignalRegionMcRec{"applyMassCutSignalRegionMcRec", false, "Apply the signal-region mass window to the MC Rec signal-region correlations (if false, all candidates are used, consistently with the D+ counting)"}; Configurable storeBMotherInfo{"storeBMotherInfo", false, "Store generated pT(B mother) and phi(D+) - phi(B mother) of non-prompt D+ in MC Rec histograms"}; Configurable> binsPtBMother{"binsPtBMother", std::vector{0., 2., 4., 6., 8., 12., 16., 24., 36., 50., 99.}, "pT bin limits for the B mother of non-prompt D+"}; // CCDB configuration @@ -601,7 +602,7 @@ struct HfTaskCorrelationDplusHadrons { continue; // outside the pT range of the signal and sideband regions } // check if correlation entry belongs to signal region, sidebands or is outside both, and fill correlation plots - if (massD > signalRegionInner->at(pTBinD) && massD < signalRegionOuter->at(pTBinD)) { + if (!applyMassCutSignalRegionMcRec || (massD > signalRegionInner->at(pTBinD) && massD < signalRegionOuter->at(pTBinD))) { // in signal region registry.fill(HIST("hCorrel2DVsPtSignalRegionMcRec"), deltaPhi, deltaEta, ptD, ptHadron, static_cast(isDplusPrompt), poolBin, efficiencyWeight); registry.fill(HIST("hCorrel2DPtIntSignalRegionMcRec"), deltaPhi, deltaEta, efficiencyWeight);