21 declareProperty(
"nSamples",
m_nSamples = 7,
"number of samples used in the run");
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 );
129 msg(
MSG::DEBUG) <<
" Calculating " << (of2 ?
"OF2" :
"OF1") <<
" weights ";
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;
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];
233 if (of2) IndependTermsPed[
m_nSamples + 2] = 1.;
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++) {
275 return StatusCode::SUCCESS;