File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -425,6 +425,11 @@ struct HfTreeCreatorLcToK0sP {
425425 TracksWPid const &)
426426 {
427427
428+ if (applyMl && candidateMlScores.size () == 0 ) {
429+ LOG (fatal) << " ML enabled but table with the ML scores is empty! Please check your configurables." ;
430+ return ;
431+ }
432+
428433 // Filling event properties
429434 rowCandidateFullEvents.reserve (collisions.size ());
430435 for (const auto & collision : collisions) {
@@ -477,6 +482,11 @@ struct HfTreeCreatorLcToK0sP {
477482 TracksWPid const &)
478483 {
479484
485+ if (applyMl && candidateMlScores.size () == 0 ) {
486+ LOG (fatal) << " ML enabled but table with the ML scores is empty! Please check your configurables." ;
487+ return ;
488+ }
489+
480490 // Filling event properties
481491 rowCandidateFullEvents.reserve (collisions.size ());
482492 for (const auto & collision : collisions) {
You can’t perform that action at this time.
0 commit comments