From 3b29be187acaed0ffcad06a445fb95d5059fc752 Mon Sep 17 00:00:00 2001 From: ckato <ckato@cern.ch> Date: Sat, 17 Nov 2018 21:42:29 +0100 Subject: [PATCH] migrated all cablingSvc to the readCdo in MdtTestCabling.cxx --- .../MuonMDT_Cabling/src/MdtTestCabling.cxx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/MuonSpectrometer/MuonCablings/MuonMDT_Cabling/src/MdtTestCabling.cxx b/MuonSpectrometer/MuonCablings/MuonMDT_Cabling/src/MdtTestCabling.cxx index 6d032dfc921..e192962881c 100644 --- a/MuonSpectrometer/MuonCablings/MuonMDT_Cabling/src/MdtTestCabling.cxx +++ b/MuonSpectrometer/MuonCablings/MuonMDT_Cabling/src/MdtTestCabling.cxx @@ -259,12 +259,24 @@ bool MdtTestCabling::testMapTiming() bool found; + SG::ReadCondHandle<MuonMDT_CablingMap> readHandle{m_readKey}; + const MuonMDT_CablingMap* readCdo{*readHandle}; + if(readCdo==0){ + ATH_MSG_ERROR("Null pointer to the read conditions object"); + return false; + } + // m_chronoSvc->chronoStart(m_chrono1); for (int i = 0 ; i<1000 ; i++) { + /* found = m_cablingSvc->getOfflineId(1,1,1,1,1, stationName,stationEta,stationPhi, multiLayer,layer,tube); + */ + found = readCdo->getOfflineId(1,1,1,1,1, + stationName,stationEta,stationPhi, + multiLayer,layer,tube); if (!found) { ATH_MSG_FATAL( " coul dnot find the test channel" ); return found; @@ -273,9 +285,14 @@ bool MdtTestCabling::testMapTiming() //found = m_cablingSvc->getOfflineId(1,1,1,1,1, // stationName,stationEta,stationPhi, // multiLayer,layer,tube); + /* found = m_cablingSvc->getOfflineId(1,1,1,1,3, stationName,stationEta,stationPhi, multiLayer,layer,tube); + */ + found = readCdo->getOfflineId(1,1,1,1,3, + stationName,stationEta,stationPhi, + multiLayer,layer,tube); if (!found) { ATH_MSG_FATAL( " coul dnot find the test channel" ); return false; -- GitLab