Skip to content

Commit

Permalink
Check the services interfaces in IOSvc.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Apr 2, 2024
1 parent e8e0ee4 commit 3a6a0f7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions k4FWCore/components/IOSvc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,17 @@ StatusCode IOSvc::initialize() {
m_switch = KeepDropSwitch(m_outputCommands);

m_incidentSvc = service("IncidentSvc");
if (!m_incidentSvc) {
error() << "Unable to locate IIncidentSvc interface" << endmsg;
return StatusCode::FAILURE;
}
m_incidentSvc->addListener(this, IncidentType::EndEvent);

m_dataSvc = service("EventDataSvc");
if (!m_dataSvc) {
error() << "Unable to locate IDataSvc interface" << endmsg;
return StatusCode::FAILURE;
}

m_hiveWhiteBoard = service("EventDataSvc");

Expand Down

0 comments on commit 3a6a0f7

Please sign in to comment.