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

checkMdc Class Reference

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

#include <checkMdc.h>

List of all members.

Public Member Functions

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

Private Attributes

IDataProviderSvc * m_pCalibDataSvc
ICalibTreeSvcm_pTreeSvc


Detailed Description

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


Constructor & Destructor Documentation

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

00049   : Algorithm     ( name, pSvcLocator ), m_pCalibDataSvc(0)
00050 {
00051     // Declare properties here.
00052     //   
00053        } 


Member Function Documentation

StatusCode checkMdc::execute  ) 
 

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  ) 
 

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  ) 
 

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 }


Member Data Documentation

IDataProviderSvc* checkMdc::m_pCalibDataSvc [private]
 

ICalibTreeSvc* checkMdc::m_pTreeSvc [private]
 


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