75 mInputFileList(conf.getUntrackedParameter<
string>(
"inputFileList")),
78 mCalibType(conf.getUntrackedParameter<
string>(
"calibType")),
79 mCalibMethod(conf.getUntrackedParameter<
string>(
"calibMethod")),
80 mMinTargetE(conf.getUntrackedParameter<double>(
"minTargetE")),
81 mMaxTargetE(conf.getUntrackedParameter<double>(
"maxTargetE")),
82 mMinCellE(conf.getUntrackedParameter<double>(
"minCellE")),
83 mMinEOverP(conf.getUntrackedParameter<double>(
"minEOverP")),
84 mMaxEOverP(conf.getUntrackedParameter<double>(
"maxEOverP")),
85 mMaxTrkEmE(conf.getUntrackedParameter<double>(
"maxTrkEmE")),
86 mMaxEtThirdJet(conf.getUntrackedParameter<double>(
"maxEtThirdJet")),
87 mMinDPhiDiJets(conf.getUntrackedParameter<double>(
"minDPhiDiJets")),
88 mSumDepths(conf.getUntrackedParameter<bool>(
"sumDepths")),
89 mSumSmallDepths(conf.getUntrackedParameter<bool>(
"sumSmallDepths")),
90 mCombinePhi (conf.getUntrackedParameter<bool>(
"combinePhi")),
91 mHbClusterSize(conf.getUntrackedParameter<int>(
"hbClusterSize")),
92 mHeClusterSize(conf.getUntrackedParameter<int>(
"heClusterSize")),
94 mUseConeClustering(conf.getUntrackedParameter<bool>(
"useConeClustering")),
95 mMaxConeDist(conf.getUntrackedParameter<double>(
"maxConeDist")),
97 mCalibAbsIEtaMax(conf.getUntrackedParameter<int>(
"calibAbsIEtaMax")),
98 mCalibAbsIEtaMin(conf.getUntrackedParameter<int>(
"calibAbsIEtaMin")),
99 mMaxProbeJetEmFrac(conf.getUntrackedParameter<double>(
"maxProbeJetEmFrac")),
100 mMaxTagJetEmFrac(conf.getUntrackedParameter<double>(
"maxTagJetEmFrac")),
101 mMaxTagJetAbsEta(conf.getUntrackedParameter<double>(
"maxTagJetAbsEta")),
102 mMinTagJetEt(conf.getUntrackedParameter<double>(
"minTagJetEt")),
103 mMinProbeJetAbsEta(conf.getUntrackedParameter<double>(
"minProbeJetAbsEta")),
104 mPhiSymCorFileName(conf.getUntrackedParameter<
string>(
"phiSymCorFileName")),
105 mApplyPhiSymCorFlag(conf.getUntrackedParameter<bool>(
"applyPhiSymCorFlag")),
106 mOutputCorCoefFileName(conf.getUntrackedParameter<
string>(
"outputCorCoefFileName")),
107 mHistoFileName(conf.getUntrackedParameter<
string>(
"histoFileName"))
154 cout <<
"Please select ISO_TRACK or DI_JET in the python file." << endl;
160 cout <<
"Supported methods for IsoTrack calibration are: L3, MATRIX_INV_OF_ETA_AVE, L3_AND_MTRX_INV" << endl;
161 cout <<
"For DiJets the supported method is L3" << endl;
166 cout <<
"\n\nDiJet calibration can use only the L3 method. Please change the python file." << endl;
171 cout <<
"\n\nInvalid ABS(iEta) calibration range. Check calibAbsIEtaMin and calibAbsIEtaMax in the python file." << endl;
221 inputFileList.open(files.Data());
224 while (!inputFileList.eof()) {
227 if (!fileName.BeginsWith(
"#") && !fileName.Contains(
" ") && fileName!=
"")
228 inputFiles.push_back(fileName);
230 inputFileList.close();
232 std::cout <<
"\nInput files for processing:" << std::endl;
233 for (std::vector<TString>::iterator it=inputFiles.begin(); it!=inputFiles.end(); ++it) {
234 std::cout <<
"file: " << it->Data() << std::endl;
239 TChain* fChain =
new TChain(
"hcalCalibTree");
241 for (std::vector<TString>::iterator f_it=inputFiles.begin();f_it!=inputFiles.end(); ++f_it) {
242 fChain->Add(f_it->Data());
246 fChain->Process(calibrator);
248 if (fChain)
delete fChain;
void SetMaxTagJetAbsEta(Float_t e)
void SetHbClusterSize(Int_t i)
void SetMinTagJetEt(Float_t e)
void SetOutputCorCoefFileName(TString filename)
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 SetMinDPhiDiJets(Float_t dphi)
void SetSumDepthsFlag(Bool_t b)
std::string mHistoFileName
void SetUseConeClustering(Bool_t b)
double mMaxProbeJetEmFrac
const HcalTopology * mTheHcalTopology
void SetHistoFileName(TString filename)
void SetMinTargetE(Float_t e)
void SetCalibAbsIEtaMax(Int_t i)
void SetPhiSymCorFileName(TString filename)
std::string mInputFileList
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)
T const * product() const
void SetCalibAbsIEtaMin(Int_t i)
void SetCalibMethod(TString s)
std::string mOutputCorCoefFileName
void SetCombinePhiFlag(Bool_t b)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
void SetCalibType(TString s)
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)