102{
103 ATH_MSG_DEBUG(
"TileCondToolOfc weights, drawerIdx:" << drawerIdx
104 << " channel: " << channel
105 << " gain: " << gain
106 << " phase: " << phase );
107
108 std::fill (std::begin(weights.
g), std::end(weights.
g), 0);
109 std::fill (std::begin(weights.
dg), std::end(weights.
dg), 0);
110 std::fill (std::begin(weights.
w_a), std::end(weights.
w_a), 0);
111 std::fill (std::begin(weights.
w_b), std::end(weights.
w_b), 0);
112 std::fill (std::begin(weights.
w_c), std::end(weights.
w_c), 0);
113
114
116
119
120
121
122
123 if (msgLvl(MSG::DEBUG)) {
124 msg(MSG::DEBUG) <<
" Calculating " << (of2 ?
"OF2" :
"OF1") <<
" weights ";
125
127 msg(MSG::DEBUG) <<
"with Delta correlation matrix " <<
endmsg;
128 else
129 msg(MSG::DEBUG) <<
"with correlation matrix obtained from DB " <<
endmsg;
130
131 msg(MSG::DEBUG) <<
"for drawerIdx= " << drawerIdx
135 }
136
137 int npr = 2;
138 if (of2) npr = 3;
141
143 std::vector<float> vecAutoCr;
145
148 if (vecAutoCr[0] > -1233.){
149 if (vecAutoCr.size() == 28){
150 int AutoCrPosition = 0;
153 Correlation[
i][
j] = vecAutoCr[AutoCrPosition];
154 Correlation[
j][
i] = vecAutoCr[AutoCrPosition];
155 ++AutoCrPosition;
156 }
157 } else {
159 Correlation[i][i] = 1.;
162 Correlation[
i][
j +
i + 1] = vecAutoCr[
j];
163 Correlation[
j +
i + 1][
i] = vecAutoCr[
j];
164 }
165 }
166 }
167 }
168 }
169
171
173 float pdy = 0.;
174
175
176 {
179 , phase + 25 * (i -
m_t0Sample), py, pdy, ctx);
180
181
184 pdy=0;
185 }
186
187
188 PulseShape[
i][0] =
py;
189 DPulseShape[
i][0] = pdy;
190 weights.
g[
i] = PulseShape[
i][0];
191 weights.
dg[
i] = DPulseShape[
i][0];
192
194 << " phase " << phase
195 << " py " << py
196 << " pdy " << pdy );
197
198 }
199
200
201
204 CLHEP::HepVector IndependTermsAmp(
m_nSamples + npr, 0);
205 CLHEP::HepVector IndependTermsTime(
m_nSamples + npr, 0);
206 CLHEP::HepVector IndependTermsPed(
m_nSamples + npr, 0);
207
210 SystemMatrix[
i][
j] = Correlation[
i][
j];
211 }
212
215
218
219 if (of2) {
222 }
223 }
224
227
228 if (of2) IndependTermsPed[
m_nSamples + 2] = 1.;
229
230 Result = solve(SystemMatrix, IndependTermsAmp);
231
232 for (
int ismp = 0; ismp <
m_nSamples; ismp++) {
234
235
236 }
237
238 Result = solve(SystemMatrix, IndependTermsTime);
239
240 for (
int ismp = 0; ismp <
m_nSamples; ismp++) {
242
243 }
244
245 if (of2) {
246 Result = solve(SystemMatrix, IndependTermsPed);
247
248 for (
int ismp = 0; ismp <
m_nSamples; ismp++) {
250
251 }
252 }
253
254 }
255
256#if 0
257 else {
259 weights.
w_a[ismp] = 0.;
260 weights.
w_b[ismp] = 0.;
261 weights.
w_c[ismp] = 0.;
262 weights.
g[ismp] = 0.;
263 weights.
dg[ismp] = 0.;
264 }
265 }
266#endif
267
269
270 return StatusCode::SUCCESS;
271}
#define ATH_MSG_VERBOSE(x,...)
ICscStripFitter::Result Result
float j(const xAOD::IParticle &, const xAOD::TrackMeasurementValidation &hit, const Eigen::Matrix3d &jab_inv)