113 : mInputFileList(conf.getUntrackedParameter<std::
string>(
"inputFileList")),
115 mCalibType(conf.getUntrackedParameter<std::
string>(
"calibType")),
116 mCalibMethod(conf.getUntrackedParameter<std::
string>(
"calibMethod")),
117 mMinTargetE(conf.getUntrackedParameter<double>(
"minTargetE")),
118 mMaxTargetE(conf.getUntrackedParameter<double>(
"maxTargetE")),
119 mMinCellE(conf.getUntrackedParameter<double>(
"minCellE")),
120 mMinEOverP(conf.getUntrackedParameter<double>(
"minEOverP")),
121 mMaxEOverP(conf.getUntrackedParameter<double>(
"maxEOverP")),
122 mMaxTrkEmE(conf.getUntrackedParameter<double>(
"maxTrkEmE")),
123 mMaxEtThirdJet(conf.getUntrackedParameter<double>(
"maxEtThirdJet")),
124 mMinDPhiDiJets(conf.getUntrackedParameter<double>(
"minDPhiDiJets")),
125 mSumDepths(conf.getUntrackedParameter<bool>(
"sumDepths")),
126 mSumSmallDepths(conf.getUntrackedParameter<bool>(
"sumSmallDepths")),
127 mCombinePhi(conf.getUntrackedParameter<bool>(
"combinePhi")),
128 mHbClusterSize(conf.getUntrackedParameter<int>(
"hbClusterSize")),
129 mHeClusterSize(conf.getUntrackedParameter<int>(
"heClusterSize")),
131 mUseConeClustering(conf.getUntrackedParameter<bool>(
"useConeClustering")),
132 mMaxConeDist(conf.getUntrackedParameter<double>(
"maxConeDist")),
134 mCalibAbsIEtaMax(conf.getUntrackedParameter<int>(
"calibAbsIEtaMax")),
135 mCalibAbsIEtaMin(conf.getUntrackedParameter<int>(
"calibAbsIEtaMin")),
136 mMaxProbeJetEmFrac(conf.getUntrackedParameter<double>(
"maxProbeJetEmFrac")),
137 mMaxTagJetEmFrac(conf.getUntrackedParameter<double>(
"maxTagJetEmFrac")),
138 mMaxTagJetAbsEta(conf.getUntrackedParameter<double>(
"maxTagJetAbsEta")),
139 mMinTagJetEt(conf.getUntrackedParameter<double>(
"minTagJetEt")),
140 mMinProbeJetAbsEta(conf.getUntrackedParameter<double>(
"minProbeJetAbsEta")),
141 mPhiSymCorFileName(conf.getUntrackedParameter<std::
string>(
"phiSymCorFileName")),
142 mApplyPhiSymCorFlag(conf.getUntrackedParameter<bool>(
"applyPhiSymCorFlag")),
143 mOutputCorCoefFileName(conf.getUntrackedParameter<std::
string>(
"outputCorCoefFileName")),
144 mHistoFileName(conf.getUntrackedParameter<std::
string>(
"histoFileName")) {
145 tok_geom_ = esConsumes<CaloGeometry, CaloGeometryRecord>();
146 tok_htopo_ = esConsumes<HcalTopology, HcalRecNumberingRecord>();
169 edm::LogVerbatim(
"HcalCalib") <<
"Please select ISO_TRACK or DI_JET in the python file.";
176 <<
"Supported methods for IsoTrack calibration are: L3, MATRIX_INV_OF_ETA_AVE, L3_AND_MTRX_INV";
182 edm::LogVerbatim(
"HcalCalib") <<
"\n\nDiJet calibration can use only the L3 method. Please change the python file.";
188 <<
"\n\nInvalid ABS(iEta) calibration range. Check calibAbsIEtaMin and calibAbsIEtaMax in the python file.";
235 inputFileList.open(files.Data());
238 while (!inputFileList.eof()) {
241 if (!fileName.BeginsWith(
"#") && !fileName.Contains(
" ") && fileName !=
"")
242 inputFiles.push_back(fileName);
244 inputFileList.close();
247 for (std::vector<TString>::iterator it = inputFiles.begin(); it != inputFiles.end(); ++it) {
251 TChain* fChain =
new TChain(
"hcalCalibTree");
253 for (std::vector<TString>::iterator f_it = inputFiles.begin(); f_it != inputFiles.end(); ++f_it) {
254 fChain->Add(f_it->Data());
257 fChain->Process(calibrator);
void SetMaxTagJetAbsEta(Float_t e)
void SetPhiSymCorFileName(const TString &filename)
Log< level::Info, true > LogVerbatim
void SetHbClusterSize(Int_t i)
void SetOutputCorCoefFileName(const TString &filename)
void SetMinTagJetEt(Float_t e)
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > tok_geom_
void SetMaxEOverP(Float_t e)
double mMinProbeJetAbsEta
void SetMaxProbeJetEmFrac(Float_t f)
void SetSumSmallDepthsFlag(Bool_t b)
void SetConeMaxDist(Float_t d)
#define DEFINE_FWK_MODULE(type)
void SetApplyPhiSymCorFlag(Bool_t b)
const CaloGeometry * mTheCaloGeometry
void SetCalibType(const TString &s)
void SetMinDPhiDiJets(Float_t dphi)
void SetSumDepthsFlag(Bool_t b)
std::string mHistoFileName
void analyze(const edm::Event &, const edm::EventSetup &) override
void SetUseConeClustering(Bool_t b)
double mMaxProbeJetEmFrac
bool getData(T &iHolder) const
const HcalTopology * mTheHcalTopology
void SetMinTargetE(Float_t e)
void SetCalibMethod(const TString &s)
void SetCalibAbsIEtaMax(Int_t i)
std::string mInputFileList
~HcalCalibrator() override
void SetMaxTargetE(Float_t e)
void SetMaxTrkEmE(Float_t e)
HcalCalibrator(const edm::ParameterSet &)
std::string mPhiSymCorFileName
void SetCaloGeometry(const CaloGeometry *g, const HcalTopology *topo)
void SetMaxTagJetEmFrac(Float_t f)
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > tok_htopo_
void SetCalibAbsIEtaMin(Int_t i)
std::string mOutputCorCoefFileName
void SetCombinePhiFlag(Bool_t b)
void SetHistoFileName(const TString &filename)
void SetHeClusterSize(Int_t i)
void SetMinCellE(Float_t e)
void SetMaxEtThirdJet(Float_t et)
void SetMinProbeJetAbsEta(Float_t e)
void SetMinEOverP(Float_t e)