From 6adb2aa201664000c9b18fa16f1090a95ee0e1f3 Mon Sep 17 00:00:00 2001
From: scott snyder <snyder@bnl.gov>
Date: Tue, 20 Jun 2017 14:12:37 +0200
Subject: [PATCH] MuonCondTest: Remove reference to deprecated Gaudi header.

Remove reference to deprecated Gaudi header PropertyMgr.h.

Also use ATH_MSG_ macros.
---
 .../MuonCondTest/src/AlignCondAthTest.cxx     | 30 +++----------------
 1 file changed, 4 insertions(+), 26 deletions(-)

diff --git a/MuonSpectrometer/MuonConditions/MuonCondGeneral/MuonCondTest/src/AlignCondAthTest.cxx b/MuonSpectrometer/MuonConditions/MuonCondGeneral/MuonCondTest/src/AlignCondAthTest.cxx
index 1e6edb9349e..531f53250a5 100755
--- a/MuonSpectrometer/MuonConditions/MuonCondGeneral/MuonCondTest/src/AlignCondAthTest.cxx
+++ b/MuonSpectrometer/MuonConditions/MuonCondGeneral/MuonCondTest/src/AlignCondAthTest.cxx
@@ -3,14 +3,6 @@
 */
 
 
-/////////////////////////////////////////////////////////
-#include "GaudiKernel/MsgStream.h"
-#include "GaudiKernel/ISvcLocator.h"
-#include "GaudiKernel/PropertyMgr.h"
- 
-#include "GaudiKernel/SmartDataPtr.h"
-#include "GaudiKernel/IDataProviderSvc.h"
- 
 /////////////////////////////////////////////////////////
 #include "MuonCondTest/AlignCondAthTest.h"
 #include "MuonCondSvc/MuonAlignmentDbSvc.h"
@@ -25,20 +17,8 @@ AlignCondAthTest::AlignCondAthTest(const std::string& name, ISvcLocator* pSvcLoc
 StatusCode AlignCondAthTest::initialize(){
 //
 
-   MsgStream log(msgSvc(), name());
-   log << MSG::INFO << "in initialize()" << endmsg;
-   StatusCode sc ;
-//
-
-   sc = service("MuonCalib::MuonAlignmentDbSvc",p_MuonAlignmentDbSvc );
-   if (!sc.isSuccess() || 0 == p_MuonAlignmentDbSvc) {
-     log << MSG::ERROR
-         << "::initialize "
-         << "Could not find MuonAlignmentDbSvc" << endmsg;
-    return( StatusCode::FAILURE );
-   }
-//
-
+  ATH_MSG_INFO( "in initialize()"  );
+  ATH_CHECK( service("MuonCalib::MuonAlignmentDbSvc",p_MuonAlignmentDbSvc ) );
   return StatusCode::SUCCESS;
 //
 }
@@ -46,8 +26,7 @@ StatusCode AlignCondAthTest::initialize(){
 StatusCode AlignCondAthTest::execute() {
 //
 
-   MsgStream log(msgSvc(), name());
-   log << MSG::INFO << " AlignCondAthTest in execute()" << endmsg;
+  ATH_MSG_INFO( " AlignCondAthTest in execute()"  );
 
   return StatusCode::SUCCESS;
 //
@@ -56,8 +35,7 @@ StatusCode AlignCondAthTest::execute() {
 StatusCode AlignCondAthTest::finalize() {
 //
 
-   MsgStream log(msgSvc(), name());
-   log << MSG::INFO << "in finalize()" << endmsg;
+  ATH_MSG_INFO( "in finalize()"  );
 //
   return StatusCode::SUCCESS;
 //
-- 
GitLab