#include <UseMdcCalibData.h>
Public Member Functions | |
StatusCode | execute () |
StatusCode | finalize () |
StatusCode | initialize () |
UseMdcCalibData (const std::string &name, ISvcLocator *pSvcLocator) | |
Private Attributes | |
IDataProviderSvc * | m_pCalibDataSvc |
ICalibRootSvc * | m_pRootSvc |
|
00041 : Algorithm ( name, pSvcLocator ), m_pCalibDataSvc(0) 00042 { 00043 // Declare properties here. 00044 00045 }
|
|
00086 { 00087 00088 MsgStream log(msgSvc(), name()); 00089 00090 // Cheat for now since Windows is having trouble finding definition 00091 00092 std::string fullPath = "/Calib/MdcCal"; 00093 std::string file =m_pRootSvc->getrootfile(); 00094 std::cout<<"file="<<file<<"\n"; 00095 // return StatusCode::SUCCESS; 00096 log << MSG::INFO<<"execute() fullPath = "<<fullPath<< endreq; 00097 00098 SmartDataPtr<CalibData::MdcCalibData> test1Copy(m_pCalibDataSvc, fullPath); 00099 if(!test1Copy); 00100 // CalibData::MdcCalibData test; 00101 00102 // m_pCalibDataSvc->registerObject(FullPath,test); 00103 m_pRootSvc->writeToRoot("Mdc_test.root", fullPath); 00104 // SmartDataPtr<CalibData::MdcCalibData> test1Copy(m_pCalibDataSvc, fullPath); 00105 // if(!test1Copy); 00106 return StatusCode::SUCCESS; 00107 }
|
|
00111 { 00112 00113 MsgStream log(msgSvc(), name()); 00114 log << MSG::INFO 00115 << " UseMdcCalibData1 FINALIZE!! " 00116 << endreq; 00117 00118 return StatusCode::SUCCESS; 00119 }
|
|
00048 { 00049 StatusCode sc; 00050 MsgStream log(msgSvc(), name()); 00051 log << MSG::INFO << "Initialize()" << endreq; 00052 00053 // So far don't have any properties, but in case we do some day.. 00054 // setProperties(); 00055 00056 log<<MSG::INFO << "setProperties()" << endreq; 00057 00058 sc = service("CalibDataSvc", m_pCalibDataSvc, true); 00059 00060 if ( !sc.isSuccess() ) { 00061 log << MSG::ERROR 00062 << "Could not get IDataProviderSvc interface of CalibXmlCnvSvc" 00063 << endreq; 00064 return sc; 00065 } else { 00066 log << MSG::DEBUG 00067 << "Retrieved IDataProviderSvc interface of CalibXmlCnvSvc" 00068 << endreq; 00069 } 00070 00071 sc = service("CalibRootCnvSvc", m_pRootSvc, true); 00072 if ( !sc.isSuccess() ) { 00073 log << MSG::ERROR 00074 << "Could not get ICalibRootSvc interface of CalibRootCnvSvc" 00075 << endreq; 00076 return sc; 00077 } 00078 // Get properties from the JobOptionsSvc 00079 00080 sc = setProperties(); 00081 return StatusCode::SUCCESS; 00082 00083 }
|
|
|
|
|