Skip to content

Commit e6cd050

Browse files
[PWGHF] Add one bin to count the reflected D0 (AliceO2Group#9174)
1 parent 5ba3125 commit e6cd050

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PWGHF/D2H/Tasks/taskDirectedFlowCharmHadrons.cxx

+2-2
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ struct HfTaskDirectedFlowCharmHadrons {
247247
case DecayChannel::D0ToPiK:
248248
massCand = hfHelper.invMassD0ToPiK(candidate);
249249
rapCand = hfHelper.yD0(candidate);
250-
sign = 1;
250+
sign = candidate.isSelD0bar() ? 3 : 1; // 3: reflected D0bar, 1: pure D0 excluding reflected D0bar
251251
if constexpr (std::is_same_v<T1, CandD0DataWMl>) {
252252
for (unsigned int iclass = 0; iclass < classMl->size(); iclass++)
253253
outputMl[iclass] = candidate.mlProbD0()[classMl->at(iclass)];
@@ -256,7 +256,7 @@ struct HfTaskDirectedFlowCharmHadrons {
256256
case DecayChannel::D0ToKPi:
257257
massCand = hfHelper.invMassD0barToKPi(candidate);
258258
rapCand = hfHelper.yD0(candidate);
259-
sign = -1;
259+
sign = candidate.isSelD0() ? 3 : 2; // 3: reflected D0, 2: pure D0bar excluding reflected D0
260260
if constexpr (std::is_same_v<T1, CandD0DataWMl>) {
261261
for (unsigned int iclass = 0; iclass < classMl->size(); iclass++)
262262
outputMl[iclass] = candidate.mlProbD0bar()[classMl->at(iclass)];

0 commit comments

Comments
 (0)