Skip to content

Commit 4a19540

Browse files
author
Luigi Dello Stritto
committed
checking the that the configurable are correct
1 parent d41a59c commit 4a19540

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

PWGHF/TableProducer/treeCreatorLcToK0sP.cxx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)