00001 import FWCore.ParameterSet.Config as cms 00002 00003 process = cms.Process("hcalCalib") 00004 00005 process.load("Configuration.StandardSequences.GeometryHCAL_cff") 00006 00007 # no CMS input files 00008 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(0) ) 00009 process.source = cms.Source("EmptySource") 00010 00011 00012 process.hcalCalib = cms.EDAnalyzer("HcalCalibrator", 00013 00014 00015 00016 #-------- File containing the list of the input root files 00017 inputFileList = cms.untracked.string("test/inputFiles_DiJetCalib.list"), 00018 00019 #-------- calibration type: ISO_TRACK or DI_JET 00020 calibType = cms.untracked.string("DI_JET"), 00021 00022 #-------- calibration method: L3, MATRIX_INV_OF_ETA_AVE, L3_AND_MTRX_INV 00023 #-------- for diJets use only L3!!! 00024 calibMethod = cms.untracked.string("L3"), 00025 00026 # --------min target energy: ref jet (had) energy, or isotrack momentum 00027 minTargetE = cms.untracked.double(30.0), 00028 00029 # ------- max target energy: ref jet (had) energy, or isotrack momentum 00030 maxTargetE = cms.untracked.double(9999.0), 00031 00032 # ------- min energy in the cell 00033 minCellE = cms.untracked.double(0.0), 00034 00035 # ------- minimum e/p to accept an IsoTrack for calibration (not used for DiJets) 00036 minEOverP = cms.untracked.double(0.2), 00037 00038 # ------- maximum e/p to accept an IsoTrack for calibration (not used for DiJets) 00039 maxEOverP = cms.untracked.double(999.0), 00040 00041 # ------- MIP cut: maximum EM energy associated with the track (not used for DiJEts) 00042 maxTrkEmE = cms.untracked.double(1.0), 00043 00044 #--------Maximum Et allowed for third jet in the event (affects only DiJets) 00045 maxEtThirdJet = cms.untracked.double(5.0), 00046 00047 # ------- Minimum deltaPhi for the dijets in degrees: 0-180 (affects only DiJets) 00048 minDPhiDiJets = cms.untracked.double(150.0), 00049 00050 # ------- logical flag to sum depths in HCAL 00051 sumDepths = cms.untracked.bool(True), 00052 00053 # ------- logical flag to combine phi in HCAL 00054 combinePhi = cms.untracked.bool(True), 00055 00056 # ------- logical flag to sum depths 1,2 in HB for towers 15,16. 00057 # --------If sumDepths="true" this flag has no effect 00058 sumSmallDepths = cms.untracked.bool(True), 00059 00060 # ------- cluster size in HB for isotracks: 3 or 5 (means 3x3, 5x5) 00061 hbClusterSize = cms.untracked.int32(3), 00062 00063 # ------- cluster size in HE for isotracks: 3 or 5 (means 3x3, 5x5) 00064 heClusterSize = cms.untracked.int32(5), 00065 00066 # -------- flag to use cone clustering -> overrides the above cluster sizes 00067 # -------- and uses cone size as specified below 00068 useConeClustering = cms.untracked.bool(True), 00069 00070 # -------- size of the cone (when useConeClustering=True) 00071 maxConeDist = cms.untracked.double(26.2), 00072 00073 # ------- max ABS(iEta) used in the calibration: for matrix inversion sets the range for performing inversion 00074 # ------- For all methods: controls the range of correction factors are saved in the output file 00075 calibAbsIEtaMax = cms.untracked.int32(41), 00076 00077 # ------- min ABS(iEta) used in the calibration: for matrix inversion sets the range for performing inversion 00078 # ------- For all methods: controls the range of correction factors are saved in the output file 00079 calibAbsIEtaMin = cms.untracked.int32(21), 00080 00081 # ------- max EmFraction of probe jet allowed (does not affect isotracks) 00082 maxProbeJetEmFrac = cms.untracked.double(0.1), 00083 00084 # ------- max EmFraction of tag jet allowed (does not affect isotracks) 00085 maxTagJetEmFrac = cms.untracked.double(1.0), 00086 00087 # ------- max abs(eta) of tag jet allowed (does not affect isotracks) 00088 maxTagJetAbsEta = cms.untracked.double(1.0), 00089 00090 # ------- min Et of tag jet allowed (does not affect isotracks) 00091 minTagJetEt = cms.untracked.double(30.0), 00092 00093 # ------- min abs(eta) of probe jet allowed (does not affect isotracks) 00094 minProbeJetAbsEta = cms.untracked.double(1.4), 00095 00096 # ------- file containing the phi symmetry corrections (to apply on the fly in isoTrack calibration) 00097 # ------- USER PROVIDED! 00098 phiSymCorFileName = cms.untracked.string("phiSymCor.txt"), 00099 00100 # ------- Flag to read phi symmetry corrections and apply on the fly (can be used for isoTrack) 00101 # ------- Set to false if already applied in Analyzer 00102 applyPhiSymCorFlag = cms.untracked.bool(False), 00103 00104 # ------- output file with correction factors 00105 outputCorCoefFileName = cms.untracked.string("calibConst_DiJet.txt"), 00106 00107 # ------- output file with some hisograms 00108 histoFileName = cms.untracked.string("histoFile.root") 00109 00110 ) 00111 00112 00113 process.p = cms.Path(process.hcalCalib)