Skip to content
Snippets Groups Projects
Commit b4afd164 authored by Brendon Bullard's avatar Brendon Bullard Committed by Vakhtang Tsulaia
Browse files

MagneticField: Search CALIBPATH for BField map in AtlasFieldMapCondAlg.cxx

parent 01cd7237
No related merge requests found
......@@ -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
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment