checkDedx Class Reference

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

#include <checkDedx.h>

List of all members.

Public Member Functions

 checkDedx (const std::string &name, ISvcLocator *pSvcLocator)
 Instantiation of a static factory to create instances of this algorithm.
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 16 of file checkDedx.h.


Constructor & Destructor Documentation

checkDedx::checkDedx ( const std::string name,
ISvcLocator *  pSvcLocator 
)

Instantiation of a static factory to create instances of this algorithm.

Definition at line 49 of file checkDedx.cxx.

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


Member Function Documentation

StatusCode checkDedx::execute (  ) 

Definition at line 97 of file checkDedx.cxx.

References Bes_Common::INFO, m_pCalibDataSvc, msgSvc(), deljobs::string, and test.

00097                                {
00098    
00099   MsgStream log(msgSvc(), name());
00100 
00101   // Cheat for now since Windows is having trouble finding definition
00102   // of Calibdata::Test_t
00103  // std::string fullPath = "/Calib/MdcCal";
00104 //   std::string fullPath = "/Calib/DedxCal";
00105 //  std::string fullPath = "/Calib/DedxSim";
00106 //   std::string fullPath = "/Calib/EmcCal";
00107     std::string fullPath = "/Calib/EsTimeCal";
00108  //  std::string fullPath = "/Calib/EstTofCal";
00109  //  std::string fullPath = "/Calib/MucCal";
00110   //   std::string fullPath = "/Calib/TofCal";
00111  //  std::string fullPath = "/Calib/TofQElec";
00112 //    std::string fullPath = "/Calib/TofSim";
00113 //   std::string fullPath = "/Calib/MdcAlign";
00114    log << MSG::INFO<<"execute() fullPath = "<<fullPath<< endreq;
00115 
00116  //   SmartDataPtr<CalibData::MdcCalibData> test(m_pCalibDataSvc, fullPath);
00117 //   if(!btof) ;
00118 /*  for(int i=0;i<16;i++){
00119      std::cout<<"test->getdxEP(i)"<<test->getdxEP(i)<<std::endl;
00120   }
00121   for(int i=0;i<6796;i++){
00122   std::cout<<"test->gettension"<<test->gettension(i)<<std::endl;
00123   }*/
00124 //  if(!test) ;
00125 // SmartDataPtr<CalibData::DedxCalibData> test(m_pCalibDataSvc, fullPath);
00126 //   SmartDataPtr<CalibData::DedxSimData> test(m_pCalibDataSvc, fullPath);
00127  //     SmartDataPtr<CalibData::EmcCalibData> test(m_pCalibDataSvc, fullPath);
00128  //   SmartDataPtr<CalibData::TofElecData> test(m_pCalibDataSvc, fullPath);
00129  //  SmartDataPtr<CalibData::TofSimData> test(m_pCalibDataSvc, fullPath);
00130 //   SmartDataPtr<CalibData::MdcAlignData> test(m_pCalibDataSvc, fullPath);
00131 SmartDataPtr<CalibData::EsTimeCalibData> test(m_pCalibDataSvc, fullPath);
00132 
00133    if(!test) ;
00134 //  test->getBTof(0);
00135 //    int qtparno = test->getgain();
00136 //    int xtno = test->getxtNo();
00137  //   int t0no = test->gett0No();
00138  //   int qtparno =test->gethistNo();
00139 //     int qtparno =test->getDigiCalibConstNo();
00140 //    int qtparno =test->getToffsete();
00141 //   int qtparno =test->getRunBegin();
00142  //  int qtparno =test->getUniformEff();
00143  //    int qtparno =test->getdyWireEast(0);
00144  //  std::cout<<"qtparno="<<qtparno<<std::endl;
00145 //"xtno="<<xtno<<"t0no="<<t0no<<std::endl;
00146 //  std::cout<<"xtno="<<xtno<<std::endl;
00147 
00148    return StatusCode::SUCCESS;
00149 }

StatusCode checkDedx::finalize (  ) 

Definition at line 153 of file checkDedx.cxx.

References Bes_Common::INFO, and msgSvc().

00153                                 {
00154 
00155   MsgStream log(msgSvc(), name());
00156   log << MSG::INFO 
00157       << "        checkDedx FINALIZE!! "
00158       << endreq;
00159   
00160   return StatusCode::SUCCESS;
00161 }

StatusCode checkDedx::initialize (  ) 

Definition at line 58 of file checkDedx.cxx.

References Bes_Common::DEBUG, calibUtil::ERROR, Bes_Common::INFO, m_pCalibDataSvc, m_pTreeSvc, and msgSvc().

00058                                  {
00059   StatusCode sc;
00060   MsgStream log(msgSvc(), name());
00061   log << MSG::INFO << "Initialize()" << endreq;
00062 
00063   // So far don't have any properties, but in case we do some day..
00064 //  setProperties();
00065 
00066    log<<MSG::INFO << "setProperties()" << endreq;
00067   
00068    sc = service("CalibDataSvc", m_pCalibDataSvc, true);
00069 
00070   if ( !sc.isSuccess() ) {
00071     log << MSG::ERROR 
00072         << "Could not get IDataProviderSvc interface of CalibXmlCnvSvc" 
00073         << endreq;
00074     return sc;
00075   } else {
00076     log << MSG::DEBUG 
00077         << "Retrieved IDataProviderSvc interface of CalibXmlCnvSvc" 
00078         << endreq;
00079   }
00080   
00081   sc = service("CalibTreeCnvSvc", m_pTreeSvc, true);
00082   if ( !sc.isSuccess() ) {
00083     log << MSG::ERROR 
00084         << "Could not get ICalibTreeSvc interface of CalibTreeCnvSvc" 
00085         << endreq;
00086     return sc;
00087   }
00088   // Get properties from the JobOptionsSvc
00089   
00090  sc = setProperties();
00091 
00092  return StatusCode::SUCCESS;
00093 
00094 }


Member Data Documentation

IDataProviderSvc* checkDedx::m_pCalibDataSvc [private]

Definition at line 28 of file checkDedx.h.

Referenced by execute(), and initialize().

ICalibTreeSvc* checkDedx::m_pTreeSvc [private]

Definition at line 29 of file checkDedx.h.

Referenced by initialize().


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