Simple algorithm to test functioning of "the other" TDS.
More...
#include <checkDedx.h>
|
| checkDedx (const std::string &name, ISvcLocator *pSvcLocator) |
| Instantiation of a static factory to create instances of this algorithm.
|
|
StatusCode | initialize () |
|
StatusCode | execute () |
|
StatusCode | finalize () |
|
Simple algorithm to test functioning of "the other" TDS.
Definition at line 16 of file checkDedx.h.
◆ checkDedx()
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.
51 : Algorithm ( name, pSvcLocator ), m_pCalibDataSvc(0)
52{
53
54
55}
◆ execute()
StatusCode checkDedx::execute |
( |
| ) |
|
Definition at line 97 of file checkDedx.cxx.
97 {
98
99 MsgStream log(
msgSvc(), name());
100
101
102
103
104
105
106
107 std::string fullPath = "/Calib/EsTimeCal";
108
109
110
111
112
113
114 log << MSG::INFO<<"execute() fullPath = "<<fullPath<< endreq;
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131SmartDataPtr<CalibData::EsTimeCalibData>
test(m_pCalibDataSvc, fullPath);
132
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148 return StatusCode::SUCCESS;
149}
◆ finalize()
StatusCode checkDedx::finalize |
( |
| ) |
|
Definition at line 153 of file checkDedx.cxx.
153 {
154
155 MsgStream log(
msgSvc(), name());
156 log << MSG::INFO
157 << " checkDedx FINALIZE!! "
158 << endreq;
159
160 return StatusCode::SUCCESS;
161}
◆ initialize()
StatusCode checkDedx::initialize |
( |
| ) |
|
Definition at line 58 of file checkDedx.cxx.
58 {
59 StatusCode sc;
60 MsgStream log(
msgSvc(), name());
61 log << MSG::INFO << "Initialize()" << endreq;
62
63
64
65
66 log<<MSG::INFO << "setProperties()" << endreq;
67
68 sc = service("CalibDataSvc", m_pCalibDataSvc, true);
69
70 if ( !sc.isSuccess() ) {
71 log << MSG::ERROR
72 << "Could not get IDataProviderSvc interface of CalibXmlCnvSvc"
73 << endreq;
74 return sc;
75 } else {
76 log << MSG::DEBUG
77 << "Retrieved IDataProviderSvc interface of CalibXmlCnvSvc"
78 << endreq;
79 }
80
81 sc = service("CalibTreeCnvSvc", m_pTreeSvc, true);
82 if ( !sc.isSuccess() ) {
83 log << MSG::ERROR
84 << "Could not get ICalibTreeSvc interface of CalibTreeCnvSvc"
85 << endreq;
86 return sc;
87 }
88
89
90 sc = setProperties();
91
92 return StatusCode::SUCCESS;
93
94}
The documentation for this class was generated from the following files: