15class checkDedx : public Algorithm {
18 checkDedx(const std::string& name, ISvcLocator* pSvcLocator);
20 StatusCode initialize();
24 StatusCode finalize();
27 IDataProviderSvc* m_pCalibDataSvc;
28 ICalibTreeSvc* m_pTreeSvc;
29 // Maybe something to say which kind of data to look up?
34#include "CalibData/Dedx/DedxCalibData.h"
35#include "CalibData/Dedx/DedxSimData.h"
36#include "CalibData/Dedx/DedxCalibData.h"
37#include "CalibData/Emc/EmcCalibData.h"
38#include "CalibData/EsTime/EsTimeCalibData.h"
39#include "CalibData/Tof/TofCalibData.h"
40#include "CalibData/Muc/MucCalibData.h"
41#include "CalibData/Tof/TofElecData.h"
42#include "CalibData/Tof/TofSimData.h"
43#include "CalibData/Mdc/MdcAlignData.h"
50 ISvcLocator* pSvcLocator )
51 : Algorithm ( name, pSvcLocator ), m_pCalibDataSvc(0)
60 MsgStream log(
msgSvc(), name());
61 log << MSG::INFO <<
"Initialize()" << endreq;
66 log<<MSG::INFO <<
"setProperties()" << endreq;
68 sc = service(
"CalibDataSvc", m_pCalibDataSvc,
true);
70 if ( !sc.isSuccess() ) {
72 <<
"Could not get IDataProviderSvc interface of CalibXmlCnvSvc"
77 <<
"Retrieved IDataProviderSvc interface of CalibXmlCnvSvc"
81 sc = service(
"CalibTreeCnvSvc", m_pTreeSvc,
true);
82 if ( !sc.isSuccess() ) {
84 <<
"Could not get ICalibTreeSvc interface of CalibTreeCnvSvc"
92 return StatusCode::SUCCESS;
99 MsgStream log(
msgSvc(), name());
107 std::string fullPath =
"/Calib/EsTimeCal";
114 log << MSG::INFO<<
"execute() fullPath = "<<fullPath<< endreq;
131SmartDataPtr<CalibData::EsTimeCalibData>
test(m_pCalibDataSvc, fullPath);
148 return StatusCode::SUCCESS;
155 MsgStream log(
msgSvc(), name());
157 <<
" checkDedx FINALIZE!! "
160 return StatusCode::SUCCESS;
checkDedx(const std::string &name, ISvcLocator *pSvcLocator)
Instantiation of a static factory to create instances of this algorithm.