Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

UseMdcCalibData Class Reference

Simple algorithm to test functioning of "the other" TDS. More...

#include <UseMdcCalibData.h>

List of all members.

Public Member Functions

StatusCode execute ()
StatusCode finalize ()
StatusCode initialize ()
 UseMdcCalibData (const std::string &name, ISvcLocator *pSvcLocator)

Private Attributes

IDataProviderSvc * m_pCalibDataSvc
ICalibRootSvcm_pRootSvc


Detailed Description

Simple algorithm to test functioning of "the other" TDS.


Constructor & Destructor Documentation

UseMdcCalibData::UseMdcCalibData const std::string &  name,
ISvcLocator *  pSvcLocator
 

00041   : Algorithm     ( name, pSvcLocator ), m_pCalibDataSvc(0)
00042 {
00043   // Declare properties here.
00044 
00045 }


Member Function Documentation

StatusCode UseMdcCalibData::execute  ) 
 

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 }

StatusCode UseMdcCalibData::finalize  ) 
 

00111                                       {
00112 
00113   MsgStream log(msgSvc(), name());
00114   log << MSG::INFO 
00115       << "        UseMdcCalibData1 FINALIZE!! "
00116       << endreq;
00117   
00118   return StatusCode::SUCCESS;
00119 }

StatusCode UseMdcCalibData::initialize  ) 
 

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 }


Member Data Documentation

IDataProviderSvc* UseMdcCalibData::m_pCalibDataSvc [private]
 

ICalibRootSvc* UseMdcCalibData::m_pRootSvc [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 19:12:41 2011 for BOSS6.5.5 by  doxygen 1.3.9.1