From 139cf69ae6f558195566c9fff96c5bacafee0e34 Mon Sep 17 00:00:00 2001 From: apalasciano Date: Thu, 8 Oct 2026 14:12:56 +0200 Subject: [PATCH 1/2] [PWGHF] Minor fix in D+ selected collision --- PWGHF/HFC/TableProducer/correlatorDplusHadrons.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/PWGHF/HFC/TableProducer/correlatorDplusHadrons.cxx b/PWGHF/HFC/TableProducer/correlatorDplusHadrons.cxx index 8c3ec22ea1f..29c9e7dd656 100644 --- a/PWGHF/HFC/TableProducer/correlatorDplusHadrons.cxx +++ b/PWGHF/HFC/TableProducer/correlatorDplusHadrons.cxx @@ -99,13 +99,12 @@ struct HfCorrelatorDplusHadronsDplusSelection { CandidatesDplusData const& candidates) { bool isSelColl = true; - bool isDplusFound = true; + bool isDplusFound = !doSelDplusCollision; bool isSel8 = true; bool isNosameBunchPileUp = true; if (doSelDplusCollision) { for (const auto& candidate : candidates) { if (std::abs(HfHelper::yDplus(candidate)) > yCandMax || candidate.pt() < ptCandMin) { - isDplusFound = false; continue; } isDplusFound = true; @@ -127,7 +126,7 @@ struct HfCorrelatorDplusHadronsDplusSelection { CandidatesDplusMcRec const& candidates) { bool isSelColl = true; - bool isDplusFound = false; + bool isDplusFound = !doSelDplusCollision; bool isSel8 = true; bool isNosameBunchPileUp = true; if (doSelDplusCollision) { From d95289d4c5bc5fb4366bb6a619063b982ca6b3b2 Mon Sep 17 00:00:00 2001 From: apalasciano Date: Thu, 8 Oct 2026 14:27:58 +0200 Subject: [PATCH 2/2] megalinter --- PWGHF/HFC/TableProducer/correlatorDplusHadrons.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/PWGHF/HFC/TableProducer/correlatorDplusHadrons.cxx b/PWGHF/HFC/TableProducer/correlatorDplusHadrons.cxx index 29c9e7dd656..ee3f8571f6f 100644 --- a/PWGHF/HFC/TableProducer/correlatorDplusHadrons.cxx +++ b/PWGHF/HFC/TableProducer/correlatorDplusHadrons.cxx @@ -805,7 +805,7 @@ struct HfCorrelatorDplusHadrons { TracksWithMc const& tracks, aod::McParticles const& mcParticles) { - BinningType const corrBinning{{binsZVtx, binsMultiplicityMc}}; + BinningType const corrBinningMcRec{{binsZVtx, binsMultiplicityMc}}; for (const auto& candidate : candidates) { if (std::abs(HfHelper::yDplus(candidate)) > yCandMax || candidate.pt() < ptCandMin || candidate.pt() > ptCandMax) { continue; @@ -830,11 +830,11 @@ struct HfCorrelatorDplusHadrons { } } auto tracksTuple = std::make_tuple(candidates, tracks); - Pair const pairMcRec{corrBinning, numberEventsMixed, -1, collisions, tracksTuple, &cache}; + Pair const pairMcRec{corrBinningMcRec, numberEventsMixed, -1, collisions, tracksTuple, &cache}; for (const auto& [c1, tracks1, c2, tracks2] : pairMcRec) { - int poolBin = corrBinning.getBin(std::make_tuple(c2.posZ(), c2.multFT0M())); - int const poolBinDplus = corrBinning.getBin(std::make_tuple(c1.posZ(), c1.multFT0M())); + int poolBin = corrBinningMcRec.getBin(std::make_tuple(c2.posZ(), c2.multFT0M())); + int const poolBinDplus = corrBinningMcRec.getBin(std::make_tuple(c1.posZ(), c1.multFT0M())); registry.fill(HIST("hMultFT0M"), c1.multFT0M()); registry.fill(HIST("hZVtx"), c1.posZ()); registry.fill(HIST("hTracksPoolBin"), poolBin); // note that the selections here are not yet applied