diff --git a/ALICE3/TableProducer/OTF/onTheFlyTracker.cxx b/ALICE3/TableProducer/OTF/onTheFlyTracker.cxx index 7608ffb73ff..c3c64b39665 100644 --- a/ALICE3/TableProducer/OTF/onTheFlyTracker.cxx +++ b/ALICE3/TableProducer/OTF/onTheFlyTracker.cxx @@ -307,13 +307,20 @@ struct OnTheFlyTracker { if (enablePrimarySmearing) { auto loadLUT = [&](int icfg, int pdg, const std::vector& tables) { + LOG(info) << "Loading LUT for pdg " << pdg << " for config " << icfg << " from provided tables with size " << tables.size(); + if (tables.empty()) { + LOG(debug) << "No LUT file passed for pdg " << pdg << ", skipping."; + return false; + } const bool foundNewCfg = static_cast(icfg) < tables.size(); std::string lutFile = foundNewCfg ? tables[icfg] : tables.front(); + LOG(info) << "Loading LUT for pdg " << pdg << " from file " << lutFile << " for config " << icfg; // strip from leading/trailing spaces lutFile.erase(0, lutFile.find_first_not_of(" ")); lutFile.erase(lutFile.find_last_not_of(" ") + 1); if (lutFile.empty()) { - LOG(fatal) << "Empty LUT file passed for pdg " << pdg << ", if you don't want to use a LUT remove the entry from the JSON config."; + LOG(debug) << "Empty LUT file name for pdg " << pdg << ", skipping."; + return false; } bool success = mSmearer[icfg]->loadTable(pdg, lutFile.c_str()); if (!success) {