72 {
73 MsgStream log(messageService(), name());
74 log << MSG::INFO << "VertexDbSvc::initialize()" << endreq;
75
76 StatusCode sc = Service::initialize();
77 if( sc.isFailure() ) return sc;
78
79
80 IIncidentSvc* incsvc;
81 sc = service("IncidentSvc", incsvc);
82 int priority = 100;
83 if( sc.isSuccess() ){
84 incsvc -> addListener(this, "NewRun", priority);
85 }
86
87 sc = serviceLocator()->service("DatabaseSvc",m_dbsvc,true);
88 if (sc .isFailure() ) {
89 log << MSG::ERROR << "Unable to find DatabaseSvc " << endreq;
90 return sc;
91 }
92
93 sc = serviceLocator()->service("EventDataSvc", m_eventSvc, true);
94 if (sc .isFailure() ) {
95 log << MSG::ERROR << "Unable to find EventDataSvc " << endreq;
96 return sc;
97 }
98 return StatusCode::SUCCESS;
99}