diff --git a/MuonSpectrometer/MuonCablings/MuonMDT_Cabling/src/MdtTestCabling.cxx b/MuonSpectrometer/MuonCablings/MuonMDT_Cabling/src/MdtTestCabling.cxx index 6d032dfc921cf9e1c491a74171b7f71eba6bd730..e192962881c112958adb4883dd87a4a32db980ce 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;