Skip to content

Commit a731860

Browse files
JaeYoonCHOalibuild
andauthored
[PWGHF] Minor bug fix in the task workflow (#9831)
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent f6f3d84 commit a731860

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

PWGHF/D2H/Tasks/taskXicToXiPiPi.cxx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,10 +280,13 @@ struct HfTaskXicToXiPiPi {
280280
double outputBkg = -99.; // bkg score
281281
double outputPrompt = -99.; // prompt score
282282
double outputFD = -99.; // non-prompt score
283-
if (candidate.mlProbXicToXiPiPi().size() > 0) {
283+
int scoreSize = candidate.mlProbXicToXiPiPi().size();
284+
if (scoreSize > 0) {
284285
outputBkg = candidate.mlProbXicToXiPiPi()[0];
285286
outputPrompt = candidate.mlProbXicToXiPiPi()[1];
286-
outputFD = candidate.mlProbXicToXiPiPi()[2];
287+
if (scoreSize == 3) {
288+
outputFD = candidate.mlProbXicToXiPiPi()[2];
289+
}
287290
}
288291
registry.get<THnSparse>(HIST("hXicToXiPiPiVarsWithML"))->Fill(candidate.pt(), candidate.invMassXicPlus(), candidate.chi2PCA(), candidate.decayLength(), candidate.decayLengthXY(), candidate.cpa(), outputBkg, outputPrompt, outputFD);
289292
} else {

0 commit comments

Comments
 (0)