8#include "GaudiKernel/IIncidentSvc.h"
9#include "GaudiKernel/ServiceHandle.h"
30 msg(MSG::INFO) <<
"initialize()" <<
endmsg;
34 CHECK(incidentSvc.retrieve());
37 incidentSvc->addListener(
this,
"StoreCleared");
39 return StatusCode::SUCCESS;
49 if (inc.type()==
"StoreCleared") {
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
Incident sent after a store is cleared.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
ServiceHandle< StoreGateSvc > & evtStore()
virtual StatusCode initialize()
virtual void handle(const Incident &)
Implementation of IIncidentListener::handle.
JetGlobalEventSetup(const std::string &name, ISvcLocator *pSvcLocator)
static OrphanJetMomentMap instance
Incident sent after a store is cleared.
const StoreGateSvc * store() const
Return the store that was cleared.