File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -307,13 +307,20 @@ struct OnTheFlyTracker {
307307
308308 if (enablePrimarySmearing) {
309309 auto loadLUT = [&](int icfg, int pdg, const std::vector<std::string>& tables) {
310+ LOG (info) << " Loading LUT for pdg " << pdg << " for config " << icfg << " from provided tables with size " << tables.size ();
311+ if (tables.empty ()) {
312+ LOG (debug) << " No LUT file passed for pdg " << pdg << " , skipping." ;
313+ return false ;
314+ }
310315 const bool foundNewCfg = static_cast <size_t >(icfg) < tables.size ();
311316 std::string lutFile = foundNewCfg ? tables[icfg] : tables.front ();
317+ LOG (info) << " Loading LUT for pdg " << pdg << " from file " << lutFile << " for config " << icfg;
312318 // strip from leading/trailing spaces
313319 lutFile.erase (0 , lutFile.find_first_not_of (" " ));
314320 lutFile.erase (lutFile.find_last_not_of (" " ) + 1 );
315321 if (lutFile.empty ()) {
316- 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." ;
322+ LOG (debug) << " Empty LUT file name for pdg " << pdg << " , skipping." ;
323+ return false ;
317324 }
318325 bool success = mSmearer [icfg]->loadTable (pdg, lutFile.c_str ());
319326 if (!success) {
You can’t perform that action at this time.
0 commit comments