Skip to content

Commit 139cf69

Browse files
committed
[PWGHF] Minor fix in D+ selected collision
1 parent 8c73025 commit 139cf69

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎PWGHF/HFC/TableProducer/correlatorDplusHadrons.cxx‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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) {

0 commit comments

Comments
 (0)