Skip to content
Snippets Groups Projects
Commit b8f22bee authored by Mark Hodgkinson's avatar Mark Hodgkinson
Browse files

Merge branch 'uncheckedStatus.AthenaServices-20170719' into 'master'

AthenaServices: Fix unchecked status code.

See merge request !3476

Former-commit-id: 946b5e4d
parents 0e5c9e0b 4bb1ba62
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@
#include "GaudiKernel/Incident.h"
#include "EventInfo/EventInfo.h"
#include "EventInfo/EventIncident.h"
#include "AthenaKernel/errorcheck.h"
AthIncFirerAlg::AthIncFirerAlg( const std::string& name, ISvcLocator* pSvcLocator ):AthAlgorithm(name,pSvcLocator),m_Serial(false){
declareProperty("Incidents",m_incLists,"Incidents to fire");
......@@ -26,7 +27,7 @@ StatusCode AthIncFirerAlg::execute() {
ATH_MSG_VERBOSE("Firing incident "<<i);
if((i=="BeginEvent")||(i=="EndEvent")){
const EventInfo* event(0);
evtStore()->retrieve(event);
CHECK( evtStore()->retrieve(event) );
m_incSvc->fireIncident(std::make_unique<EventIncident>(*event, name(),i));
if(m_Serial.value())m_incSvc->fireIncident(EventIncident(*event, name(),i));
}else{
......
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