1 #ifndef FUN4ALL_YEAR1_C
2 #define FUN4ALL_YEAR1_C
4 #include <caloreco/CaloTowerBuilder.h>
5 #include <caloreco/CaloTowerCalib.h>
6 #include <caloreco/CaloTowerStatus.h>
7 #include <caloreco/CaloWaveformProcessing.h>
8 #include <caloreco/DeadHotMapLoader.h>
9 #include <caloreco/RawClusterBuilderTemplate.h>
10 #include <caloreco/RawClusterDeadHotMask.h>
11 #include <caloreco/RawClusterPositionCorrection.h>
12 #include <caloreco/TowerInfoDeadHotMask.h>
36 #include <calotrigger/MinimumBiasClassifier.h>
38 #include <calovalid/CaloValid.h>
40 R__LOAD_LIBRARY(libfun4all.so)
41 R__LOAD_LIBRARY(libfun4allraw.so)
42 R__LOAD_LIBRARY(libcalo_reco.so)
43 R__LOAD_LIBRARY(libcalotrigger.so)
44 R__LOAD_LIBRARY(libcentrality.so)
45 R__LOAD_LIBRARY(libffamodules.so)
46 R__LOAD_LIBRARY(libmbd.so)
47 R__LOAD_LIBRARY(libglobalvertex.so)
48 R__LOAD_LIBRARY(libcalovalid.so)
50 void Fun4All_Year1(const std::
string &
fname = "/sphenix/lustre01/sphnxpro/commissioning/aligned_prdf/beam-00021774-0000.prdf",
int nEvents = 10)
52 bool enableMasking = 0;
53 bool addZeroSupCaloNodes = 1;
70 char outfile_hist[100];
71 sprintf(outfile,
"DST_CALOR-%08d-%04d.root", runnumber, segment);
72 sprintf(outfile_hist,
"HIST_CALOR-%08d-%04d.root", runnumber, segment);
74 string fulloutfile_hist =
string(
"./") + outfile_hist;
135 std::cout <<
"status setters" << std::endl;
153 std::cout <<
"Calibrating EMCal" << std::endl;
158 std::cout <<
"Calibrating OHcal" << std::endl;
163 std::cout <<
"Calibrating IHcal" << std::endl;
168 std::cout <<
"Calibrating ZDC" << std::endl;
177 std::cout <<
"Loading EMCal deadmap" << std::endl;
182 std::cout <<
"Loading ihcal deadmap" << std::endl;
187 std::cout <<
"Loading ohcal deadmap" << std::endl;
189 towerMapHCalout->
detector(
"HCALOUT");
192 std::cout <<
"Loading cemc masker" << std::endl;
197 std::cout <<
"Loading hcal maskers" << std::endl;
199 towerMaskHCalin->
detector(
"HCALIN");
203 towerMaskHCalout->
detector(
"HCALOUT");
207 std::cout <<
"Adding Geometry file" << std::endl;
215 std::cout <<
"Building clusters" << std::endl;
220 emc_prof +=
"/EmcProfile/CEMCprof_Thresh30MeV.root";
227 std::cout <<
"Masking clusters" << std::endl;
233 std::cout <<
"Applying Position Dependent Correction" << std::endl;
240 if (addZeroSupCaloNodes)
311 std::cout <<
"All done!" << std::endl;