CMS 3D CMS Logo

jetAnalyzer_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
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 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
7 jetDQMAnalyzerAk4CaloUncleaned = DQMEDAnalyzer('JetAnalyzer',
8  JetType = cms.string('calo'),#pf, calo or jpt
9  JetCorrections = cms.InputTag("dqmAk4CaloL2L3ResidualCorrector"),
10  jetsrc = cms.InputTag("ak4CaloJets"),
11  METCollectionLabel = cms.InputTag("caloMet"),
12  muonsrc = cms.InputTag("muons"),
13  l1algoname = cms.string("L1Tech_BPTX_plus_AND_minus.v0"),
14  filljetHighLevel =cms.bool(False),
15  fillsubstructure =cms.bool(False),
16  ptMinBoosted = cms.double(400.),
17  #
18  #
19  #
20  highPtJetTrigger = cms.PSet(
21  andOr = cms.bool( False ),
22  dbLabel = cms.string("JetMETDQMTrigger"),
23  hltInputTag = cms.InputTag( "TriggerResults::HLT" ),
24  hltPaths = cms.vstring( 'HLT_PFJet450_v*'),
25  andOrHlt = cms.bool( True ),
26  errorReplyHlt = cms.bool( False ),
27  ),
28  lowPtJetTrigger = cms.PSet(
29  andOr = cms.bool( False ),
30  dbLabel = cms.string("JetMETDQMTrigger"),
31  hltInputTag = cms.InputTag( "TriggerResults::HLT" ),
32  hltPaths = cms.vstring( 'HLT_PFJet80_v*'),
33  andOrHlt = cms.bool( True ),
34  errorReplyHlt = cms.bool( False ),
35  ),
36 
37  TriggerResultsLabel = cms.InputTag("TriggerResults::HLT"),
38  processname = cms.string("HLT"),
39 
40  #
41  # Jet-related
42  #
43 
44  JetCleaningFlag = cms.untracked.bool(False),
45 
46  runcosmics = cms.untracked.bool(False),
47 
48  #Cleanup parameters
49  CleaningParameters = cleaningParameters.clone(
50  bypassAllPVChecks = True,
51  ),
52 
53  #for JPT and CaloJetID
54  InputJetIDValueMap = cms.InputTag("ak4JetID"),
55  #options for Calo and JPT: LOOSE,LOOSE_AOD,TIGHT,MINIMAL
56  #for PFJets: LOOSE,TIGHT
57  JetIDQuality = cms.string("LOOSE"),
58  #options for Calo and JPT: PURE09,DQM09,CRAFT08
59  #for PFJets: FIRSTDATA
60  JetIDVersion = cms.string("PURE09"),
61  #
62  #actually done only for PFJets at the moment
63  InputMVAPUIDDiscriminant = cms.InputTag("pileupJetIdEvaluatorDQM","fullDiscriminant"),
64  InputCutPUIDDiscriminant = cms.InputTag("pileupJetIdEvaluatorDQM","cutbasedDiscriminant"),
65  InputMVAPUIDValue = cms.InputTag("pileupJetIdEvaluatorDQM","fullId"),
66  InputCutPUIDValue = cms.InputTag("pileupJetIdEvaluatorDQM","cutbasedId"),
67 
68  InputQGMultiplicity = cms.InputTag("QGTagger", "mult"),
69  InputQGLikelihood = cms.InputTag("QGTagger", "qgLikelihood"),
70  InputQGPtDToken = cms.InputTag("QGTagger", "ptD"),
71  InputQGAxis2 = cms.InputTag("QGTagger", "axis2"),
72 
73  fillCHShistos =cms.bool(False),
74  #
75  # For jetAnalysis
76  #
77  jetAnalysis = jetDQMParameters.clone(),
78 
79  #
80  # DCS
81  #
82  DCSFilterForJetMonitoring = cms.PSet(
83  DetectorTypes = cms.untracked.string("ecal:hbhe:hf"),
84  #DebugOn = cms.untracked.bool(True),
85  alwaysPass = cms.untracked.bool(False)
86  )
87 )
88 
89 jetDQMAnalyzerAk4CaloCleaned=jetDQMAnalyzerAk4CaloUncleaned.clone(
90  JetCleaningFlag = True,
91  filljetHighLevel = False,
92  CleaningParameters = cleaningParameters.clone(
93  bypassAllPVChecks = True,
94  ),
95  jetAnalysis=jetDQMParameters.clone(
96  ptThreshold = 20.,
97  asymmetryThirdJetCut = 30,
98  balanceThirdJetCut = 0.2,
99  )
100 )
101 
102 jetDQMAnalyzerAk4PFUncleaned=jetDQMAnalyzerAk4CaloUncleaned.clone(
103  CleaningParameters = cleaningParameters.clone(
104  bypassAllPVChecks = False,
105  ),
106  #for PFJets: LOOSE,TIGHT
107  JetIDQuality = cms.string("TIGHT"),
108  #options for Calo and JPT: PURE09,DQM09,CRAFT08
109  #for PFJets: RUN2ULCHS for 11_1_X onwards
110  JetIDVersion = cms.string("RUN2ULCHS"),
111  JetType = cms.string('pf'),#pf, calo or jpt
112  JetCorrections = cms.InputTag("dqmAk4PFL1FastL2L3ResidualCorrector"),
113  jetsrc = cms.InputTag("ak4PFJets"),
114  METCollectionLabel = cms.InputTag("pfMet"),
115  filljetHighLevel = cms.bool(False),
116  DCSFilterForJetMonitoring = cms.PSet(
117  DetectorTypes = cms.untracked.string("ecal:hbhe:hf:pixel:sistrip:es:muon"),
118  #DebugOn = cms.untracked.bool(True),
119  alwaysPass = cms.untracked.bool(False)
120  )
121 )
122 
123 
124 jetDQMAnalyzerAk4PFCleaned=jetDQMAnalyzerAk4PFUncleaned.clone(
125  JetCleaningFlag = True,
126  filljetHighLevel = False,
127  jetAnalysis=jetDQMParameters.clone(
128  ptThreshold = 20.,
129  asymmetryThirdJetCut = 30,
130  balanceThirdJetCut = 0.2,
131  ),
132  METCollectionLabel = "pfMet"
133 )
134 
135 jetDQMAnalyzerAk4PFCHSCleaned=jetDQMAnalyzerAk4PFCleaned.clone(
136  filljetHighLevel = True,
137  JetCorrections = "dqmAk4PFCHSL1FastL2L3ResidualCorrector",
138  jetsrc = "ak4PFJetsCHS",
139  METCollectionLabel = "pfMETT1",
140  InputMVAPUIDDiscriminant = "pileupJetIdEvaluatorCHSDQM:fullDiscriminant",
141  InputCutPUIDDiscriminant = "pileupJetIdEvaluatorCHSDQM:cutbasedDiscriminant",
142  InputMVAPUIDValue = "pileupJetIdEvaluatorCHSDQM:fullId",
143  InputCutPUIDValue = "pileupJetIdEvaluatorCHSDQM:cutbasedId",
144  fillCHShistos = True
145 )
146 
147 jetDQMAnalizerAk4PUPPICleaned=jetDQMAnalyzerAk4PFCleaned.clone(
148  JetType = cms.string('puppi'),
149  jetsrc = "ak4PFJetsPuppi",
150  METCollectionLabel = "pfMetPuppi",
151  JetCorrections = "ak4PFPuppiL1FastL2L3ResidualCorrector",
152  JetIDVersion = "RUN2ULPUPPI",
153  JetIDQuality = cms.string("TIGHT"),
154  fillCHShistos = True,
155 )
156 
157 jetDQMAnalyzerAk4PFCHSUncleanedMiniAOD=jetDQMAnalyzerAk4PFUncleaned.clone(
158  filljetHighLevel = True,
159  CleaningParameters = cleaningParameters.clone(
160  vertexCollection = "goodOfflinePrimaryVerticesDQMforMiniAOD" ,
161  ),
162  JetType = 'miniaod',#pf, calo or jpt
163  jetsrc = "slimmedJets",
164  METCollectionLabel = "slimmedMETs"
165 )
166 
167 jetDQMAnalyzerAk4PFCHSCleanedMiniAOD=jetDQMAnalyzerAk4PFCleaned.clone(
168  CleaningParameters = cleaningParameters.clone(
169  vertexCollection = "goodOfflinePrimaryVerticesDQMforMiniAOD"
170  ),
171  JetType = 'miniaod',#pf, calo or jpt
172  jetsrc = "slimmedJets"
173 )
174 
175 jetDQMAnalyzerAk8PFPUPPICleanedMiniAOD=jetDQMAnalyzerAk4PFCHSCleanedMiniAOD.clone(
176  jetsrc = "slimmedJetsAK8",
177  #for PUPPI jets: TIGHT
178  JetIDQuality = "TIGHT",
179  #for PUPPI jets: RUN2ULPUPPI from 11_1_X onwards
180  JetIDVersion = "RUN2ULPUPPI",
181  fillsubstructure =True
182 )
183 
184 jetDQMAnalyzerAk4PFCHSPuppiCleanedMiniAOD=jetDQMAnalyzerAk4PFCHSCleanedMiniAOD.clone(
185  JetType = 'miniaod',#pf, calo or jpt
186  jetsrc = "slimmedJetsPuppi",
187  #for PUPPI jets: TIGHT
188  JetIDQuality = "TIGHT",
189  #for PUPPI jets: RUN2ULPUPPI from 11_1_X onwards
190  JetIDVersion = "RUN2ULPUPPI"
191 )
192 
193 jetDQMAnalyzerIC5CaloHIUncleaned=jetDQMAnalyzerAk4CaloUncleaned.clone(
194  filljetHighLevel = True,
195  CleaningParameters = cleaningParameters.clone(
196  bypassAllPVChecks = False,
197  vertexCollection = "hiSelectedVertex",
198  ),
199  JetType = 'calo',#pf, calo or jpt
200  JetCorrections = "",# no jet correction available yet?
201  jetsrc = "iterativeConePu5CaloJets",
202  JetCleaningFlag = False,
203  runcosmics = True,
204  DCSFilterForJetMonitoring = dict(
205  DetectorTypes = "ecal:hbhe:hf:pixel:sistrip:es:muon",
206  #DebugOn = True,
207  alwaysPass = False
208  )
209 )
210 
211 jetDQMAnalyzerAkPU3Calo = DQMEDAnalyzer('JetAnalyzer_HeavyIons',
212  JetType = cms.untracked.string('calo'),
213  UEAlgo = cms.untracked.string('Pu'),
214  OutputFile = cms.untracked.string(''),
215  src = cms.InputTag("akPu3CaloJets"),
216  PFcands = cms.InputTag("particleFlowTmp"),
217  Background = cms.InputTag("voronoiBackgroundCalo"),
218  #srcRho = cms.InputTag("iterativeConePu5CaloJets","rho"),
219  centralitycollection = cms.InputTag("hiCentrality"),
220  centralitybincollection = cms.InputTag("centralityBin","HFtowers"),
221  JetCorrections = cms.string(""),
222  recoJetPtThreshold = cms.double(10),
223  RThreshold = cms.double(0.3),
224  reverseEnergyFractionThreshold = cms.double(0.5)
225 )
226 jetDQMAnalyzerAkPU4Calo = jetDQMAnalyzerAkPU3Calo.clone(src = "akPu4CaloJets")
227 jetDQMAnalyzerAkPU5Calo = jetDQMAnalyzerAkPU3Calo.clone(src = "akPu5CaloJets")
228 
229 jetDQMAnalyzerAkPU3PF = DQMEDAnalyzer('JetAnalyzer_HeavyIons',
230  JetType = cms.untracked.string('pf'),
231  UEAlgo = cms.untracked.string('Pu'),
232  OutputFile = cms.untracked.string(''),
233  src = cms.InputTag("akPu3PFJets"),
234  PFcands = cms.InputTag("particleFlowTmp"),
235  Background = cms.InputTag("voronoiBackgroundPF"),
236  centralitycollection = cms.InputTag("hiCentrality"),
237  centralitybincollection = cms.InputTag("centralityBin","HFtowers"),
238  JetCorrections = cms.string(""),
239  recoJetPtThreshold = cms.double(10),
240  RThreshold = cms.double(0.3),
241  reverseEnergyFractionThreshold = cms.double(0.5)
242 )
243 jetDQMAnalyzerAkPU4PF = jetDQMAnalyzerAkPU3PF.clone(src = "akPu4PFJets")
244 jetDQMAnalyzerAkPU5PF = jetDQMAnalyzerAkPU3PF.clone(src = "akPu5PFJets")
245 
246 jetDQMAnalyzerAkCs3PF = DQMEDAnalyzer('JetAnalyzer_HeavyIons',
247  JetType = cms.untracked.string('pf'),
248  UEAlgo = cms.untracked.string('Cs'),
249  OutputFile = cms.untracked.string(''),
250  src = cms.InputTag("akCs3PFJets"),
251  CScands = cms.InputTag("akCs3PFJets","pfParticlesCs"),
252  PFcands = cms.InputTag("particleFlowTmp"),
253  centralitycollection = cms.InputTag("hiCentrality"),
254  #centralitybincollection = cms.InputTag("centralityBin","HFtowers"),
255  JetCorrections = cms.string(""),
256  recoJetPtThreshold = cms.double(10),
257  RThreshold = cms.double(0.3),
258  reverseEnergyFractionThreshold = cms.double(0.5),
259  etaMap = cms.InputTag('hiFJRhoProducer','mapEtaEdges'),
260  rho = cms.InputTag('hiFJRhoProducer','mapToRho'),
261  rhom = cms.InputTag('hiFJRhoProducer','mapToRhoM')
262 )
263 
264 jetDQMAnalyzerAkCs4PF=jetDQMAnalyzerAkCs3PF.clone(src = "akCs4PFJets",
265  CScands = "akCs4PFJets:pfParticlesCs"
266 )
267 
268 
269 jetDQMMatchAkPu3CaloAkPu3PF = DQMEDAnalyzer('JetAnalyzer_HeavyIons_matching',
270  src_Jet1 = cms.InputTag("akPu3CaloJets"),
271  src_Jet2 = cms.InputTag("akPu3PFJets"),
272  Jet1 = cms.untracked.string("PuCalo"),
273  Jet2 = cms.untracked.string("PuPF"),
274  recoJetPtThreshold = cms.double(20.),
275  recoDelRMatch = cms.double(0.2),
276  recoJetEtaCut = cms.double(2.0)
277 )
278 
279 jetDQMMatchAkPu4CaloAkPu4PF = DQMEDAnalyzer('JetAnalyzer_HeavyIons_matching',
280  src_Jet1 = cms.InputTag("akPu4CaloJets"),
281  src_Jet2 = cms.InputTag("akPu4PFJets"),
282  Jet1 = cms.untracked.string("PuCalo"),
283  Jet2 = cms.untracked.string("PuPF"),
284  recoJetPtThreshold = cms.double(20.),
285  recoDelRMatch = cms.double(0.2),
286  recoJetEtaCut = cms.double(2.0)
287 )
288 
289 jetDQMMatchAkPu5CaloAkPu5PF = DQMEDAnalyzer('JetAnalyzer_HeavyIons_matching',
290  src_Jet1 = cms.InputTag("akPu5CaloJets"),
291  src_Jet2 = cms.InputTag("akPu5PFJets"),
292  Jet1 = cms.untracked.string("PuCalo"),
293  Jet2 = cms.untracked.string("PuPF"),
294  recoJetPtThreshold = cms.double(20.),
295  recoDelRMatch = cms.double(0.2),
296  recoJetEtaCut = cms.double(2.0)
297 )
298