2727
2828o2 ::base ::MatLayerCylSet mbLUT ;
2929
30- bool testMBLUT (std :: string lutName = "MatBud" , std ::string lutFile = "matbud.root" );
30+ bool testMBLUT (const std ::string & lutFile = "matbud.root" );
3131
32- bool buildMatBudLUT (int nTst = 30 , int maxLr = -1 ,
33- std ::string outName = "MatBud" , std ::string outFile = "matbud.root" ,
34- std ::string geomName = "" );
32+ bool buildMatBudLUT (int nTst = 30 , int maxLr = -1 , const std ::string & outFile = "matbud.root" , const std ::string & geomName = "" );
3533
3634struct LrData {
3735 float rMin = 0.f ;
@@ -46,7 +44,7 @@ struct LrData {
4644std ::vector < LrData > lrData ;
4745void configLayers ();
4846
49- bool buildMatBudLUT (int nTst , int maxLr , std :: string outName , std ::string outFile , std ::string geomNameInput )
47+ bool buildMatBudLUT (int nTst , int maxLr , const std ::string & outFile , const std ::string & geomNameInput )
5048{
5149 auto geomName = o2 ::base ::NameConf ::getGeomFileName (geomNameInput );
5250 if (gSystem -> AccessPathName (geomName .c_str ())) { // if needed, create geometry
@@ -72,7 +70,7 @@ bool buildMatBudLUT(int nTst, int maxLr, std::string outName, std::string outFil
7270 mbLUT .optimizePhiSlices (); // move to populateFromTGeo
7371 mbLUT .flatten (); // move to populateFromTGeo
7472
75- mbLUT .writeToFile (outFile , outName );
73+ mbLUT .writeToFile (outFile );
7674 sw .Stop ();
7775 sw .Print ();
7876 sw .Start (false);
@@ -83,13 +81,13 @@ bool buildMatBudLUT(int nTst, int maxLr, std::string outName, std::string outFil
8381}
8482
8583//_______________________________________________________________________
86- bool testMBLUT (std :: string lutName , std ::string lutFile )
84+ bool testMBLUT (const std ::string & lutFile )
8785{
8886 // test reading and creation of copies
8987
90- o2 ::base ::MatLayerCylSet * mbr = o2 ::base ::MatLayerCylSet ::loadFromFile (lutFile , lutName );
88+ o2 ::base ::MatLayerCylSet * mbr = o2 ::base ::MatLayerCylSet ::loadFromFile (lutFile );
9189 if (!mbr ) {
92- LOG (ERROR ) << "Failed to read LUT " << lutName << " from " << lutFile ;
90+ LOG (ERROR ) << "Failed to read LUT from " << lutFile ;
9391 return false;
9492 }
9593
0 commit comments