16class checkEmc : public Algorithm {
19 checkEmc(const std::string& name, ISvcLocator* pSvcLocator);
21 StatusCode initialize();
25 StatusCode finalize();
28 IDataProviderSvc* m_pCalibDataSvc;
29 ICalibTreeSvc* m_pTreeSvc;
30 // Maybe something to say which kind of data to look up?
41 ISvcLocator* pSvcLocator )
42 : Algorithm ( name, pSvcLocator ), m_pCalibDataSvc(0)
51 MsgStream log(
msgSvc(), name());
52 log << MSG::INFO <<
"Initialize()" << endreq;
57 log<<MSG::INFO <<
"setProperties()" << endreq;
59 sc = service(
"CalibDataSvc", m_pCalibDataSvc,
true);
61 if ( !sc.isSuccess() ) {
63 <<
"Could not get IDataProviderSvc interface of CalibXmlCnvSvc"
68 <<
"Retrieved IDataProviderSvc interface of CalibXmlCnvSvc"
72 sc = service(
"CalibTreeCnvSvc", m_pTreeSvc,
true);
73 if ( !sc.isSuccess() ) {
75 <<
"Could not get ICalibTreeSvc interface of CalibTreeCnvSvc"
83 return StatusCode::SUCCESS;
90 MsgStream log(
msgSvc(), name());
94 std::string fullPath =
"/Calib/EmcCal";
95 log << MSG::INFO<<
"execute() fullPath = "<<fullPath<< endreq;
96 SmartDataPtr<CalibData::EmcCalibData>
test(m_pCalibDataSvc, fullPath);
97 int no1 =
test->getDigiCalibConstNo();
98 for(
int i=0;i<no1;i++){
99 double aa =
test->getDigiCalibConst(i);
100 std::cout<<
"getDigiCalibConst("<<i<<
")========="<<aa<<endl;
102 return StatusCode::SUCCESS;
109 MsgStream log(
msgSvc(), name());
111 <<
" checkEmc FINALIZE!! "
114 return StatusCode::SUCCESS;
checkEmc(const std::string &name, ISvcLocator *pSvcLocator)
Instantiation of a static factory to create instances of this algorithm.