Simple algorithm to test functioning of "the other" TDS.
More...
#include <checkMdc.h>
Simple algorithm to test functioning of "the other" TDS.
Definition at line 15 of file checkMdc.h.
◆ checkMdc()
checkMdc::checkMdc |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
Definition at line 47 of file checkMdc.cxx.
49 : Algorithm ( name, pSvcLocator ), m_pCalibDataSvc(0)
50{
51
52
53 }
◆ execute()
StatusCode checkMdc::execute |
( |
| ) |
|
Definition at line 94 of file checkMdc.cxx.
94 {
95
96 MsgStream log(
msgSvc(), name());
97
98
99
100 std::string fullPath = "/Calib/MdcCal";
101 log << MSG::INFO<<"execute() fullPath = "<<fullPath<< endreq;
102
103 SmartDataPtr<CalibData::MdcCalibData>
test(m_pCalibDataSvc, fullPath);
104
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;
109
110
111
112
113 return StatusCode::SUCCESS;
114}
◆ finalize()
StatusCode checkMdc::finalize |
( |
| ) |
|
Definition at line 118 of file checkMdc.cxx.
118 {
119
120 MsgStream log(
msgSvc(), name());
121 log << MSG::INFO
122 << " checkMdc FINALIZE!! "
123 << endreq;
124
125 return StatusCode::SUCCESS;
126}
◆ initialize()
StatusCode checkMdc::initialize |
( |
| ) |
|
Definition at line 55 of file checkMdc.cxx.
55 {
56 StatusCode sc;
57 MsgStream log(
msgSvc(), name());
58 log << MSG::INFO << "Initialize()" << endreq;
59
60
61
62
63 log<<MSG::INFO << "setProperties()" << endreq;
64
65 sc = service("CalibDataSvc", m_pCalibDataSvc, true);
66
67 if ( !sc.isSuccess() ) {
68 log << MSG::ERROR
69 << "Could not get IDataProviderSvc interface of CalibXmlCnvSvc"
70 << endreq;
71 return sc;
72 } else {
73 log << MSG::DEBUG
74 << "Retrieved IDataProviderSvc interface of CalibXmlCnvSvc"
75 << endreq;
76 }
77
78 sc = service("CalibTreeCnvSvc", m_pTreeSvc, true);
79 if ( !sc.isSuccess() ) {
80 log << MSG::ERROR
81 << "Could not get ICalibTreeSvc interface of CalibTreeCnvSvc"
82 << endreq;
83 return sc;
84 }
85
86
87 sc = setProperties();
88
89 return StatusCode::SUCCESS;
90
91}
The documentation for this class was generated from the following files: