From 8c6e3eb5fb89cb4a47404a9704ade1b300f0f106 Mon Sep 17 00:00:00 2001 From: Shyam Kumar Date: Tue, 30 Sep 2025 18:17:55 +0200 Subject: [PATCH] Update taskDplus.cxx Minor fix --- PWGHF/D2H/Tasks/taskDplus.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PWGHF/D2H/Tasks/taskDplus.cxx b/PWGHF/D2H/Tasks/taskDplus.cxx index fd90c19d4af..18e2e59b26d 100644 --- a/PWGHF/D2H/Tasks/taskDplus.cxx +++ b/PWGHF/D2H/Tasks/taskDplus.cxx @@ -636,7 +636,7 @@ struct HfTaskDplus { flagGenB = getBHadMotherFlag(bHadMother.pdgCode()); ptGenB = bHadMother.pt(); } - for (const auto& recCol : mcRecoCollisions) { + for (const auto& recCol : recoCollsPerGenMcColl) { numPvContr = std::max(numPvContr, recCol.numContrib()); } fillHistoMCGen(particle);