#include <checkEmc.h>
Public Member Functions | |
checkEmc (const std::string &name, ISvcLocator *pSvcLocator) | |
Instantiation of a static factory to create instances of this algorithm. | |
StatusCode | initialize () |
StatusCode | execute () |
StatusCode | finalize () |
Private Attributes | |
IDataProviderSvc * | m_pCalibDataSvc |
ICalibTreeSvc * | m_pTreeSvc |
Definition at line 16 of file checkEmc.h.
checkEmc::checkEmc | ( | const std::string & | name, | |
ISvcLocator * | pSvcLocator | |||
) |
Instantiation of a static factory to create instances of this algorithm.
Definition at line 40 of file checkEmc.cxx.
00042 : Algorithm ( name, pSvcLocator ), m_pCalibDataSvc(0) 00043 { 00044 // Declare properties here. 00045 00046 }
StatusCode checkEmc::execute | ( | ) |
Definition at line 88 of file checkEmc.cxx.
References genRecEmupikp::i, Bes_Common::INFO, m_pCalibDataSvc, msgSvc(), deljobs::string, and test.
00088 { 00089 00090 MsgStream log(msgSvc(), name()); 00091 00092 // Cheat for now since Windows is having trouble finding definition 00093 // of Calibdata::Test_t 00094 std::string fullPath = "/Calib/EmcCal"; 00095 log << MSG::INFO<<"execute() fullPath = "<<fullPath<< endreq; 00096 SmartDataPtr<CalibData::EmcCalibData> test(m_pCalibDataSvc, fullPath); 00097 int no1 = test->getDigiCalibConstNo(); 00098 for(int i=0;i<no1;i++){ 00099 double aa = test->getDigiCalibConst(i); 00100 std::cout<<"getDigiCalibConst("<<i<<")========="<<aa<<endl; 00101 } 00102 return StatusCode::SUCCESS; 00103 }
StatusCode checkEmc::finalize | ( | ) |
Definition at line 107 of file checkEmc.cxx.
References Bes_Common::INFO, and msgSvc().
00107 { 00108 00109 MsgStream log(msgSvc(), name()); 00110 log << MSG::INFO 00111 << " checkEmc FINALIZE!! " 00112 << endreq; 00113 00114 return StatusCode::SUCCESS; 00115 }
StatusCode checkEmc::initialize | ( | ) |
Definition at line 49 of file checkEmc.cxx.
References Bes_Common::DEBUG, calibUtil::ERROR, Bes_Common::INFO, m_pCalibDataSvc, m_pTreeSvc, and msgSvc().
00049 { 00050 StatusCode sc; 00051 MsgStream log(msgSvc(), name()); 00052 log << MSG::INFO << "Initialize()" << endreq; 00053 00054 // So far don't have any properties, but in case we do some day.. 00055 // setProperties(); 00056 00057 log<<MSG::INFO << "setProperties()" << endreq; 00058 00059 sc = service("CalibDataSvc", m_pCalibDataSvc, true); 00060 00061 if ( !sc.isSuccess() ) { 00062 log << MSG::ERROR 00063 << "Could not get IDataProviderSvc interface of CalibXmlCnvSvc" 00064 << endreq; 00065 return sc; 00066 } else { 00067 log << MSG::DEBUG 00068 << "Retrieved IDataProviderSvc interface of CalibXmlCnvSvc" 00069 << endreq; 00070 } 00071 00072 sc = service("CalibTreeCnvSvc", m_pTreeSvc, true); 00073 if ( !sc.isSuccess() ) { 00074 log << MSG::ERROR 00075 << "Could not get ICalibTreeSvc interface of CalibTreeCnvSvc" 00076 << endreq; 00077 return sc; 00078 } 00079 // Get properties from the JobOptionsSvc 00080 00081 sc = setProperties(); 00082 00083 return StatusCode::SUCCESS; 00084 00085 }
IDataProviderSvc* checkEmc::m_pCalibDataSvc [private] |
ICalibTreeSvc* checkEmc::m_pTreeSvc [private] |