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 initialize ()
StatusCode execute ()
StatusCode finalize ()

Private Attributes

IDataProviderSvc * m_pCalibDataSvc
ICalibTreeSvcm_pTreeSvc


Detailed Description

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

Definition at line 15 of file checkMdc.h.


Constructor & Destructor Documentation

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        } 


Member Function Documentation

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 }


Member Data Documentation

IDataProviderSvc* checkMdc::m_pCalibDataSvc [private]

Definition at line 27 of file checkMdc.h.

Referenced by execute(), and initialize().

ICalibTreeSvc* checkMdc::m_pTreeSvc [private]

Definition at line 28 of file checkMdc.h.

Referenced by initialize().


Generated on Tue Nov 29 23:18:07 2016 for BOSS_7.0.2 by  doxygen 1.4.7