Skip to content

Commit ea07b3d

Browse files
[PWGHF] Keep only one tag for the ambiguous case of D0 in the Tcc tree creator (#10643)
1 parent 303a500 commit ea07b3d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

PWGHF/TableProducer/treeCreatorTccToD0D0Pi.cxx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,8 @@ struct HfTreeCreatorTccToD0D0Pi {
291291
candFlagD1 = (candidateD1.isSelD0bar()) ? 3 : 1;
292292
std::copy(candidateD1.mlProbD0().begin(), candidateD1.mlProbD0().end(), std::back_inserter(mlScoresD1));
293293
massD01 = hfHelper.invMassD0ToPiK(candidateD1);
294-
} else if (candidateD1.isSelD0bar()) {
295-
candFlagD1 = (candidateD1.isSelD0()) ? 4 : 2;
294+
}
295+
if (candidateD1.isSelD0bar()) {
296296
std::copy(candidateD1.mlProbD0bar().begin(), candidateD1.mlProbD0bar().end(), std::back_inserter(mlScoresD1));
297297
massD01 = hfHelper.invMassD0barToKPi(candidateD1);
298298
}
@@ -301,9 +301,8 @@ struct HfTreeCreatorTccToD0D0Pi {
301301
candFlagD2 = (candidateD2.isSelD0bar()) ? 3 : 1;
302302
std::copy(candidateD2.mlProbD0().begin(), candidateD2.mlProbD0().end(), std::back_inserter(mlScoresD2));
303303
massD02 = hfHelper.invMassD0ToPiK(candidateD2);
304-
305-
} else if (candidateD2.isSelD0bar()) {
306-
candFlagD2 = (candidateD2.isSelD0()) ? 4 : 2;
304+
}
305+
if (candidateD2.isSelD0bar()) {
307306
std::copy(candidateD2.mlProbD0bar().begin(), candidateD2.mlProbD0bar().end(), std::back_inserter(mlScoresD2));
308307
massD02 = hfHelper.invMassD0barToKPi(candidateD2);
309308
}

0 commit comments

Comments
 (0)