2 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
16 #include <litecaloeval/LiteCaloEval.h>
17 #include <caloreco/CaloTowerCalib.h>
18 #include <caloreco/RawClusterBuilderTemplate.h>
22 #include "/sphenix/u/bseidlitz/work/macros/calibrations/calo/calib_nov23/towerslope/TSCtoCDBTTree.C"
24 R__LOAD_LIBRARY(libfun4all.so)
25 R__LOAD_LIBRARY(libfun4allraw.so)
26 R__LOAD_LIBRARY(libcalo_reco.so)
27 R__LOAD_LIBRARY(libLiteCaloEvalTowSlope.so)
28 R__LOAD_LIBRARY(libcalo_io.so)
29 R__LOAD_LIBRARY(libcdbobjects)
31 void mergeCDBTTrees(const
char * infile1, const
char * infile2, const
char * outputfile);
40 string fitoutfile =
"tsc_fitout.root";
44 modlce.
Get_Histos(hist_fname.c_str(),fitoutfile.c_str());
54 mergeCDBTTrees(
"tsc_output_cdb.root",calib_fname.c_str(),calib_fname.c_str());
56 size_t pos = calib_fname.find_last_of(
'.');
57 string f_calib_save_name = calib_fname;
58 f_calib_save_name.insert(pos,
"_postTSC");
60 TFile* f_calib_mod =
new TFile(calib_fname.c_str());
61 f_calib_mod->Cp(f_calib_save_name.c_str());
67 void mergeCDBTTrees(
const char * infile1,
const char * infile2,
const char * outputfile)
74 string m_fieldname =
"Femc_datadriven_qm1_correction";
76 for(
int i = 0;
i < 96 ;
i++)
78 for(
int j = 0;
j < 256;
j++)