@@ -46,7 +46,7 @@ class FastTracker
4646 virtual ~FastTracker () {}
4747
4848 // Layer and layer configuration
49- DetLayer* 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 );
49+ DetLayer* AddLayer (const 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 );
5050
5151 // / Add a dead region in phi for a specific layer
5252 // / \param layerName Name of the layer to modify
@@ -59,11 +59,11 @@ class FastTracker
5959 size_t GetNLayers () const { return layers.size (); }
6060 bool IsLayerInert (const int layer) const { return layers[layer].isInert (); }
6161 void ClearLayers () { layers.clear (); }
62- void SetRadiationLength (const std::string layerName, float x0) { layers[GetLayerIndex (layerName)].setRadiationLength (x0); }
63- void SetRadius (const std::string layerName, float r) { layers[GetLayerIndex (layerName)].setRadius (r); }
64- void SetResolutionRPhi (const std::string layerName, float resRPhi) { layers[GetLayerIndex (layerName)].setResolutionRPhi (resRPhi); }
65- void SetResolutionZ (const std::string layerName, float resZ) { layers[GetLayerIndex (layerName)].setResolutionZ (resZ); }
66- void SetResolution (const std::string layerName, float resRPhi, float resZ)
62+ void SetRadiationLength (const std::string& layerName, float x0) { layers[GetLayerIndex (layerName)].setRadiationLength (x0); }
63+ void SetRadius (const std::string& layerName, float r) { layers[GetLayerIndex (layerName)].setRadius (r); }
64+ void SetResolutionRPhi (const std::string& layerName, float resRPhi) { layers[GetLayerIndex (layerName)].setResolutionRPhi (resRPhi); }
65+ void SetResolutionZ (const std::string& layerName, float resZ) { layers[GetLayerIndex (layerName)].setResolutionZ (resZ); }
66+ void SetResolution (const std::string& layerName, float resRPhi, float resZ)
6767 {
6868 SetResolutionRPhi (layerName, resRPhi);
6969 SetResolutionZ (layerName, resZ);
@@ -80,7 +80,7 @@ class FastTracker
8080 *
8181 * @param configMap Configuration map describing the detector.
8282 */
83- void AddGenericDetector (o2::fastsim::GeometryEntry configMap, o2::ccdb::BasicCCDBManager* ccdbManager = nullptr );
83+ void AddGenericDetector (const o2::fastsim::GeometryEntry& configMap, o2::ccdb::BasicCCDBManager* ccdbManager = nullptr );
8484
8585 void Print ();
8686
0 commit comments