58 : mInputFileList(conf.getUntrackedParameter<
std::
string>(
"inputFileList")),
60 mCalibType(conf.getUntrackedParameter<
std::
string>(
"calibType")),
61 mCalibMethod(conf.getUntrackedParameter<
std::
string>(
"calibMethod")),
62 mMinTargetE(conf.getUntrackedParameter<double>(
"minTargetE")),
63 mMaxTargetE(conf.getUntrackedParameter<double>(
"maxTargetE")),
64 mMinCellE(conf.getUntrackedParameter<double>(
"minCellE")),
65 mMinEOverP(conf.getUntrackedParameter<double>(
"minEOverP")),
66 mMaxEOverP(conf.getUntrackedParameter<double>(
"maxEOverP")),
67 mMaxTrkEmE(conf.getUntrackedParameter<double>(
"maxTrkEmE")),
68 mMaxEtThirdJet(conf.getUntrackedParameter<double>(
"maxEtThirdJet")),
69 mMinDPhiDiJets(conf.getUntrackedParameter<double>(
"minDPhiDiJets")),
70 mSumDepths(conf.getUntrackedParameter<
bool>(
"sumDepths")),
71 mSumSmallDepths(conf.getUntrackedParameter<
bool>(
"sumSmallDepths")),
72 mCombinePhi(conf.getUntrackedParameter<
bool>(
"combinePhi")),
73 mHbClusterSize(conf.getUntrackedParameter<
int>(
"hbClusterSize")),
74 mHeClusterSize(conf.getUntrackedParameter<
int>(
"heClusterSize")),
76 mUseConeClustering(conf.getUntrackedParameter<
bool>(
"useConeClustering")),
77 mMaxConeDist(conf.getUntrackedParameter<double>(
"maxConeDist")),
79 mCalibAbsIEtaMax(conf.getUntrackedParameter<
int>(
"calibAbsIEtaMax")),
80 mCalibAbsIEtaMin(conf.getUntrackedParameter<
int>(
"calibAbsIEtaMin")),
81 mMaxProbeJetEmFrac(conf.getUntrackedParameter<double>(
"maxProbeJetEmFrac")),
82 mMaxTagJetEmFrac(conf.getUntrackedParameter<double>(
"maxTagJetEmFrac")),
83 mMaxTagJetAbsEta(conf.getUntrackedParameter<double>(
"maxTagJetAbsEta")),
84 mMinTagJetEt(conf.getUntrackedParameter<double>(
"minTagJetEt")),
85 mMinProbeJetAbsEta(conf.getUntrackedParameter<double>(
"minProbeJetAbsEta")),
86 mPhiSymCorFileName(conf.getUntrackedParameter<
std::
string>(
"phiSymCorFileName")),
87 mApplyPhiSymCorFlag(conf.getUntrackedParameter<
bool>(
"applyPhiSymCorFlag")),
88 mOutputCorCoefFileName(conf.getUntrackedParameter<
std::
string>(
"outputCorCoefFileName")),
89 mHistoFileName(conf.getUntrackedParameter<
std::
string>(
"histoFileName")) {
90 tok_geom_ = esConsumes<CaloGeometry, CaloGeometryRecord>();
91 tok_htopo_ = esConsumes<HcalTopology, HcalRecNumberingRecord>();
114 std::cout <<
"Please select ISO_TRACK or DI_JET in the python file." << std::endl;
120 std::cout <<
"Supported methods for IsoTrack calibration are: L3, MATRIX_INV_OF_ETA_AVE, L3_AND_MTRX_INV"
122 std::cout <<
"For DiJets the supported method is L3" << std::endl;
127 std::cout <<
"\n\nDiJet calibration can use only the L3 method. Please change the python file." << std::endl;
133 <<
"\n\nInvalid ABS(iEta) calibration range. Check calibAbsIEtaMin and calibAbsIEtaMax in the python file."
178 std::ifstream inputFileList;
181 inputFileList.open(
files.Data());
184 while (!inputFileList.eof()) {
190 inputFileList.close();
192 std::cout <<
"\nInput files for processing:" << std::endl;
194 std::cout <<
"file: " << it->Data() << std::endl;
198 TChain* fChain =
new TChain(
"hcalCalibTree");
200 for (std::vector<TString>::iterator f_it =
inputFiles.begin(); f_it !=
inputFiles.end(); ++f_it) {
201 fChain->Add(f_it->Data());
204 fChain->Process(calibrator);