29 {
30 MsgStream log(
msgSvc(), name() );
31 log << MSG::INFO << "InjSigTimeSvc::initialize()" << endmsg;
32
33 StatusCode sc = Service::initialize();
34 if ( sc.isFailure() ) return sc;
35
36 IIncidentSvc* incsvc;
37 sc = service( "IncidentSvc", incsvc );
38 int priority = 100;
39 if ( sc.isSuccess() ) { incsvc->addListener( this, "NewRun", priority ); }
40
41 sc = service( "CalibDataSvc", m_pCalDataSvc, true );
42 if ( sc == StatusCode::SUCCESS )
43 { log << MSG::INFO << "Retrieve IDataProviderSvc" << endmsg; }
44 else { log << MSG::FATAL << "can not get IDataProviderSvc" << endmsg; }
45
46 return StatusCode::SUCCESS;
47}