17class checkEmc : public Algorithm {
20 checkEmc(const std::string& name, ISvcLocator* pSvcLocator);
22 StatusCode initialize();
26 StatusCode finalize();
29 IDataProviderSvc* m_pCalibDataSvc;
30 ICalibTreeSvc* m_pTreeSvc;
31 // Maybe something to say which kind of data to look up?
42 : Algorithm( name, pSvcLocator ), m_pCalibDataSvc( 0 ) {
48 MsgStream log(
msgSvc(), name() );
49 log << MSG::INFO <<
"Initialize()" << endmsg;
54 log << MSG::INFO <<
"setProperties()" << endmsg;
56 sc = service(
"CalibDataSvc", m_pCalibDataSvc,
true );
58 if ( !sc.isSuccess() )
60 log << MSG::ERROR <<
"Could not get IDataProviderSvc interface of CalibXmlCnvSvc"
65 { log << MSG::DEBUG <<
"Retrieved IDataProviderSvc interface of CalibXmlCnvSvc" << endmsg; }
67 sc = service(
"CalibTreeCnvSvc", m_pTreeSvc,
true );
68 if ( !sc.isSuccess() )
70 log << MSG::ERROR <<
"Could not get ICalibTreeSvc interface of CalibTreeCnvSvc" << endmsg;
77 return StatusCode::SUCCESS;
82 MsgStream log(
msgSvc(), name() );
86 std::string fullPath =
"/Calib/EmcCal";
87 log << MSG::INFO <<
"execute() fullPath = " << fullPath << endmsg;
88 SmartDataPtr<CalibData::EmcCalibData>
test( m_pCalibDataSvc, fullPath );
89 int no1 =
test->getDigiCalibConstNo();
90 for (
int i = 0; i < no1; i++ )
92 double aa =
test->getDigiCalibConst( i );
93 std::cout <<
"getDigiCalibConst(" << i <<
")=========" << aa << endl;
95 return StatusCode::SUCCESS;
102 MsgStream log(
msgSvc(), name() );
103 log << MSG::INFO <<
" checkEmc FINALIZE!! " << endmsg;
105 return StatusCode::SUCCESS;
checkEmc(const std::string &name, ISvcLocator *pSvcLocator)
Instantiation of a static factory to create instances of this algorithm.