Simple algorithm to test functioning of "the other" TDS.
More...
#include <UseMuc.h>
Simple algorithm to test functioning of "the other" TDS.
Definition at line 23 of file UseMuc.h.
◆ UseMuc()
UseMuc::UseMuc |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
Definition at line 49 of file UseMuc.cxx.
51 : Algorithm ( name, pSvcLocator ), m_pCalibDataSvc(0)
52{
53
54
55}
◆ execute()
StatusCode UseMuc::execute |
( |
| ) |
|
Definition at line 99 of file UseMuc.cxx.
99 {
100
101 MsgStream log(
msgSvc(), name());
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126 std::string fullPath = "/Calib/MucCal";
127 log << MSG::INFO<<"execute() fullPath = "<<fullPath<< endreq;
128
129
130
131
132
133
134
135 SmartDataPtr<CalibData::MucCalibData>
test(m_pCalibDataSvc, fullPath);
137 std::cout<<
"m_uniformEff="<<
test->getUniformEff()<<std::endl;
138 std::cout<<
"m_UniformNos="<<
test->getUniformNos()<<std::endl;
139 std::cout<<
"m_UniformClst="<<
test->getUniformClst()<<std::endl;
140 for(int i=0;i<LAYER_MAX;i++){
141 std::cout<<
"m_layerEff["<<i<<
"]="<<
test->getLayerEff(i)<<
" m_layerNos["<<i<<
"]="<<
test->getLayerNos(i)<<std::endl;
142 for(int j=0;j<CLST_MAX;j++){
143 std::cout<<
"m_layerClstPro["<<i<<
"]["<<j<<
"]="<<
test->getLayerClstPro(i,j)<<std::endl;
144 }
145 }
146
148 {
149 for(int j=0; j<((i==1)?B_SEG_NUM:E_SEG_NUM); j++)
150 {
151 for(int k=0; k<((i==1)?B_LAY_NUM:E_LAY_NUM); k++)
152 {
153 std::cout << "Box: " << i << "\t" << j << "\t" << k << "\t"
154 <<
test->getBoxEff(i, j, k) << endl;
155 }
156 }
157 }
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177 return StatusCode::SUCCESS;
178}
◆ finalize()
StatusCode UseMuc::finalize |
( |
| ) |
|
Definition at line 180 of file UseMuc.cxx.
180 {
181
182 MsgStream log(
msgSvc(), name());
183 log << MSG::INFO
184 << " UseMuc FINALIZE!! "
185 << endreq;
186
187 return StatusCode::SUCCESS;
188}
◆ initialize()
StatusCode UseMuc::initialize |
( |
| ) |
|
Definition at line 58 of file UseMuc.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("CalibRootCnvSvc", m_pRootSvc, true);
82 if ( !sc.isSuccess() ) {
83 log << MSG::ERROR
84 << "Could not get ICalibRootSvc interface of CalibRootCnvSvc"
85 << endreq;
86 return sc;
87 }
88
89
90 sc = setProperties();
91
92
93
94 return StatusCode::SUCCESS;
95
96}
The documentation for this class was generated from the following files: