#include <checkMdc.h>
Public Member Functions | |
checkMdc (const std::string &name, ISvcLocator *pSvcLocator) | |
StatusCode | initialize () |
StatusCode | execute () |
StatusCode | finalize () |
Private Attributes | |
IDataProviderSvc * | m_pCalibDataSvc |
ICalibTreeSvc * | m_pTreeSvc |
Definition at line 15 of file checkMdc.h.
checkMdc::checkMdc | ( | const std::string & | name, | |
ISvcLocator * | pSvcLocator | |||
) |
Definition at line 47 of file checkMdc.cxx.
00049 : Algorithm ( name, pSvcLocator ), m_pCalibDataSvc(0) 00050 { 00051 // Declare properties here. 00052 // 00053 }
StatusCode checkMdc::execute | ( | ) |
Definition at line 94 of file checkMdc.cxx.
References Bes_Common::INFO, m_pCalibDataSvc, msgSvc(), deljobs::string, and test.
00094 { 00095 00096 MsgStream log(msgSvc(), name()); 00097 00098 // Cheat for now since Windows is having trouble finding definition 00099 // of Calibdata::Test_t 00100 std::string fullPath = "/Calib/MdcCal"; 00101 log << MSG::INFO<<"execute() fullPath = "<<fullPath<< endreq; 00102 00103 SmartDataPtr<CalibData::MdcCalibData> test(m_pCalibDataSvc, fullPath); 00104 // if(!btof) ; 00105 int qtparno = test->getqtparNo(); 00106 int xtno = test->getxtNo(); 00107 int t0no = test->gett0No(); 00108 std::cout<<"qtparno="<<qtparno<<"xtno="<<xtno<<"t0no="<<t0no<<std::endl; 00109 00110 00111 00112 00113 return StatusCode::SUCCESS; 00114 }
StatusCode checkMdc::finalize | ( | ) |
Definition at line 118 of file checkMdc.cxx.
References Bes_Common::INFO, and msgSvc().
00118 { 00119 00120 MsgStream log(msgSvc(), name()); 00121 log << MSG::INFO 00122 << " checkMdc FINALIZE!! " 00123 << endreq; 00124 00125 return StatusCode::SUCCESS; 00126 }
StatusCode checkMdc::initialize | ( | ) |
Definition at line 55 of file checkMdc.cxx.
References Bes_Common::DEBUG, calibUtil::ERROR, Bes_Common::INFO, m_pCalibDataSvc, m_pTreeSvc, and msgSvc().
00055 { 00056 StatusCode sc; 00057 MsgStream log(msgSvc(), name()); 00058 log << MSG::INFO << "Initialize()" << endreq; 00059 00060 // So far don't have any properties, but in case we do some day.. 00061 // setProperties(); 00062 00063 log<<MSG::INFO << "setProperties()" << endreq; 00064 00065 sc = service("CalibDataSvc", m_pCalibDataSvc, true); 00066 00067 if ( !sc.isSuccess() ) { 00068 log << MSG::ERROR 00069 << "Could not get IDataProviderSvc interface of CalibXmlCnvSvc" 00070 << endreq; 00071 return sc; 00072 } else { 00073 log << MSG::DEBUG 00074 << "Retrieved IDataProviderSvc interface of CalibXmlCnvSvc" 00075 << endreq; 00076 } 00077 00078 sc = service("CalibTreeCnvSvc", m_pTreeSvc, true); 00079 if ( !sc.isSuccess() ) { 00080 log << MSG::ERROR 00081 << "Could not get ICalibTreeSvc interface of CalibTreeCnvSvc" 00082 << endreq; 00083 return sc; 00084 } 00085 // Get properties from the JobOptionsSvc 00086 00087 sc = setProperties(); 00088 00089 return StatusCode::SUCCESS; 00090 00091 }
IDataProviderSvc* checkMdc::m_pCalibDataSvc [private] |
ICalibTreeSvc* checkMdc::m_pTreeSvc [private] |