@@ -290,17 +290,17 @@ void FastTracker::AddGenericDetector(std::string filename, o2::ccdb::BasicCCDBMa
290290 LOG (warning) << " Key " << key << " not defined in configuration file, getting the default value" ;
291291 }
292292 LOG (info) << " Getting key " << key;
293- return key. c_str () ;
293+ return key;
294294 };
295- const float r = env.GetValue (getKey (" r" ), -1 .0f );
295+ const float r = env.GetValue (getKey (" r" ). c_str () , -1 .0f );
296296 LOG (info) << " Layer " << layer << " has radius " << r;
297- const float z = env.GetValue (getKey (" z" ), -1 .0f );
298- const float x0 = env.GetValue (getKey (" x0" ), 0 .0f );
299- const float xrho = env.GetValue (getKey (" xrho" ), 0 .0f );
300- const float resRPhi = env.GetValue (getKey (" resRPhi" ), 0 .0f );
301- const float resZ = env.GetValue (getKey (" resZ" ), 0 .0f );
302- const float eff = env.GetValue (getKey (" eff" ), 0 .0f );
303- const int type = env.GetValue (getKey (" type" ), 0 );
297+ const float z = env.GetValue (getKey (" z" ). c_str () , -1 .0f );
298+ const float x0 = env.GetValue (getKey (" x0" ). c_str () , 0 .0f );
299+ const float xrho = env.GetValue (getKey (" xrho" ). c_str () , 0 .0f );
300+ const float resRPhi = env.GetValue (getKey (" resRPhi" ). c_str () , 0 .0f );
301+ const float resZ = env.GetValue (getKey (" resZ" ). c_str () , 0 .0f );
302+ const float eff = env.GetValue (getKey (" eff" ). c_str () , 0 .0f );
303+ const int type = env.GetValue (getKey (" type" ). c_str () , 0 );
304304
305305 // void AddLayer(TString name, float r, float z, float x0, float xrho, float resRPhi = 0.0f, float resZ = 0.0f, float eff = 0.0f, int type = 0);
306306 AddLayer (layer.c_str (), r, z, x0, xrho, resRPhi, resZ, eff, type);
0 commit comments