15class checkMdc : public Algorithm {
18 checkMdc(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//static const AlgFactory<checkMdc> Factory;
35//const IAlgFactory& UseCalibFactory = Factory;
36//const IAlgFactory& checkMdcFactory = Factory;
38checkMdc::checkMdc( const std::string& name,
39 ISvcLocator* pSvcLocator )
40 : Algorithm ( name, pSvcLocator ), m_pCalibDataSvc(0)
42 // Declare properties here.
48 ISvcLocator* pSvcLocator )
49 : Algorithm ( name, pSvcLocator ), m_pCalibDataSvc(0)
57 MsgStream log(
msgSvc(), name());
58 log << MSG::INFO <<
"Initialize()" << endreq;
63 log<<MSG::INFO <<
"setProperties()" << endreq;
65 sc = service(
"CalibDataSvc", m_pCalibDataSvc,
true);
67 if ( !sc.isSuccess() ) {
69 <<
"Could not get IDataProviderSvc interface of CalibXmlCnvSvc"
74 <<
"Retrieved IDataProviderSvc interface of CalibXmlCnvSvc"
78 sc = service(
"CalibTreeCnvSvc", m_pTreeSvc,
true);
79 if ( !sc.isSuccess() ) {
81 <<
"Could not get ICalibTreeSvc interface of CalibTreeCnvSvc"
89 return StatusCode::SUCCESS;
96 MsgStream log(
msgSvc(), name());
100 std::string fullPath =
"/Calib/MdcCal";
101 log << MSG::INFO<<
"execute() fullPath = "<<fullPath<< endreq;
103 SmartDataPtr<CalibData::MdcCalibData>
test(m_pCalibDataSvc, fullPath);
105 int qtparno =
test->getqtparNo();
106 int xtno =
test->getxtNo();
107 int t0no =
test->gett0No();
108 std::cout<<
"qtparno="<<qtparno<<
"xtno="<<xtno<<
"t0no="<<t0no<<std::endl;
113 return StatusCode::SUCCESS;
120 MsgStream log(
msgSvc(), name());
122 <<
" checkMdc FINALIZE!! "
125 return StatusCode::SUCCESS;
checkMdc(const std::string &name, ISvcLocator *pSvcLocator)