@@ -136,19 +136,18 @@ struct OnTheFlyTofPid {
136136 pRandomNumberGenerator.SetSeed (0 ); // fully randomize
137137
138138 // Check if inheriting the LUT configuration
139- auto configLutPath = [&](Configurable<std::string>& lut, const char * lutName ) {
139+ auto configLutPath = [&](Configurable<std::string>& lut) {
140140 if (lut.value != " inherit" ) {
141141 return ;
142142 }
143- if (!getTaskOptionValue (initContext, " on-the-fly-tracker" , lutName, lut.value , true )) {
144- LOG (fatal) << " Could not get " << lutName << " from on-the-fly-tracker task" ;
145- }
143+ if (!getTaskOptionValue (initContext, " on-the-fly-tracker" , lut.name , lut.value , true )) {
144+ LOG (fatal) << " Could not get " << lut.name << " from on-the-fly-tracker task" ; }
146145 };
147- configLutPath (simConfig.lutEl , " lutEl " );
148- configLutPath (simConfig.lutMu , " lutMu " );
149- configLutPath (simConfig.lutPi , " lutPi " );
150- configLutPath (simConfig.lutKa , " lutKa " );
151- configLutPath (simConfig.lutPr , " lutPr " );
146+ configLutPath (simConfig.lutEl );
147+ configLutPath (simConfig.lutMu );
148+ configLutPath (simConfig.lutPi );
149+ configLutPath (simConfig.lutKa );
150+ configLutPath (simConfig.lutPr );
152151
153152 // Load LUT for pt and eta smearing
154153 if (simConfig.flagIncludeTrackTimeRes && simConfig.flagTOFLoadDelphesLUTs ) {
0 commit comments