67 mInputFileList(conf.getUntrackedParameter<
string>(
"inputFileList")),
70 mCalibType(conf.getUntrackedParameter<
string>(
"calibType")),
71 mCalibMethod(conf.getUntrackedParameter<
string>(
"calibMethod")),
72 mMinTargetE(conf.getUntrackedParameter<double>(
"minTargetE")),
73 mMaxTargetE(conf.getUntrackedParameter<double>(
"maxTargetE")),
74 mMinCellE(conf.getUntrackedParameter<double>(
"minCellE")),
75 mMinEOverP(conf.getUntrackedParameter<double>(
"minEOverP")),
76 mMaxEOverP(conf.getUntrackedParameter<double>(
"maxEOverP")),
77 mMaxTrkEmE(conf.getUntrackedParameter<double>(
"maxTrkEmE")),
78 mMaxEtThirdJet(conf.getUntrackedParameter<double>(
"maxEtThirdJet")),
79 mMinDPhiDiJets(conf.getUntrackedParameter<double>(
"minDPhiDiJets")),
80 mSumDepths(conf.getUntrackedParameter<
bool>(
"sumDepths")),
81 mSumSmallDepths(conf.getUntrackedParameter<
bool>(
"sumSmallDepths")),
82 mCombinePhi(conf.getUntrackedParameter<
bool>(
"combinePhi")),
83 mHbClusterSize(conf.getUntrackedParameter<
int>(
"hbClusterSize")),
84 mHeClusterSize(conf.getUntrackedParameter<
int>(
"heClusterSize")),
86 mUseConeClustering(conf.getUntrackedParameter<
bool>(
"useConeClustering")),
87 mMaxConeDist(conf.getUntrackedParameter<double>(
"maxConeDist")),
89 mCalibAbsIEtaMax(conf.getUntrackedParameter<
int>(
"calibAbsIEtaMax")),
90 mCalibAbsIEtaMin(conf.getUntrackedParameter<
int>(
"calibAbsIEtaMin")),
91 mMaxProbeJetEmFrac(conf.getUntrackedParameter<double>(
"maxProbeJetEmFrac")),
92 mMaxTagJetEmFrac(conf.getUntrackedParameter<double>(
"maxTagJetEmFrac")),
93 mMaxTagJetAbsEta(conf.getUntrackedParameter<double>(
"maxTagJetAbsEta")),
94 mMinTagJetEt(conf.getUntrackedParameter<double>(
"minTagJetEt")),
95 mMinProbeJetAbsEta(conf.getUntrackedParameter<double>(
"minProbeJetAbsEta")),
96 mPhiSymCorFileName(conf.getUntrackedParameter<
string>(
"phiSymCorFileName")),
97 mApplyPhiSymCorFlag(conf.getUntrackedParameter<
bool>(
"applyPhiSymCorFlag")),
98 mOutputCorCoefFileName(conf.getUntrackedParameter<
string>(
"outputCorCoefFileName")),
99 mHistoFileName(conf.getUntrackedParameter<
string>(
"histoFileName"))
135 std::cout <<
"Please select ISO_TRACK or DI_JET in the python file." << std::endl;
141 std::cout <<
"Supported methods for IsoTrack calibration are: L3, MATRIX_INV_OF_ETA_AVE, L3_AND_MTRX_INV"
143 std::cout <<
"For DiJets the supported method is L3" << std::endl;
148 std::cout <<
"\n\nDiJet calibration can use only the L3 method. Please change the python file." << std::endl;
154 <<
"\n\nInvalid ABS(iEta) calibration range. Check calibAbsIEtaMin and calibAbsIEtaMax in the python file."
199 std::ifstream inputFileList;
202 inputFileList.open(
files.Data());
205 while (!inputFileList.eof()) {
211 inputFileList.close();
213 std::cout <<
"\nInput files for processing:" << std::endl;
215 std::cout <<
"file: " << it->Data() << std::endl;
219 TChain* fChain =
new TChain(
"hcalCalibTree");
221 for (std::vector<TString>::iterator f_it =
inputFiles.begin(); f_it !=
inputFiles.end(); ++f_it) {
222 fChain->Add(f_it->Data());
225 fChain->Process(calibrator);