2 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
10 #include <litecaloeval/LiteCaloEval.h>
12 #include <calib_emc_pi0/CaloCalibEmc_Pi0.h>
14 #include <caloreco/RawClusterBuilderGraph.h>
15 #include <caloreco/RawClusterBuilderTemplate.h>
16 #include <caloreco/RawClusterPositionCorrection.h>
17 #include <caloreco/RawTowerCalibration.h>
20 R__LOAD_LIBRARY(libfun4all.so)
22 R__LOAD_LIBRARY(libcalo_reco.so)
23 R__LOAD_LIBRARY(libcalibCaloEmc_pi0.so)
24 R__LOAD_LIBRARY(libLiteCaloEvalTowSlope.so)
32 const string &outputFile =
"secoutput4_raw",
33 const string &inputFile0 =
"ongoing/dstnewoutput5_calo5.root"
74 in->
AddFile(inputFile0.c_str());
100 emc_prof +=
"/EmcProfile/CEMCprof_Thresh30MeV.root";
107 clusterCorrection->Get_eclus_CalibrationParameters().ReadFromFile(
"CEMC_RECALIB",
"xml", 0, 0,
109 string(getenv(
"CALIBRATIONROOT")) +
string(
"/CEMC/PositionRecalibration_EMCal_9deg_tilt/"));
110 clusterCorrection->Get_ecore_CalibrationParameters().ReadFromFile(
"CEMC_ECORE_RECALIB",
"xml", 0, 0,
112 string(getenv(
"CALIBRATIONROOT")) +
string(
"/CEMC/PositionRecalibration_EMCal_9deg_tilt/"));
125 emc_prof2 +=
"/EmcProfile/CEMCprof_Thresh30MeV.root";
135 clusterCorrection2->Get_eclus_CalibrationParameters().ReadFromCDB(
"CEMCRECALIB");
136 clusterCorrection2->Get_ecore_CalibrationParameters().ReadFromCDB(
"CEMC_ECORE_RECALIB");
140 clusterCorrection2->Get_eclus_CalibrationParameters().ReadFromFile(
"CEMC_RECALIB",
"xml", 0, 0,
142 string(getenv(
"CALIBRATIONROOT")) +
string(
"/CEMC/PositionRecalibration_EMCal_9deg_tilt/"));
143 clusterCorrection2->Get_ecore_CalibrationParameters().ReadFromFile(
"CEMC_ECORE_RECALIB",
"xml", 0, 0,
145 string(getenv(
"CALIBRATIONROOT")) +
string(
"/CEMC/PositionRecalibration_EMCal_9deg_tilt/"));
153 string outputFile2 = outputFile.c_str();
154 outputFile2 = outputFile2 +
".root";
155 string outputfile5 = outputFile2 +
"_cemc_eval5.root";
156 string outputFile3 = outputFile2 +
"_cemc_eval3.root";
177 cout <<
"successful registration of pi0 2" << endl;