Skip to content
Snippets Groups Projects
Commit aba29156 authored by Margherita Spalla's avatar Margherita Spalla
Browse files

additional ATH_CHECK added

Former-commit-id: 929be279c17e16b22e5cd591edeada7c11792c2c
parent 32c60e68
No related branches found
No related tags found
No related merge requests found
...@@ -141,12 +141,8 @@ LArNoiseCorrelationMon::initialize() ...@@ -141,12 +141,8 @@ LArNoiseCorrelationMon::initialize()
/** Get bad-channel mask (only if jO IgnoreBadChannels is true)*/ /** Get bad-channel mask (only if jO IgnoreBadChannels is true)*/
if (m_ignoreKnownBadChannels) { if (m_ignoreKnownBadChannels) {
sc=m_badChannelMask.retrieve(); ATH_CHECK(m_badChannelMask.retrieve());
if (sc.isFailure()) {
ATH_MSG_ERROR( "Could not retrieve BadChannelMask" << m_badChannelMask);
return StatusCode::FAILURE;
}
} }
/** Retrieve pedestals container*/ /** Retrieve pedestals container*/
...@@ -227,10 +223,7 @@ LArNoiseCorrelationMon::fillHistograms() ...@@ -227,10 +223,7 @@ LArNoiseCorrelationMon::fillHistograms()
/**EventID is a part of EventInfo, search event informations:*/ /**EventID is a part of EventInfo, search event informations:*/
const xAOD::EventInfo* thisEvent; const xAOD::EventInfo* thisEvent;
if (evtStore()->retrieve(thisEvent).isFailure()) { ATH_CHECK(evtStore()->retrieve(thisEvent));
ATH_MSG_ERROR( "Failed to retrieve EventInfo object" );
return StatusCode::FAILURE;
}
m_evtId = thisEvent->eventNumber(); m_evtId = thisEvent->eventNumber();
ATH_MSG_DEBUG("Event nb " << m_evtId ); ATH_MSG_DEBUG("Event nb " << m_evtId );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment