From 900b9d59a2477f9298280d140da724c6554884a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Jacazio?= Date: Tue, 25 Nov 2025 18:14:00 +0100 Subject: [PATCH] Change empty LUT file log to debug level Changed logging level for empty LUT file to debug. --- ALICE3/TableProducer/OTF/onTheFlyTracker.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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) {