CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/Calibration/HcalCalibAlgos/python/isoTrackCalib.py

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