8 R__LOAD_LIBRARY(libLiteCaloEvalTowSlope.so)
10 R__LOAD_LIBRARY(libcdbobjects)
11 R__LOAD_LIBRARY(libphool.so)
12 R__LOAD_LIBRARY(libcalo_reco.so)
13 R__LOAD_LIBRARY(libcalo_io.so)
18 bool chk4file = gSystem->AccessPathName(infile);
23 f =
new TFile(infile,
"READ");
27 std::cout <<
"File " << infile <<
" cant be found in current directory." << std::endl;
35 TH2F *cp = (TH2F *)f->Get(
"corrPat");
37 for(
int i = 0;
i < 96 ;
i++)
39 for(
int j = 0;
j < 256;
j++)
42 float gain = (1.0 / cp->GetBinContent(
i+1,
j+1) );
43 if (cp->GetBinContent(
i+1,
j+1)==0) gain = 0;
44 if (isnan(cp->GetBinContent(
i+1,
j+1))) {gain = 0; cout <<
i <<
"," <<
j << endl;}
45 cdbttree->
SetFloatValue(key,
"Femc_datadriven_qm1_correction",gain);