Skip to content

Commit

Permalink
[PWGHF] Add the missed rapidity for D0 (AliceO2Group#9010)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangbiao-phy authored Dec 16, 2024
1 parent a669a49 commit e92e3ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions PWGHF/D2H/Tasks/taskDirectedFlowCharmHadrons.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -243,13 +243,15 @@ struct HfTaskDirectedFlowCharmHadrons {
switch (channel) {
case DecayChannel::D0ToPiK:
massCand = hfHelper.invMassD0ToPiK(candidate);
rapCand = hfHelper.yD0(candidate);
if constexpr (std::is_same_v<T1, CandD0DataWMl>) {
for (unsigned int iclass = 0; iclass < classMl->size(); iclass++)
outputMl[iclass] = candidate.mlProbD0()[classMl->at(iclass)];
}
break;
case DecayChannel::D0ToKPi:
massCand = hfHelper.invMassD0barToKPi(candidate);
rapCand = hfHelper.yD0(candidate);
if constexpr (std::is_same_v<T1, CandD0DataWMl>) {
for (unsigned int iclass = 0; iclass < classMl->size(); iclass++)
outputMl[iclass] = candidate.mlProbD0bar()[classMl->at(iclass)];
Expand Down

0 comments on commit e92e3ed

Please sign in to comment.