2 #include <calib_emc_pi0/pi0EtaByEta.h>
3 R__LOAD_LIBRARY(libcalibCaloEmc_pi0.so)
5 void
doFitAndCalibUpdate(const std::
string &hist_fname = "base/combine_out/out2.
root", const std::
string &calib_fname = "base/local_calib_copy.root" ,
int iter = 2)
10 caFit->
fitEtaSlices(hist_fname.c_str(), Form(
"fitout_iter%d.root", iter), calib_fname.c_str());
12 size_t pos = calib_fname.find_last_of(
'.');
13 string f_calib_save_name = calib_fname;
14 f_calib_save_name.insert(pos,Form(
"_iter%d",iter));
16 TFile* f_calib_mod =
new TFile(calib_fname.c_str());
17 f_calib_mod->Cp(f_calib_save_name.c_str());