36 MsgStream log(messageService(), name());
37 log << MSG::INFO <<
"@initialize()" << endreq;
39 StatusCode sc = Service::initialize();
41 if ( sc.isFailure() )
return sc;
44 sc = service(
"IncidentSvc", incsvc);
47 incsvc -> addListener(
this,
"NewRun", priority);
51 sc = serviceLocator()->service(
"DatabaseSvc",m_dbsvc,
true);
52 if (sc .isFailure() ) {
53 log << MSG::ERROR <<
"Unable to find DatabaseSvc " << endreq;
58 sc = serviceLocator()->service(
"EventDataSvc", m_eventSvc,
true);
59 if (sc .isFailure() ) {
60 log << MSG::ERROR <<
"Unable to find EventDataSvc " << endreq;