55 MsgStream log(messageService(), name());
56 log << MSG::INFO <<
"RawDataProviderSvc::initialize()" << endreq;
58 StatusCode sc = Service::initialize();
59 if( sc.isFailure() )
return sc;
62 std::string incidentSvc_name(
"IncidentSvc");
68 sc = service(incidentSvc_name.c_str(), incsvc);
71 incsvc -> addListener(
this,
"BeginEvent", priority);
74 sc = m_mdcProvider->initialize();
75 if( sc.isFailure() )
return sc;
78 sc = m_tofProvider->initialize(m_onlineMode);
79 if( sc.isFailure() )
return sc;
81 if( m_skipLayers.size()>0 ) m_mdcProvider->setSkipLayers( m_skipLayers );
82 m_mdcProvider->setEffThreshold( m_effThreshold );
83 if(m_adcThresholds.size()>0) m_mdcProvider->setAdcThresholds( m_adcThresholds );
86 if(m_tlow>0) m_emcProvider->setTLowThreshold(m_tlow);
87 if(m_thigh>0&&m_thigh<60) m_emcProvider->setTHighThreshold(m_thigh);
88 if(m_hotVec.size()>0) m_emcProvider->setHotCrystals(m_hotVec);
89 if(m_deadVec.size()>0) m_emcProvider->setHotCrystals(m_deadVec);
90 sc = m_emcProvider->initialize(m_onlineMode,serviceLocator());
91 if( sc.isFailure() )
return sc;
94 return StatusCode::SUCCESS;