diff --git a/MagneticField/MagFieldServices/src/AtlasFieldMapCondAlg.cxx b/MagneticField/MagFieldServices/src/AtlasFieldMapCondAlg.cxx index c60f448f33e893166a442b9318cd1a56eecdd6e9..4726d17f0d73826ef760503f13d3a0c3edb2e610 100644 --- a/MagneticField/MagFieldServices/src/AtlasFieldMapCondAlg.cxx +++ b/MagneticField/MagFieldServices/src/AtlasFieldMapCondAlg.cxx @@ -340,9 +340,9 @@ MagField::AtlasFieldMapCondAlg::updateFieldMap(const EventContext& ctx, Cache& c // find the path to the map file - std::string resolvedMapFile = PathResolver::find_file( mapFile.c_str(), "DATAPATH" ); + std::string resolvedMapFile = PathResolver::find_file( mapFile.c_str(), "CALIBPATH" ); if ( resolvedMapFile.empty() ) { - ATH_MSG_ERROR( "updateFieldMap: Field map file " << mapFile << " not found" ); + ATH_MSG_ERROR( "Field map file " << mapFile << " not found" ); return StatusCode::FAILURE; } // Do checks and extract root file to initialize the map diff --git a/MagneticField/MagFieldServices/src/AtlasFieldSvc.cxx b/MagneticField/MagFieldServices/src/AtlasFieldSvc.cxx index 9bb04bfd1092cd6a71a3129b8aaf49f4442808b5..883c5901c234cc5e485e8e6521ac84b038e2bced 100644 --- a/MagneticField/MagFieldServices/src/AtlasFieldSvc.cxx +++ b/MagneticField/MagFieldServices/src/AtlasFieldSvc.cxx @@ -391,7 +391,7 @@ StatusCode MagField::AtlasFieldSvc::initializeMap(AtlasFieldSvcTLS &tls) return StatusCode::SUCCESS; } // find the path to the map file - std::string resolvedMapFile = PathResolver::find_file( mapFile.c_str(), "DATAPATH" ); + std::string resolvedMapFile = PathResolver::find_file( mapFile.c_str(), "CALIBPATH" ); if ( resolvedMapFile.empty() ) { ATH_MSG_ERROR( "Field map file " << mapFile << " not found" ); return StatusCode::FAILURE;