Skip to content

Commit 0f67c3b

Browse files
authored
[PWGHF] Add check for ml output size for Dplus in HfDataCreatorCharmHadPiReduced (#17697)
1 parent 2fcd35c commit 0f67c3b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

PWGHF/D2H/TableProducer/dataCreatorCharmHadPiReduced.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,10 @@ struct HfDataCreatorCharmHadPiReduced {
13791379
if constexpr (WithMl) {
13801380
std::array<float, 6> mlScores = {-1.f, -1.f, -1.f, -1.f, -1.f, -1.f};
13811381
if constexpr (DecChannel == DecayChannel::B0ToDminusPi) {
1382-
tables.hfCand3ProngMl(candC.mlProbDplusToPiKPi()[0], candC.mlProbDplusToPiKPi()[1], candC.mlProbDplusToPiKPi()[2], -1., -1., -1.);
1382+
if (candC.mlProbDplusToPiKPi().size() == NSizeMLScore) {
1383+
std::copy(candC.mlProbDplusToPiKPi().begin(), candC.mlProbDplusToPiKPi().end(), mlScores.begin());
1384+
}
1385+
tables.hfCand3ProngMl(mlScores[0], mlScores[1], mlScores[2], -1., -1., -1.);
13831386
} else if constexpr (DecChannel == DecayChannel::BsToDsminusPi) {
13841387
if (candC.mlProbDsToKKPi().size() == NSizeMLScore) {
13851388
std::copy(candC.mlProbDsToKKPi().begin(), candC.mlProbDsToKKPi().end(), mlScores.begin());

0 commit comments

Comments
 (0)