@@ -277,6 +277,10 @@ struct HfTaskCorrelationDsHadrons {
277277 float bdtScoreBkg = candidate.mlScoreBkg ();
278278 int ptBinD = o2::analysis::findBin (binsPtD, ptD);
279279
280+ if (ptBinD == -1 ) {
281+ continue ;
282+ }
283+
280284 if (bdtScorePrompt < mlOutputPromptMin->at (ptBinD) || bdtScorePrompt > mlOutputPromptMax->at (ptBinD) || bdtScoreBkg > mlOutputBkg->at (ptBinD)) {
281285 continue ;
282286 }
@@ -307,6 +311,10 @@ struct HfTaskCorrelationDsHadrons {
307311 int poolBin = pairEntry.poolBin ();
308312 int ptBinD = o2::analysis::findBin (binsPtD, ptD);
309313
314+ if (ptBinD == -1 ) {
315+ continue ;
316+ }
317+
310318 if (bdtScorePrompt < mlOutputPromptMin->at (ptBinD) || bdtScorePrompt > mlOutputPromptMax->at (ptBinD) || bdtScoreBkg > mlOutputBkg->at (ptBinD)) {
311319 continue ;
312320 }
@@ -355,6 +363,10 @@ struct HfTaskCorrelationDsHadrons {
355363 int ptBinD = o2::analysis::findBin (binsPtD, ptD);
356364 bool isDsPrompt = candidate.isPrompt ();
357365
366+ if (ptBinD == -1 ) {
367+ continue ;
368+ }
369+
358370 if (bdtScorePrompt < mlOutputPromptMin->at (ptBinD) || bdtScorePrompt > mlOutputPromptMax->at (ptBinD) || bdtScoreBkg > mlOutputBkg->at (ptBinD)) {
359371 continue ;
360372 }
@@ -394,6 +406,10 @@ struct HfTaskCorrelationDsHadrons {
394406 int ptBinD = o2::analysis::findBin (binsPtD, ptD);
395407 bool isPhysicalPrimary = pairEntry.isPhysicalPrimary ();
396408
409+ if (ptBinD == -1 ) {
410+ continue ;
411+ }
412+
397413 if (bdtScorePrompt < mlOutputPromptMin->at (ptBinD) || bdtScorePrompt > mlOutputPromptMax->at (ptBinD) || bdtScoreBkg > mlOutputBkg->at (ptBinD)) {
398414 continue ;
399415 }
@@ -488,6 +504,10 @@ struct HfTaskCorrelationDsHadrons {
488504 int poolBin = pairEntry.poolBin ();
489505 int ptBinD = o2::analysis::findBin (binsPtD, ptD);
490506
507+ if (ptBinD == -1 ) {
508+ continue ;
509+ }
510+
491511 if (bdtScorePrompt < mlOutputPromptMin->at (ptBinD) || bdtScorePrompt > mlOutputPromptMax->at (ptBinD) || bdtScoreBkg > mlOutputBkg->at (ptBinD)) {
492512 continue ;
493513 }
@@ -587,6 +607,10 @@ struct HfTaskCorrelationDsHadrons {
587607 int ptBinD = o2::analysis::findBin (binsPtD, ptD);
588608 bool isPhysicalPrimary = pairEntry.isPhysicalPrimary ();
589609
610+ if (ptBinD == -1 ) {
611+ continue ;
612+ }
613+
590614 if (bdtScorePrompt < mlOutputPromptMin->at (ptBinD) || bdtScorePrompt > mlOutputPromptMax->at (ptBinD) || bdtScoreBkg > mlOutputBkg->at (ptBinD)) {
591615 continue ;
592616 }
0 commit comments