@@ -36,18 +36,18 @@ struct GeometryEntry {
3636 // Default constructor
3737 GeometryEntry () = default ;
3838 explicit GeometryEntry (const std::string& filename, o2::ccdb::BasicCCDBManager* ccdb = nullptr )
39+ : mFileName(ConfigurationParser::accessFile(filename, " ./.ALICE3/Configuration/" , ccdb))
3940 {
40- mFileName = ConfigurationParser::accessFile (filename, " ./.ALICE3/Configuration/" , ccdb);
4141 mConfigurations = ConfigurationParser::parseTEnvConfiguration (mFileName , mLayerNames );
4242 LOG (info) << " Loaded geometry configuration from file: " << mFileName << " with " << mLayerNames .size () << " layers." ;
4343 if (mLayerNames .empty ()) {
4444 LOG (warning) << " No layers found in geometry configuration file: " << filename;
4545 }
4646 }
4747
48- std::map<std::string, std::map<std::string, std::string>> getConfigurations () const { return mConfigurations ; }
48+ const std::map<std::string, std::map<std::string, std::string>>& getConfigurations () const { return mConfigurations ; }
4949 std::map<std::string, std::string> getConfiguration (const std::string& layerName) const ;
50- std::vector<std::string> getLayerNames () const { return mLayerNames ; }
50+ const std::vector<std::string>& getLayerNames () const { return mLayerNames ; }
5151 bool hasValue (const std::string& layerName, const std::string& key) const ;
5252 std::string getValue (const std::string& layerName, const std::string& key, bool require = true ) const ;
5353 void setValue (const std::string& layerName, const std::string& key, const std::string& value) { mConfigurations [layerName][key] = value; }
0 commit comments