@@ -112,15 +112,15 @@ struct OnTheFlyTracker {
112112
113113 struct : ConfigurableGroup {
114114 std::string prefix = " lookUpTables" ; // JSON group name
115- Configurable<std::vector<std::string>> lutEl{" lutEl" , std::vector<std::string>{" lutCovm.el.dat" }, " LUT for electrons (if emtpy no LUT is taken)" };
116- Configurable<std::vector<std::string>> lutMu{" lutMu" , std::vector<std::string>{" lutCovm.mu.dat" }, " LUT for muons (if emtpy no LUT is taken)" };
117- Configurable<std::vector<std::string>> lutPi{" lutPi" , std::vector<std::string>{" lutCovm.pi.dat" }, " LUT for pions (if emtpy no LUT is taken)" };
118- Configurable<std::vector<std::string>> lutKa{" lutKa" , std::vector<std::string>{" lutCovm.ka.dat" }, " LUT for kaons (if emtpy no LUT is taken)" };
119- Configurable<std::vector<std::string>> lutPr{" lutPr" , std::vector<std::string>{" lutCovm.pr.dat" }, " LUT for protons (if emtpy no LUT is taken)" };
120- Configurable<std::vector<std::string>> lutDe{" lutDe" , std::vector<std::string>{" " }, " LUT for deuterons (if emtpy no LUT is taken)" };
121- Configurable<std::vector<std::string>> lutTr{" lutTr" , std::vector<std::string>{" " }, " LUT for tritons (if emtpy no LUT is taken)" };
122- Configurable<std::vector<std::string>> lutHe3{" lutHe3" , std::vector<std::string>{" " }, " LUT for Helium-3 (if emtpy no LUT is taken)" };
123- Configurable<std::vector<std::string>> lutAl{" lutAl" , std::vector<std::string>{" " }, " LUT for Alphas (if emtpy no LUT is taken)" };
115+ Configurable<std::vector<std::string>> lutEl{" lutEl" , std::vector<std::string>{" lutCovm.el.dat " }, " LUT for electrons (if emtpy no LUT is taken)" };
116+ Configurable<std::vector<std::string>> lutMu{" lutMu" , std::vector<std::string>{" lutCovm.mu.dat " }, " LUT for muons (if emtpy no LUT is taken)" };
117+ Configurable<std::vector<std::string>> lutPi{" lutPi" , std::vector<std::string>{" lutCovm.pi.dat " }, " LUT for pions (if emtpy no LUT is taken)" };
118+ Configurable<std::vector<std::string>> lutKa{" lutKa" , std::vector<std::string>{" lutCovm.ka.dat " }, " LUT for kaons (if emtpy no LUT is taken)" };
119+ Configurable<std::vector<std::string>> lutPr{" lutPr" , std::vector<std::string>{" lutCovm.pr.dat " }, " LUT for protons (if emtpy no LUT is taken)" };
120+ Configurable<std::vector<std::string>> lutDe{" lutDe" , std::vector<std::string>{" " }, " LUT for deuterons (if emtpy no LUT is taken)" };
121+ Configurable<std::vector<std::string>> lutTr{" lutTr" , std::vector<std::string>{" " }, " LUT for tritons (if emtpy no LUT is taken)" };
122+ Configurable<std::vector<std::string>> lutHe3{" lutHe3" , std::vector<std::string>{" " }, " LUT for Helium-3 (if emtpy no LUT is taken)" };
123+ Configurable<std::vector<std::string>> lutAl{" lutAl" , std::vector<std::string>{" " }, " LUT for Alphas (if emtpy no LUT is taken)" };
124124 } lookUpTables;
125125
126126 struct : ConfigurableGroup {
@@ -308,7 +308,10 @@ struct OnTheFlyTracker {
308308 if (enablePrimarySmearing) {
309309 auto loadLUT = [&](int icfg, int pdg, const std::vector<std::string>& tables) {
310310 const bool foundNewCfg = static_cast <size_t >(icfg) < tables.size ();
311- const std::string& lutFile = foundNewCfg ? tables[icfg] : tables.front ();
311+ std::string lutFile = foundNewCfg ? tables[icfg] : tables.front ();
312+ // strip from leading/trailing spaces
313+ lutFile.erase (0 , lutFile.find_first_not_of (" " ));
314+ lutFile.erase (lutFile.find_last_not_of (" " ) + 1 );
312315 bool success = mSmearer [icfg]->loadTable (pdg, lutFile.c_str ());
313316 if (!success && !lutFile.empty ()) {
314317 LOG (fatal) << " Having issue with loading the LUT " << pdg << " " << lutFile;
0 commit comments