@@ -99,13 +99,12 @@ struct HfCorrelatorDplusHadronsDplusSelection {
9999 CandidatesDplusData const & candidates)
100100 {
101101 bool isSelColl = true ;
102- bool isDplusFound = true ;
102+ bool isDplusFound = !doSelDplusCollision ;
103103 bool isSel8 = true ;
104104 bool isNosameBunchPileUp = true ;
105105 if (doSelDplusCollision) {
106106 for (const auto & candidate : candidates) {
107107 if (std::abs (HfHelper::yDplus (candidate)) > yCandMax || candidate.pt () < ptCandMin) {
108- isDplusFound = false ;
109108 continue ;
110109 }
111110 isDplusFound = true ;
@@ -127,7 +126,7 @@ struct HfCorrelatorDplusHadronsDplusSelection {
127126 CandidatesDplusMcRec const & candidates)
128127 {
129128 bool isSelColl = true ;
130- bool isDplusFound = false ;
129+ bool isDplusFound = !doSelDplusCollision ;
131130 bool isSel8 = true ;
132131 bool isNosameBunchPileUp = true ;
133132 if (doSelDplusCollision) {
@@ -806,7 +805,7 @@ struct HfCorrelatorDplusHadrons {
806805 TracksWithMc const & tracks,
807806 aod::McParticles const & mcParticles)
808807 {
809- BinningType const corrBinning {{binsZVtx, binsMultiplicityMc}};
808+ BinningType const corrBinningMcRec {{binsZVtx, binsMultiplicityMc}};
810809 for (const auto & candidate : candidates) {
811810 if (std::abs (HfHelper::yDplus (candidate)) > yCandMax || candidate.pt () < ptCandMin || candidate.pt () > ptCandMax) {
812811 continue ;
@@ -831,11 +830,11 @@ struct HfCorrelatorDplusHadrons {
831830 }
832831 }
833832 auto tracksTuple = std::make_tuple (candidates, tracks);
834- Pair<SelCollisionsWithDplus, CandidatesDplusMcRec, TracksWithMc, BinningType> const pairMcRec{corrBinning , numberEventsMixed, -1 , collisions, tracksTuple, &cache};
833+ Pair<SelCollisionsWithDplus, CandidatesDplusMcRec, TracksWithMc, BinningType> const pairMcRec{corrBinningMcRec , numberEventsMixed, -1 , collisions, tracksTuple, &cache};
835834
836835 for (const auto & [c1, tracks1, c2, tracks2] : pairMcRec) {
837- int poolBin = corrBinning .getBin (std::make_tuple (c2.posZ (), c2.multFT0M ()));
838- int const poolBinDplus = corrBinning .getBin (std::make_tuple (c1.posZ (), c1.multFT0M ()));
836+ int poolBin = corrBinningMcRec .getBin (std::make_tuple (c2.posZ (), c2.multFT0M ()));
837+ int const poolBinDplus = corrBinningMcRec .getBin (std::make_tuple (c1.posZ (), c1.multFT0M ()));
839838 registry.fill (HIST (" hMultFT0M" ), c1.multFT0M ());
840839 registry.fill (HIST (" hZVtx" ), c1.posZ ());
841840 registry.fill (HIST (" hTracksPoolBin" ), poolBin); // note that the selections here are not yet applied
0 commit comments