183 Float_t energy = max * 1.0 / temp;
199 Int_t extrapolate = 0;
202 if ((b - extrapolate) <= minb || (a - extrapolate) <= mina)
break;
203 if (
fElookupAsym[max][a - extrapolate][b - extrapolate] > 0)
continue;
207 if (!(
fElookupAsym[max][a - extrapolate - count][b - extrapolate] > 0)) {
215 if (!(
fElookupAsym[max][a - extrapolate + count][b - extrapolate] > 0)) {
226 if ((b + extrapolate) >= maxb || (a + extrapolate) >= maxa)
break;
227 if (
fElookupAsym[max][a + extrapolate][b + extrapolate] > 0)
continue;
231 if (!(
fElookupAsym[max][a + extrapolate - count][b + extrapolate] > 0)) {
239 if (!(
fElookupAsym[max][a + extrapolate + count][b + extrapolate] > 0)) {
260 Int_t extrapolate = 0;
262 Float_t energy = max * 1.0 / temp;
286 if ((b - extrapolate) <= minb || (a - extrapolate) <= mina)
break;
287 if (
fElookupAsym[max][a - extrapolate][b - extrapolate] > 0)
continue;
291 if (!(
fElookupAsym[max][a - extrapolate - count][b - extrapolate] > 0)) {
299 if (!(
fElookupAsym[max][a - extrapolate + count][b - extrapolate] > 0)) {
310 if ((b + extrapolate) >= maxb || (a + extrapolate) >= maxa)
break;
311 if (
fElookupAsym[max][a + extrapolate][b + extrapolate] > 0)
continue;
315 if (!(
fElookupAsym[max][a + extrapolate - count][b + extrapolate] > 0)) {
323 if (!(
fElookupAsym[max][a + extrapolate + count][b + extrapolate] > 0)) {
344 for (Int_t n = 0; n <= range; n++) {
345 Float_t value = n /
fEReco;
355 TFile f(file.data(),
"OPEN");
356 LOG_IF(fatal, !f.IsOpen()) <<
"parameter file " << file <<
" does not exist!";
358 h = f.Get<TProfile2D>(
"MAX ADC");
359 LOG_IF(fatal, !
h) <<
"No histogram MAX ADC found in file " << file;
360 for (Int_t
x = 1;
x <=
h->GetNbinsX();
x++) {
361 for (Int_t
y = 1;
y <=
h->GetNbinsY();
y++) {
362 fElookupSmall[
h->GetXaxis()->GetBinCenter(
x)][
h->GetYaxis()->GetBinCenter(
y)] =
h->GetBinContent(
x,
y);
365 fQA->
Fill(
"Read Small",
h->GetXaxis()->GetBinCenter(
x),
h->GetYaxis()->GetBinCenter(
y),
366 h->GetBinContent(
x,
y));
369 h = f.Get<TProfile2D>(
"ASYM MAP");
370 LOG_IF(fatal, !
h) <<
"No histogram ASYM MAP found in file " << file;
371 for (Int_t
x = 1;
x <=
h->GetNbinsX();
x++) {
372 for (Int_t
y = 1;
y <=
h->GetNbinsY();
y++) {
373 fElookupA[
h->GetXaxis()->GetBinCenter(
x)][
h->GetYaxis()->GetBinCenter(
y)] =
h->GetBinContent(
x,
y);
376 fQA->
Fill(
"Read Asym",
h->GetXaxis()->GetBinCenter(
x),
h->GetYaxis()->GetBinCenter(
y),
377 h->GetBinContent(
x,
y));
383 TFile f(file.data(),
"OPEN");
384 LOG_IF(fatal, !f.IsOpen()) <<
"parameter file " << file <<
" does not exist!";
386 h = f.Get<TProfile2D>(
"MAX ADC");
387 LOG_IF(fatal, !
h) <<
"No histogram MAX ADC found in file " << file;
388 for (Int_t
x = 1;
x <=
h->GetNbinsX();
x++) {
389 for (Int_t
y = 1;
y <=
h->GetNbinsY();
y++) {
390 fElookupSmall[
h->GetXaxis()->GetBinCenter(
x)][
h->GetYaxis()->GetBinCenter(
y)] =
h->GetBinContent(
x,
y);
393 fQA->
Fill(
"Read Small",
h->GetXaxis()->GetBinCenter(
x),
h->GetYaxis()->GetBinCenter(
y),
394 h->GetBinContent(
x,
y));
397 h = f.Get<TProfile2D>(
"ASYM MAP");
398 LOG_IF(fatal, !
h) <<
"No histogram ASYM MAP found in file " << file;
399 for (Int_t
x = 1;
x <=
h->GetNbinsX();
x++) {
400 for (Int_t
y = 1;
y <=
h->GetNbinsY();
y++) {
401 fElookupA[
h->GetXaxis()->GetBinCenter(
x)][
h->GetYaxis()->GetBinCenter(
y)] =
h->GetBinContent(
x,
y);
404 fQA->
Fill(
"Read Asym",
h->GetXaxis()->GetBinCenter(
x),
h->GetYaxis()->GetBinCenter(
y),
405 h->GetBinContent(
x,
y));