23 ,
"true=> use delta correlation; false=>use calculation obtained from data");
78 return StatusCode::FAILURE;
83 ATH_MSG_INFO(
"TileCondToolOfc initialization completed. " );
85 return StatusCode::SUCCESS;
93 return StatusCode::SUCCESS;
106 ,
const EventContext& ctx)
const
108 ATH_MSG_DEBUG(
"TileCondToolOfc weights, drawerIdx:" << drawerIdx
111 <<
" phase: " <<
phase );
148 std::vector<float> vecAutoCr;
153 if (vecAutoCr[0] > -1233.){
154 if (vecAutoCr.size() == 28){
155 int AutoCrPosition = 0;
158 Correlation[
i][j] = vecAutoCr[AutoCrPosition];
159 Correlation[j][
i] = vecAutoCr[AutoCrPosition];
164 Correlation[
i][
i] = 1.;
167 Correlation[
i][j +
i + 1] = vecAutoCr[j];
168 Correlation[j +
i + 1][
i] = vecAutoCr[j];
193 PulseShape[
i][0] =
py;
194 DPulseShape[
i][0] = pdy;
195 weights.
g[
i] = PulseShape[
i][0];
196 weights.
dg[
i] = DPulseShape[
i][0];
199 <<
" phase " <<
phase
209 CLHEP::HepVector IndependTermsAmp(
m_nSamples + npr, 0);
210 CLHEP::HepVector IndependTermsTime(
m_nSamples + npr, 0);
211 CLHEP::HepVector IndependTermsPed(
m_nSamples + npr, 0);
215 SystemMatrix[
i][j] = Correlation[
i][j];
235 Result = solve(SystemMatrix, IndependTermsAmp);
237 for (
int ismp = 0; ismp <
m_nSamples; ismp++) {
243 Result = solve(SystemMatrix, IndependTermsTime);
245 for (
int ismp = 0; ismp <
m_nSamples; ismp++) {
251 Result = solve(SystemMatrix, IndependTermsPed);
253 for (
int ismp = 0; ismp <
m_nSamples; ismp++) {
264 weights.
w_a[ismp] = 0.;
265 weights.
w_b[ismp] = 0.;
266 weights.
w_c[ismp] = 0.;
267 weights.
g[ismp] = 0.;
268 weights.
dg[ismp] = 0.;
275 return StatusCode::SUCCESS;