diff --git a/LArCalorimeter/LArGeoModel/LArGeoAlgsNV/src/LArDetectorFactory.cxx b/LArCalorimeter/LArGeoModel/LArGeoAlgsNV/src/LArDetectorFactory.cxx index 1307bc50fc8ed88c82d664fe9533cb497d5f09c2..a7084dbe85275e9b2cdffef6b0ec4d4997820bdd 100755 --- a/LArCalorimeter/LArGeoModel/LArGeoAlgsNV/src/LArDetectorFactory.cxx +++ b/LArCalorimeter/LArGeoModel/LArGeoAlgsNV/src/LArDetectorFactory.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration */ #include "LArDetectorFactory.h" @@ -22,7 +22,6 @@ #include "LArGeoCode/LArMaterialManager.h" #include "GeoModelInterfaces/StoredMaterialManager.h" #include "GeoModelUtilities/GeoDBUtils.h" -#include "StoreGate/DataHandle.h" #include "StoreGate/StoreGateSvc.h" #include "GaudiKernel/MsgStream.h" @@ -113,7 +112,7 @@ void LArGeo::LArDetectorFactory::create( GeoPhysVol* a_container ) } - DataHandle<StoredMaterialManager> materialManager; + StoredMaterialManager* materialManager = nullptr; if (StatusCode::SUCCESS != detStore->retrieve(materialManager, std::string("MATERIALS"))) { throw std::runtime_error("Error in LArDetectorFactory, cannot access Material Manager"); } diff --git a/LArCalorimeter/LArGeoModel/LArGeoAlgsNV/src/LArDetectorTool.cxx b/LArCalorimeter/LArGeoModel/LArGeoAlgsNV/src/LArDetectorTool.cxx index dfeda29711ee1f01f1be4ea625c9bbab802cd260..3649ee7794598a9d77d0ec5f1ec7eff205b4e558 100755 --- a/LArCalorimeter/LArGeoModel/LArGeoAlgsNV/src/LArDetectorTool.cxx +++ b/LArCalorimeter/LArGeoModel/LArGeoAlgsNV/src/LArDetectorTool.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration */ #include "LArReadoutGeometry/FCAL_ChannelMap.h" @@ -157,7 +157,7 @@ StatusCode LArDetectorToolNV::create() log << MSG::INFO << " Endcap = " << (m_buildEndcap ? "ON" : "OFF") << endmsg; // Locate the top level experiment node - DataHandle<GeoModelExperiment> theExpt; + GeoModelExperiment* theExpt = nullptr; if (StatusCode::SUCCESS != detStore()->retrieve( theExpt, "ATLAS" )) { log << MSG::ERROR << "Could not find GeoModelExperiment ATLAS" << endmsg;