42 {
43 MsgStream log(messageService(), name());
44 log << MSG::INFO << "InjSigIntervalSvc::initialize()" << endreq;
45
46 StatusCode sc = Service::initialize();
47 if( sc.isFailure() ) return sc;
48
49 IIncidentSvc* incsvc;
50 sc = service("IncidentSvc", incsvc);
51 int priority = 100;
52 if( sc.isSuccess() ){
53 incsvc -> addListener(this, "NewRun", priority);
54 }
55
56 sc = service("CalibDataSvc", m_pCalDataSvc, true);
57 if( sc == StatusCode::SUCCESS ){
58 log << MSG::INFO << "Retrieve IDataProviderSvc" << endreq;
59 }else{
60 log << MSG::FATAL << "can not get IDataProviderSvc" << endreq;
61 }
62
63 return StatusCode::SUCCESS;
64}