1 #ifndef FUN4ALL_YEAR1_C
2 #define FUN4ALL_YEAR1_C
4 #include <caloreco/CaloTowerCalib.h>
5 #include <caloreco/RawClusterBuilderTemplate.h>
6 #include <caloreco/RawClusterDeadHotMask.h>
7 #include <caloreco/RawClusterPositionCorrection.h>
8 #include <caloreco/TowerInfoDeadHotMask.h>
33 R__LOAD_LIBRARY(libcdbobjects)
35 R__LOAD_LIBRARY(libfun4all.so)
36 R__LOAD_LIBRARY(libfun4allraw.so)
37 R__LOAD_LIBRARY(libcalo_reco.so)
38 R__LOAD_LIBRARY(libffamodules.so)
39 R__LOAD_LIBRARY(libmbd.so)
40 R__LOAD_LIBRARY(libglobalvertex.so)
42 #include <caloana/CaloAna.h>
43 R__LOAD_LIBRARY(libcaloana.so)
46 void
doFitAndCalibUpdate(const std::
string &hist_fname = "parallel_test/combine_out/out1.
root", const std::
string &calib_fname = "parallel_test/local_cdb_copy.root" ,
int iter = 3)
54 caFit->
fitEtaSlices(hist_fname.c_str(), Form(
"fitout_iter%d.root", iter), 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,Form(
"_iter%d",iter));
60 TFile* f_calib_mod =
new TFile(calib_fname.c_str());
61 f_calib_mod->Cp(f_calib_save_name.c_str());