CMS 3D CMS Logo

diJetCalib.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 process = cms.Process("hcalCalib")
4 
5 process.load("Configuration.StandardSequences.GeometryHCAL_cff")
6 
7 # no CMS input files
8 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(0) )
9 process.source = cms.Source("EmptySource")
10 
11 
12 process.hcalCalib = cms.EDAnalyzer("HcalCalibrator",
13 
14 
15 
16 #-------- File containing the list of the input root files
17  inputFileList = cms.untracked.string("test/inputFiles_DiJetCalib.list"),
18 
19 #-------- calibration type: ISO_TRACK or DI_JET
20  calibType = cms.untracked.string("DI_JET"),
21 
22 #-------- calibration method: L3, MATRIX_INV_OF_ETA_AVE, L3_AND_MTRX_INV
23 #-------- for diJets use only L3!!!
24  calibMethod = cms.untracked.string("L3"),
25 
26 # --------min target energy: ref jet (had) energy, or isotrack momentum
27  minTargetE = cms.untracked.double(30.0),
28 
29 # ------- max target energy: ref jet (had) energy, or isotrack momentum
30  maxTargetE = cms.untracked.double(9999.0),
31 
32 # ------- min energy in the cell
33  minCellE = cms.untracked.double(0.0),
34 
35 # ------- minimum e/p to accept an IsoTrack for calibration (not used for DiJets)
36  minEOverP = cms.untracked.double(0.2),
37 
38 # ------- maximum e/p to accept an IsoTrack for calibration (not used for DiJets)
39  maxEOverP = cms.untracked.double(999.0),
40 
41 # ------- MIP cut: maximum EM energy associated with the track (not used for DiJEts)
42  maxTrkEmE = cms.untracked.double(1.0),
43 
44 #--------Maximum Et allowed for third jet in the event (affects only DiJets)
45  maxEtThirdJet = cms.untracked.double(5.0),
46 
47 # ------- Minimum deltaPhi for the dijets in degrees: 0-180 (affects only DiJets)
48  minDPhiDiJets = cms.untracked.double(150.0),
49 
50 # ------- logical flag to sum depths in HCAL
51  sumDepths = cms.untracked.bool(True),
52 
53 # ------- logical flag to combine phi in HCAL
54  combinePhi = cms.untracked.bool(True),
55 
56 # ------- logical flag to sum depths 1,2 in HB for towers 15,16.
57 # --------If sumDepths="true" this flag has no effect
58  sumSmallDepths = cms.untracked.bool(True),
59 
60 # ------- cluster size in HB for isotracks: 3 or 5 (means 3x3, 5x5)
61  hbClusterSize = cms.untracked.int32(3),
62 
63 # ------- cluster size in HE for isotracks: 3 or 5 (means 3x3, 5x5)
64  heClusterSize = cms.untracked.int32(5),
65 
66 # -------- flag to use cone clustering -> overrides the above cluster sizes
67 # -------- and uses cone size as specified below
68  useConeClustering = cms.untracked.bool(True),
69 
70 # -------- size of the cone (when useConeClustering=True)
71  maxConeDist = cms.untracked.double(26.2),
72 
73 # ------- max ABS(iEta) used in the calibration: for matrix inversion sets the range for performing inversion
74 # ------- For all methods: controls the range of correction factors are saved in the output file
75  calibAbsIEtaMax = cms.untracked.int32(41),
76 
77 # ------- min ABS(iEta) used in the calibration: for matrix inversion sets the range for performing inversion
78 # ------- For all methods: controls the range of correction factors are saved in the output file
79  calibAbsIEtaMin = cms.untracked.int32(21),
80 
81 # ------- max EmFraction of probe jet allowed (does not affect isotracks)
82  maxProbeJetEmFrac = cms.untracked.double(0.1),
83 
84 # ------- max EmFraction of tag jet allowed (does not affect isotracks)
85  maxTagJetEmFrac = cms.untracked.double(1.0),
86 
87 # ------- max abs(eta) of tag jet allowed (does not affect isotracks)
88  maxTagJetAbsEta = cms.untracked.double(1.0),
89 
90 # ------- min Et of tag jet allowed (does not affect isotracks)
91  minTagJetEt = cms.untracked.double(30.0),
92 
93 # ------- min abs(eta) of probe jet allowed (does not affect isotracks)
94  minProbeJetAbsEta = cms.untracked.double(1.4),
95 
96 # ------- file containing the phi symmetry corrections (to apply on the fly in isoTrack calibration)
97 # ------- USER PROVIDED!
98  phiSymCorFileName = cms.untracked.string("phiSymCor.txt"),
99 
100 # ------- Flag to read phi symmetry corrections and apply on the fly (can be used for isoTrack)
101 # ------- Set to false if already applied in Analyzer
102  applyPhiSymCorFlag = cms.untracked.bool(False),
103 
104 # ------- output file with correction factors
105  outputCorCoefFileName = cms.untracked.string("calibConst_DiJet.txt"),
106 
107 # ------- output file with some hisograms
108  histoFileName = cms.untracked.string("histoFile.root")
109 
110 )
111 
112 
113 process.p = cms.Path(process.hcalCalib)