CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
jetAnalyzer_cfi.py
Go to the documentation of this file.
2 
3 from DQMOffline.JetMET.jetDQMConfig_cff import * # parameters for all jet analyzers
4 from DQMOffline.JetMET.jetMETDQMCleanup_cff import * # parameters for event cleanup
5 
6 jetDQMAnalyzerAk4CaloUncleaned = cms.EDAnalyzer("JetAnalyzer",
7  JetType = cms.string('calo'),#pf, calo or jpt
8  JetCorrections = cms.InputTag("dqmAk4CaloL2L3ResidualCorrector"),
9  jetsrc = cms.InputTag("ak4CaloJets"),
10  METCollectionLabel = cms.InputTag("caloMet"),
11  muonsrc = cms.InputTag("muons"),
12  l1algoname = cms.string("L1Tech_BPTX_plus_AND_minus.v0"),
13  filljetHighLevel =cms.bool(False),
14  #
15  #
16  #
17  highPtJetTrigger = cms.PSet(
18  andOr = cms.bool( False ),
19  dbLabel = cms.string("JetMETDQMTrigger"),
20  hltInputTag = cms.InputTag( "TriggerResults::HLT" ),
21  hltDBKey = cms.string( 'jetmet_highptjet' ),
22  hltPaths = cms.vstring( 'HLT_Jet300_v','HLT_Jet300_v6','HLT_Jet300_v7','HLT_Jet300_v8' ),
23  andOrHlt = cms.bool( True ),
24  errorReplyHlt = cms.bool( False ),
25  ),
26  lowPtJetTrigger = cms.PSet(
27  andOr = cms.bool( False ),
28  dbLabel = cms.string("JetMETDQMTrigger"),
29  hltInputTag = cms.InputTag( "TriggerResults::HLT" ),
30  hltDBKey = cms.string( 'jetmet_lowptjet' ),
31  hltPaths = cms.vstring( 'HLT_Jet60_v','HLT_Jet60_v6','HLT_Jet60_v7','HLT_Jet60_v8' ),
32  andOrHlt = cms.bool( True ),
33  errorReplyHlt = cms.bool( False ),
34  ),
35 
36  TriggerResultsLabel = cms.InputTag("TriggerResults::HLT"),
37  processname = cms.string("HLT"),
38 
39  #
40  # Jet-related
41  #
42 
43  JetCleaningFlag = cms.untracked.bool(False),
44 
45  runcosmics = cms.untracked.bool(False),
46 
47  #Cleanup parameters
48  CleaningParameters = cleaningParameters.clone(
49  bypassAllPVChecks = cms.bool(True),
50  ),
51 
52  #for JPT and CaloJetID
53  InputJetIDValueMap = cms.InputTag("ak4JetID"),
54  #options for Calo and JPT: LOOSE,LOOSE_AOD,TIGHT,MINIMAL
55  #for PFJets: LOOSE,TIGHT
56  JetIDQuality = cms.string("LOOSE"),
57  #options for Calo and JPT: PURE09,DQM09,CRAFT08
58  #for PFJets: FIRSTDATA
59  JetIDVersion = cms.string("PURE09"),
60  #
61  #actually done only for PFJets at the moment
62  InputMVAPUIDDiscriminant = cms.InputTag("pileupJetIdEvaluatorDQM","fullDiscriminant"),
63  InputCutPUIDDiscriminant = cms.InputTag("pileupJetIdEvaluatorDQM","cutbasedDiscriminant"),
64  InputMVAPUIDValue = cms.InputTag("pileupJetIdEvaluatorDQM","fullId"),
65  InputCutPUIDValue = cms.InputTag("pileupJetIdEvaluatorDQM","cutbasedId"),
66 
67  InputQGMultiplicity = cms.InputTag("QGTagger", "mult"),
68  InputQGLikelihood = cms.InputTag("QGTagger", "qgLikelihood"),
69  InputQGPtDToken = cms.InputTag("QGTagger", "ptD"),
70  InputQGAxis2 = cms.InputTag("QGTagger", "axis2"),
71 
72  fillCHShistos =cms.bool(False),
73  #
74  # For jetAnalysis
75  #
76  jetAnalysis = jetDQMParameters.clone(),
77 
78  #
79  # DCS
80  #
81  DCSFilterForJetMonitoring = cms.PSet(
82  DetectorTypes = cms.untracked.string("ecal:hbhe:hf"),
83  #DebugOn = cms.untracked.bool(True),
84  alwaysPass = cms.untracked.bool(False)
85  )
86 )
87 
88 jetDQMAnalyzerAk4CaloCleaned=jetDQMAnalyzerAk4CaloUncleaned.clone(
89  JetCleaningFlag = cms.untracked.bool(True),
90  filljetHighLevel = cms.bool(False),
91  CleaningParameters = cleaningParameters.clone(
92  bypassAllPVChecks = cms.bool(False),
93  ),
94  jetAnalysis=jetDQMParameters.clone(
95  ptThreshold = cms.double(20.),
96  asymmetryThirdJetCut = cms.double(30),
97  balanceThirdJetCut = cms.double(0.2),
98  )
99 )
100 
101 jetDQMAnalyzerAk4PFUncleaned=jetDQMAnalyzerAk4CaloUncleaned.clone(
102  CleaningParameters = cleaningParameters.clone(
103  bypassAllPVChecks = cms.bool(False),
104  ),
105  #for PFJets: LOOSE,TIGHT
106  JetIDQuality = cms.string("LOOSE"),
107  #options for Calo and JPT: PURE09,DQM09,CRAFT08
108  #for PFJets: FIRSTDATA
109  JetIDVersion = cms.string("FIRSTDATA"),
110  JetType = cms.string('pf'),#pf, calo or jpt
111  JetCorrections = cms.InputTag("dqmAk4PFL1FastL2L3ResidualCorrector"),
112  jetsrc = cms.InputTag("ak4PFJets"),
113  METCollectionLabel = cms.InputTag("pfMet"),
114  filljetHighLevel = cms.bool(False),
115  DCSFilterForJetMonitoring = cms.PSet(
116  DetectorTypes = cms.untracked.string("ecal:hbhe:hf:pixel:sistrip:es:muon"),
117  #DebugOn = cms.untracked.bool(True),
118  alwaysPass = cms.untracked.bool(False)
119  )
120 )
121 
122 
123 jetDQMAnalyzerAk4PFCleaned=jetDQMAnalyzerAk4PFUncleaned.clone(
124  JetCleaningFlag = cms.untracked.bool(True),
125  filljetHighLevel = cms.bool(False),
126  jetAnalysis=jetDQMParameters.clone(
127  ptThreshold = cms.double(20.),
128  asymmetryThirdJetCut = cms.double(30),
129  balanceThirdJetCut = cms.double(0.2),
130  ),
131  METCollectionLabel = cms.InputTag("pfMet"),
132 )
133 
134 jetDQMAnalyzerAk4PFCHSCleaned=jetDQMAnalyzerAk4PFCleaned.clone(
135  filljetHighLevel =cms.bool(True),
136  JetCorrections = cms.InputTag("dqmAk4PFCHSL1FastL2L3ResidualCorrector"),
137  jetsrc = cms.InputTag("ak4PFJetsCHS"),
138  METCollectionLabel = cms.InputTag("pfMETT1"),
139  #actually done only for PFJets at the moment
140  InputMVAPUIDDiscriminant = cms.InputTag("pileupJetIdEvaluatorCHSDQM","fullDiscriminant"),
141  InputCutPUIDDiscriminant = cms.InputTag("pileupJetIdEvaluatorCHSDQM","cutbasedDiscriminant"),
142  InputMVAPUIDValue = cms.InputTag("pileupJetIdEvaluatorCHSDQM","fullId"),
143  InputCutPUIDValue = cms.InputTag("pileupJetIdEvaluatorCHSDQM","cutbasedId"),
144  fillCHShistos =cms.bool(True),
145 )
146 
147 jetDQMAnalyzerAk4PFCHSUncleanedMiniAOD=jetDQMAnalyzerAk4PFUncleaned.clone(
148  filljetHighLevel =cms.bool(True),
149  CleaningParameters = cleaningParameters.clone(
150  vertexCollection = cms.InputTag( "goodOfflinePrimaryVerticesDQMforMiniAOD" ),
151  ),
152  JetType = cms.string('miniaod'),#pf, calo or jpt
153  jetsrc = cms.InputTag("slimmedJets"),
154  METCollectionLabel = cms.InputTag("slimmedMETs"),
155 )
156 
157 jetDQMAnalyzerAk4PFCHSCleanedMiniAOD=jetDQMAnalyzerAk4PFCleaned.clone(
158  CleaningParameters = cleaningParameters.clone(
159  vertexCollection = cms.InputTag( "goodOfflinePrimaryVerticesDQMforMiniAOD" ),
160  ),
161  JetType = cms.string('miniaod'),#pf, calo or jpt
162  jetsrc = cms.InputTag("slimmedJets"),
163 )
164 
165 jetDQMAnalyzerIC5CaloHIUncleaned=jetDQMAnalyzerAk4CaloUncleaned.clone(
166  filljetHighLevel =cms.bool(True),
167  CleaningParameters = cleaningParameters.clone(
168  bypassAllPVChecks = cms.bool(False),
169  vertexCollection = cms.InputTag( "hiSelectedVertex" ),
170  ),
171  JetType = cms.string('calo'),#pf, calo or jpt
172  JetCorrections = cms.InputTag(""),# no jet correction available yet?
173  jetsrc = cms.InputTag("iterativeConePu5CaloJets"),
174  JetCleaningFlag = cms.untracked.bool(False),
175  runcosmics = cms.untracked.bool(True),
176  DCSFilterForJetMonitoring = cms.PSet(
177  DetectorTypes = cms.untracked.string("ecal:hbhe:hf:pixel:sistrip:es:muon"),
178  #DebugOn = cms.untracked.bool(True),
179  alwaysPass = cms.untracked.bool(False)
180  )
181 )
182 
183 
184 jetDQMAnalyzerAkVs3PF = cms.EDAnalyzer("JetAnalyzer_HeavyIons",
185  JetType = cms.untracked.string('pf'),
186  UEAlgo = cms.untracked.string('Vs'),
187  OutputFile = cms.untracked.string(''),
188  src = cms.InputTag("akVs3PFJets"),
189  PFcands = cms.InputTag("particleFlowTmp"),
190  Background = cms.InputTag("voronoiBackgroundPF"),
191  centrality = cms.InputTag("hiCentrality"),
192  JetCorrections = cms.string(""),
193  recoJetPtThreshold = cms.double(10),
194  RThreshold = cms.double(0.3),
195  reverseEnergyFractionThreshold = cms.double(0.5)
196 )
197 jetDQMAnalyzerAkPU3Calo = cms.EDAnalyzer("JetAnalyzer_HeavyIons",
198  JetType = cms.untracked.string('calo'),
199  UEAlgo = cms.untracked.string('Pu'),
200  OutputFile = cms.untracked.string(''),
201  src = cms.InputTag("akPu3CaloJets"),
202  PFcands = cms.InputTag("particleFlowTmp"),
203  Background = cms.InputTag("voronoiBackgroundCalo"),
204  #srcRho = cms.InputTag("iterativeConePu5CaloJets","rho"),
205  centrality = cms.InputTag("hiCentrality"),
206  JetCorrections = cms.string(""),
207  recoJetPtThreshold = cms.double(10),
208  RThreshold = cms.double(0.3),
209  reverseEnergyFractionThreshold = cms.double(0.5)
210 )
211 
212 jetDQMAnalyzerAkPU4Calo = cms.EDAnalyzer("JetAnalyzer_HeavyIons",
213  JetType = cms.untracked.string('calo'),
214  UEAlgo = cms.untracked.string('Pu'),
215  OutputFile = cms.untracked.string(''),
216  src = cms.InputTag("akPu4CaloJets"),
217  PFcands = cms.InputTag("particleFlowTmp"),
218  Background = cms.InputTag("voronoiBackgroundCalo"),
219  centrality = cms.InputTag("hiCentrality"),
220  JetCorrections = cms.string(""),
221  recoJetPtThreshold = cms.double(10),
222  RThreshold = cms.double(0.3),
223  reverseEnergyFractionThreshold = cms.double(0.5)
224 )
225 
226 jetDQMAnalyzerAkPU5Calo = cms.EDAnalyzer("JetAnalyzer_HeavyIons",
227  JetType = cms.untracked.string('calo'),
228  UEAlgo = cms.untracked.string('Pu'),
229  OutputFile = cms.untracked.string(''),
230  src = cms.InputTag("akPu5CaloJets"),
231  PFcands = cms.InputTag("particleFlowTmp"),
232  Background = cms.InputTag("voronoiBackgroundCalo"),
233  centrality = cms.InputTag("hiCentrality"),
234  JetCorrections = cms.string(""),
235  recoJetPtThreshold = cms.double(10),
236  RThreshold = cms.double(0.3),
237  reverseEnergyFractionThreshold = cms.double(0.5)
238 )
239 
240 jetDQMAnalyzerAkPU3PF = cms.EDAnalyzer("JetAnalyzer_HeavyIons",
241  JetType = cms.untracked.string('pf'),
242  UEAlgo = cms.untracked.string('Pu'),
243  OutputFile = cms.untracked.string(''),
244  src = cms.InputTag("akPu3PFJets"),
245  PFcands = cms.InputTag("particleFlowTmp"),
246  Background = cms.InputTag("voronoiBackgroundPF"),
247  centrality = cms.InputTag("hiCentrality"),
248  JetCorrections = cms.string(""),
249  recoJetPtThreshold = cms.double(10),
250  RThreshold = cms.double(0.3),
251  reverseEnergyFractionThreshold = cms.double(0.5)
252 )
253 
254 jetDQMAnalyzerAkPU4PF = cms.EDAnalyzer("JetAnalyzer_HeavyIons",
255  JetType = cms.untracked.string('pf'),
256  UEAlgo = cms.untracked.string('Pu'),
257  OutputFile = cms.untracked.string(''),
258  src = cms.InputTag("akPu4PFJets"),
259  PFcands = cms.InputTag("particleFlowTmp"),
260  Background = cms.InputTag("voronoiBackgroundPF"),
261  centrality = cms.InputTag("hiCentrality"),
262  JetCorrections = cms.string(""),
263  recoJetPtThreshold = cms.double(10),
264  RThreshold = cms.double(0.3),
265  reverseEnergyFractionThreshold = cms.double(0.5)
266 )
267 
268 jetDQMAnalyzerAkPU5PF = cms.EDAnalyzer("JetAnalyzer_HeavyIons",
269  JetType = cms.untracked.string('pf'),
270  UEAlgo = cms.untracked.string('Pu'),
271  OutputFile = cms.untracked.string(''),
272  src = cms.InputTag("akPu5PFJets"),
273  PFcands = cms.InputTag("particleFlowTmp"),
274  Background = cms.InputTag("voronoiBackgroundPF"),
275  centrality = cms.InputTag("hiCentrality"),
276  JetCorrections = cms.string(""),
277  recoJetPtThreshold = cms.double(10),
278  RThreshold = cms.double(0.3),
279  reverseEnergyFractionThreshold = cms.double(0.5)
280 )
281 
282 jetDQMAnalyzerAkVs2Calo = cms.EDAnalyzer("JetAnalyzer_HeavyIons",
283  JetType = cms.untracked.string('calo'),
284  UEAlgo = cms.untracked.string('Vs'),
285  OutputFile = cms.untracked.string(''),
286  src = cms.InputTag("akVs2CaloJets"),
287  PFcands = cms.InputTag("particleFlowTmp"),
288  Background = cms.InputTag("voronoiBackgroundCalo"),
289  centrality = cms.InputTag("hiCentrality"),
290  JetCorrections = cms.string(""),
291  recoJetPtThreshold = cms.double(10),
292  RThreshold = cms.double(0.3),
293  reverseEnergyFractionThreshold = cms.double(0.5)
294 )
295 
296 jetDQMAnalyzerAkVs3Calo = cms.EDAnalyzer("JetAnalyzer_HeavyIons",
297  JetType = cms.untracked.string('calo'),
298  UEAlgo = cms.untracked.string('Vs'),
299  OutputFile = cms.untracked.string(''),
300  src = cms.InputTag("akVs3CaloJets"),
301  PFcands = cms.InputTag("particleFlowTmp"),
302  Background = cms.InputTag("voronoiBackgroundCalo"),
303  centrality = cms.InputTag("hiCentrality"),
304  JetCorrections = cms.string(""),
305  recoJetPtThreshold = cms.double(10),
306  RThreshold = cms.double(0.3),
307  reverseEnergyFractionThreshold = cms.double(0.5)
308 )
309 
310 jetDQMAnalyzerAkVs4Calo = cms.EDAnalyzer("JetAnalyzer_HeavyIons",
311  JetType = cms.untracked.string('calo'),
312  UEAlgo = cms.untracked.string('Vs'),
313  OutputFile = cms.untracked.string(''),
314  src = cms.InputTag("akVs4CaloJets"),
315  PFcands = cms.InputTag("particleFlowTmp"),
316  Background = cms.InputTag("voronoiBackgroundCalo"),
317  centrality = cms.InputTag("hiCentrality"),
318  JetCorrections = cms.string(""),
319  recoJetPtThreshold = cms.double(10),
320  RThreshold = cms.double(0.3),
321  reverseEnergyFractionThreshold = cms.double(0.5)
322 )
323 
324 jetDQMAnalyzerAkVs5Calo = cms.EDAnalyzer("JetAnalyzer_HeavyIons",
325  JetType = cms.untracked.string('calo'),
326  UEAlgo = cms.untracked.string('Vs'),
327  OutputFile = cms.untracked.string(''),
328  src = cms.InputTag("akVs5CaloJets"),
329  PFcands = cms.InputTag("particleFlowTmp"),
330  Background = cms.InputTag("voronoiBackgroundCalo"),
331  centrality = cms.InputTag("hiCentrality"),
332  JetCorrections = cms.string(""),
333  recoJetPtThreshold = cms.double(10),
334  RThreshold = cms.double(0.3),
335  reverseEnergyFractionThreshold = cms.double(0.5)
336 )
337 '''
338 jetDQMAnalyzerAkVs6Calo = cms.EDAnalyzer("JetAnalyzer_HeavyIons",
339  JetType = cms.untracked.string('calo'),
340  UEAlgo = cms.untracked.string('Vs'),
341  OutputFile = cms.untracked.string(''),
342  src = cms.InputTag("akVs6CaloJets"),
343  PFcands = cms.InputTag("particleFlowTmp"),
344  Background = cms.InputTag("voronoiBackgroundPF"),
345  #srcRho = cms.InputTag("iterativeConePu5CaloJets","rho"),
346  centrality = cms.InputTag("hiCentrality"),
347  JetCorrections = cms.string(""),
348  recoJetPtThreshold = cms.double(10),
349  RThreshold = cms.double(0.3),
350  reverseEnergyFractionThreshold = cms.double(0.5)
351 )
352 
353 jetDQMAnalyzerAkVs7Calo = cms.EDAnalyzer("JetAnalyzer_HeavyIons",
354  JetType = cms.untracked.string('calo'),
355  UEAlgo = cms.untracked.string('Vs'),
356  OutputFile = cms.untracked.string(''),
357  src = cms.InputTag("akVs7CaloJets"),
358  PFcands = cms.InputTag("particleFlowTmp"),
359  Background = cms.InputTag("voronoiBackgroundPF"),
360  #srcRho = cms.InputTag("iterativeConePu5CaloJets","rho"),
361  centrality = cms.InputTag("hiCentrality"),
362  JetCorrections = cms.string(""),
363  recoJetPtThreshold = cms.double(10),
364  RThreshold = cms.double(0.3),
365  reverseEnergyFractionThreshold = cms.double(0.5)
366 )
367 
368 jetDQMAnalyzerAkVs2PF = cms.EDAnalyzer("JetAnalyzer_HeavyIons",
369  JetType = cms.untracked.string('pf'),
370  UEAlgo = cms.untracked.string('Vs'),
371  OutputFile = cms.untracked.string(''),
372  src = cms.InputTag("akVs2PFJets"),
373  PFcands = cms.InputTag("particleFlowTmp"),
374  Background = cms.InputTag("voronoiBackgroundPF"),
375  #srcRho = cms.InputTag("iterativeConePu5CaloJets","rho"),
376  centrality = cms.InputTag("hiCentrality"),
377  JetCorrections = cms.string(""),
378  recoJetPtThreshold = cms.double(10),
379  RThreshold = cms.double(0.3),
380  reverseEnergyFractionThreshold = cms.double(0.5)
381 )
382 '''
383 
384 jetDQMAnalyzerAkVs3PF = cms.EDAnalyzer("JetAnalyzer_HeavyIons",
385  JetType = cms.untracked.string('pf'),
386  UEAlgo = cms.untracked.string('Vs'),
387  OutputFile = cms.untracked.string(''),
388  src = cms.InputTag("akVs3PFJets"),
389  PFcands = cms.InputTag("particleFlowTmp"),
390  Background = cms.InputTag("voronoiBackgroundPF"),
391  #srcRho = cms.InputTag("akVs3PFJets","rho"),
392  centrality = cms.InputTag("hiCentrality"),
393  JetCorrections = cms.string(""),
394  recoJetPtThreshold = cms.double(10),
395  RThreshold = cms.double(0.3),
396  reverseEnergyFractionThreshold = cms.double(0.5)
397 )
398 
399 
400 jetDQMAnalyzerAkVs4PF = cms.EDAnalyzer("JetAnalyzer_HeavyIons",
401  JetType = cms.untracked.string('pf'),
402  UEAlgo = cms.untracked.string('Vs'),
403  OutputFile = cms.untracked.string(''),
404  src = cms.InputTag("akVs4PFJets"),
405  PFcands = cms.InputTag("particleFlowTmp"),
406  Background = cms.InputTag("voronoiBackgroundPF"),
407  #srcRho = cms.InputTag("iterativeConePu5CaloJets","rho"),
408  centrality = cms.InputTag("hiCentrality"),
409  JetCorrections = cms.string(""),
410  recoJetPtThreshold = cms.double(10),
411  RThreshold = cms.double(0.3),
412  reverseEnergyFractionThreshold = cms.double(0.5)
413 )
414 
415 jetDQMAnalyzerAkVs5PF = cms.EDAnalyzer("JetAnalyzer_HeavyIons",
416  JetType = cms.untracked.string('pf'),
417  UEAlgo = cms.untracked.string('Vs'),
418  OutputFile = cms.untracked.string(''),
419  src = cms.InputTag("akVs5PFJets"),
420  PFcands = cms.InputTag("particleFlowTmp"),
421  Background = cms.InputTag("voronoiBackgroundPF"),
422  #srcRho = cms.InputTag("iterativeConePu5CaloJets","rho"),
423  centrality = cms.InputTag("hiCentrality"),
424  JetCorrections = cms.string(""),
425  recoJetPtThreshold = cms.double(10),
426  RThreshold = cms.double(0.3),
427  reverseEnergyFractionThreshold = cms.double(0.5)
428 )
429 '''
430 jetDQMAnalyzerAkVs6PF = cms.EDAnalyzer("JetAnalyzer_HeavyIons",
431  JetType = cms.untracked.string('pf'),
432  UEAlgo = cms.untracked.string('Vs'),
433  OutputFile = cms.untracked.string(''),
434  src = cms.InputTag("akVs6PFJets"),
435  PFcands = cms.InputTag("particleFlowTmp"),
436  Background = cms.InputTag("voronoiBackgroundPF"),
437  #srcRho = cms.InputTag("iterativeConePu5CaloJets","rho"),
438  centrality = cms.InputTag("hiCentrality"),
439  JetCorrections = cms.string(""),
440  recoJetPtThreshold = cms.double(10),
441  RThreshold = cms.double(0.3),
442  reverseEnergyFractionThreshold = cms.double(0.5)
443 )
444 
445 jetDQMAnalyzerAkVs7PF = cms.EDAnalyzer("JetAnalyzer_HeavyIons",
446  JetType = cms.untracked.string('pf'),
447  UEAlgo = cms.untracked.string('Vs'),
448  OutputFile = cms.untracked.string(''),
449  src = cms.InputTag("akVs7PFJets"),
450  PFcands = cms.InputTag("particleFlowTmp"),
451  Background = cms.InputTag("voronoiBackgroundPF"),
452  #srcRho = cms.InputTag("iterativeConePu5CaloJets","rho"),
453  centrality = cms.InputTag("hiCentrality"),
454  JetCorrections = cms.string(""),
455  recoJetPtThreshold = cms.double(10),
456  RThreshold = cms.double(0.3),
457  reverseEnergyFractionThreshold = cms.double(0.5)
458 )
459 '''