194 if (
fDebug)
fQA->CreateHist(
"Asym", 512, -12.0, 500.0, 512, -12.0, 500.0);
195 if (
fDebug &&
max == 200 &&
fQA->GetCont2D(
"Asym", a, b) == 0.)
fQA->Fill(
"Asym", a, b, shift);
196 if (
fDebug)
fQA->CreateHist(
"Look", 63, -0.5, 62.5, 512, -12.0, 500.0);
198 Int_t extrapolate = 0;
201 if ((b - extrapolate) <= minb || (a - extrapolate) <= mina)
break;
206 if (!(
fElookupAsym[
max][a - extrapolate - count][b - extrapolate] > 0)) {
214 if (!(
fElookupAsym[
max][a - extrapolate + count][b - extrapolate] > 0)) {
225 if ((b + extrapolate) >= maxb || (a + extrapolate) >= maxa)
break;
230 if (!(
fElookupAsym[
max][a + extrapolate - count][b + extrapolate] > 0)) {
238 if (!(
fElookupAsym[
max][a + extrapolate + count][b + extrapolate] > 0)) {
259 Int_t extrapolate = 0;
278 if (
fDebug)
fQA->CreateHist(
"Asym", 512, -12.0, 500.0, 512, -12.0, 500.0);
279 if (
fDebug &&
max == 200 &&
fQA->GetCont2D(
"Asym", a, b) == 0.)
fQA->Fill(
"Asym", a, b, shift);
280 if (
fDebug)
fQA->CreateHist(
"Look", 63, -0.5, 62.5, 512, -12.0, 2000.0);
281 if (
fDebug)
fQA->Fill(
"Look", shift, sum, energy);
285 if ((b - extrapolate) <= minb || (a - extrapolate) <= mina)
break;
290 if (!(
fElookupAsym[
max][a - extrapolate - count][b - extrapolate] > 0)) {
298 if (!(
fElookupAsym[
max][a - extrapolate + count][b - extrapolate] > 0)) {
309 if ((b + extrapolate) >= maxb || (a + extrapolate) >= maxa)
break;
314 if (!(
fElookupAsym[
max][a + extrapolate - count][b + extrapolate] > 0)) {
322 if (!(
fElookupAsym[
max][a + extrapolate + count][b + extrapolate] > 0)) {
343 for (
Int_t n = 0; n <= range; n++) {
354 TFile f(file.data(),
"OPEN");
355 LOG_IF(fatal, !f.IsOpen()) <<
"parameter file " << file <<
" does not exist!";
357 h = f.Get<TProfile2D>(
"MAX ADC");
358 LOG_IF(fatal, !
h) <<
"No histogram MAX ADC found in file " << file;
359 for (
Int_t x = 1;
x <=
h->GetNbinsX();
x++) {
360 for (
Int_t y = 1;
y <=
h->GetNbinsY();
y++) {
361 fElookupSmall[
h->GetXaxis()->GetBinCenter(
x)][
h->GetYaxis()->GetBinCenter(
y)] =
h->GetBinContent(
x,
y);
362 if (
fDebug)
fQA->CreateHist(
"Read Small", 63, -0.5, 62.5, 512, -12., 500.);
364 fQA->Fill(
"Read Small",
h->GetXaxis()->GetBinCenter(
x),
h->GetYaxis()->GetBinCenter(
y),
365 h->GetBinContent(
x,
y));
368 h = f.Get<TProfile2D>(
"ASYM MAP");
369 LOG_IF(fatal, !
h) <<
"No histogram ASYM MAP found in file " << file;
370 for (
Int_t x = 1;
x <=
h->GetNbinsX();
x++) {
371 for (
Int_t y = 1;
y <=
h->GetNbinsY();
y++) {
372 fElookupA[
h->GetXaxis()->GetBinCenter(
x)][
h->GetYaxis()->GetBinCenter(
y)] =
h->GetBinContent(
x,
y);
373 if (
fDebug)
fQA->CreateHist(
"Read Asym", 512, 0., 512., 512, -12., 500.);
375 fQA->Fill(
"Read Asym",
h->GetXaxis()->GetBinCenter(
x),
h->GetYaxis()->GetBinCenter(
y),
376 h->GetBinContent(
x,
y));
382 TFile f(file.data(),
"OPEN");
383 LOG_IF(fatal, !f.IsOpen()) <<
"parameter file " << file <<
" does not exist!";
385 h = f.Get<TProfile2D>(
"MAX ADC");
386 LOG_IF(fatal, !
h) <<
"No histogram MAX ADC found in file " << file;
387 for (
Int_t x = 1;
x <=
h->GetNbinsX();
x++) {
388 for (
Int_t y = 1;
y <=
h->GetNbinsY();
y++) {
389 fElookupSmall[
h->GetXaxis()->GetBinCenter(
x)][
h->GetYaxis()->GetBinCenter(
y)] =
h->GetBinContent(
x,
y);
390 if (
fDebug)
fQA->CreateHist(
"Read Small", 63, -0.5, 62.5, 512, -12., 500.);
392 fQA->Fill(
"Read Small",
h->GetXaxis()->GetBinCenter(
x),
h->GetYaxis()->GetBinCenter(
y),
393 h->GetBinContent(
x,
y));
396 h = f.Get<TProfile2D>(
"ASYM MAP");
397 LOG_IF(fatal, !
h) <<
"No histogram ASYM MAP found in file " << file;
398 for (
Int_t x = 1;
x <=
h->GetNbinsX();
x++) {
399 for (
Int_t y = 1;
y <=
h->GetNbinsY();
y++) {
400 fElookupA[
h->GetXaxis()->GetBinCenter(
x)][
h->GetYaxis()->GetBinCenter(
y)] =
h->GetBinContent(
x,
y);
401 if (
fDebug)
fQA->CreateHist(
"Read Asym", 512, 0., 512., 512, -12., 500.);
403 fQA->Fill(
"Read Asym",
h->GetXaxis()->GetBinCenter(
x),
h->GetYaxis()->GetBinCenter(
y),
404 h->GetBinContent(
x,
y));