From aba29156517c73d49212cd6e1e7ec28f2d6e2022 Mon Sep 17 00:00:00 2001 From: Margherita Spalla <margherita.spalla@cern.ch> Date: Wed, 23 May 2018 10:57:55 +0200 Subject: [PATCH] additional ATH_CHECK added Former-commit-id: 929be279c17e16b22e5cd591edeada7c11792c2c --- .../LArMonTools/src/LArNoiseCorrelationMon.cxx | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/LArCalorimeter/LArMonTools/src/LArNoiseCorrelationMon.cxx b/LArCalorimeter/LArMonTools/src/LArNoiseCorrelationMon.cxx index 69172327e47..da639e8c1f7 100755 --- a/LArCalorimeter/LArMonTools/src/LArNoiseCorrelationMon.cxx +++ b/LArCalorimeter/LArMonTools/src/LArNoiseCorrelationMon.cxx @@ -141,12 +141,8 @@ LArNoiseCorrelationMon::initialize() /** Get bad-channel mask (only if jO IgnoreBadChannels is true)*/ - if (m_ignoreKnownBadChannels) { - sc=m_badChannelMask.retrieve(); - if (sc.isFailure()) { - ATH_MSG_ERROR( "Could not retrieve BadChannelMask" << m_badChannelMask); - return StatusCode::FAILURE; - } + if (m_ignoreKnownBadChannels) { + ATH_CHECK(m_badChannelMask.retrieve()); } /** Retrieve pedestals container*/ @@ -227,10 +223,7 @@ LArNoiseCorrelationMon::fillHistograms() /**EventID is a part of EventInfo, search event informations:*/ const xAOD::EventInfo* thisEvent; - if (evtStore()->retrieve(thisEvent).isFailure()) { - ATH_MSG_ERROR( "Failed to retrieve EventInfo object" ); - return StatusCode::FAILURE; - } + ATH_CHECK(evtStore()->retrieve(thisEvent)); m_evtId = thisEvent->eventNumber(); ATH_MSG_DEBUG("Event nb " << m_evtId ); -- GitLab