50 {
51 MsgStream log(
msgSvc(), name() );
52 log << MSG::INFO << "RawDataProviderSvc::initialize()" << endmsg;
53
54 StatusCode sc = Service::initialize();
55 if ( sc.isFailure() ) return sc;
56
57
58 std::string incidentSvc_name( "IncidentSvc" );
59
60
61
62
63 IIncidentSvc* incsvc;
64 sc = service( incidentSvc_name.c_str(), incsvc );
65 int priority = 100;
66 if ( sc.isSuccess() ) { incsvc->addListener( this, "BeginEvent", priority ); }
67
68 sc = m_mdcProvider->initialize();
69 if ( sc.isFailure() ) return sc;
70
71 sc = m_tofProvider->initialize( m_onlineMode );
72 if ( sc.isFailure() ) return sc;
73
74 if ( m_skipLayers.size() > 0 ) m_mdcProvider->setSkipLayers( m_skipLayers );
75 m_mdcProvider->setEffThreshold( m_effThreshold );
76 if ( m_adcThresholds.size() > 0 ) m_mdcProvider->setAdcThresholds( m_adcThresholds );
77
79 if ( m_tlow > 0 ) m_emcProvider->setTLowThreshold( m_tlow );
80 if ( m_thigh > 0 && m_thigh < 60 ) m_emcProvider->setTHighThreshold( m_thigh );
81 if ( m_hotVec.size() > 0 ) m_emcProvider->setHotCrystals( m_hotVec );
82 if ( m_deadVec.size() > 0 ) m_emcProvider->setHotCrystals( m_deadVec );
83 sc = m_emcProvider->initialize( m_onlineMode, serviceLocator() );
84 if ( sc.isFailure() ) return sc;
85
86
87 return StatusCode::SUCCESS;
88}
static int EmcChargeChannel(double charge)