54 {
55 MsgStream log(messageService(), name());
56 log << MSG::INFO << "RawDataProviderSvc::initialize()" << endreq;
57
58 StatusCode sc = Service::initialize();
59 if( sc.isFailure() ) return sc;
60
61
62 std::string incidentSvc_name("IncidentSvc");
63
64
65
66
67 IIncidentSvc* incsvc;
68 sc = service(incidentSvc_name.c_str(), incsvc);
69 int priority = 100;
70 if( sc.isSuccess() ){
71 incsvc -> addListener(this, "BeginEvent", priority);
72 }
73
75 if( sc.isFailure() ) return sc;
76
77
79 if( sc.isFailure() ) return sc;
80
81 if( m_skipLayers.size()>0 ) m_mdcProvider->
setSkipLayers( m_skipLayers );
83 if(m_adcThresholds.size()>0) m_mdcProvider->
setAdcThresholds( m_adcThresholds );
84
90 sc = m_emcProvider->
initialize(m_onlineMode,serviceLocator());
91 if( sc.isFailure() ) return sc;
92
93
94 return StatusCode::SUCCESS;
95}
void setTLowThreshold(const uint32_t low)
void setHotCrystals(const std::vector< uint32_t > &idVec)
void setELowThreshold(const uint32_t low)
virtual StatusCode initialize(bool mode=0, ISvcLocator *svcLoc=0, IMessageSvc *pMsg=0)
void setTHighThreshold(const uint32_t high)
void setAdcThresholds(const std::vector< float > &adcThresholds)
StatusCode initialize(ISvcLocator *svcLoc=0, IMessageSvc *pMsg=0)
void setSkipLayers(const std::vector< int > &skipLayers)
void setEffThreshold(float effThreshold)
static int EmcChargeChannel(double charge)
StatusCode initialize(bool mode=false, ISvcLocator *svcLoc=0, IMessageSvc *pMsg=0)