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 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  fillsubstructure =cms.bool(False),
15  ptMinBoosted = cms.double(400.),
16  #
17  #
18  #
19  highPtJetTrigger = cms.PSet(
20  andOr = cms.bool( False ),
21  dbLabel = cms.string("JetMETDQMTrigger"),
22  hltInputTag = cms.InputTag( "TriggerResults::HLT" ),
23  hltPaths = cms.vstring( 'HLT_PFJet450_v*'),
24  andOrHlt = cms.bool( True ),
25  errorReplyHlt = cms.bool( False ),
26  ),
27  lowPtJetTrigger = cms.PSet(
28  andOr = cms.bool( False ),
29  dbLabel = cms.string("JetMETDQMTrigger"),
30  hltInputTag = cms.InputTag( "TriggerResults::HLT" ),
31  hltPaths = cms.vstring( 'HLT_PFJet80_v*'),
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(True),
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 or RUNIISTARTUP (suitable for RECO beyond 7_2_X) or WINTER16 (for 8_0_X onwards)
109  JetIDVersion = cms.string("WINTER16"),
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  InputMVAPUIDDiscriminant = cms.InputTag("pileupJetIdEvaluatorCHSDQM","fullDiscriminant"),
140  InputCutPUIDDiscriminant = cms.InputTag("pileupJetIdEvaluatorCHSDQM","cutbasedDiscriminant"),
141  InputMVAPUIDValue = cms.InputTag("pileupJetIdEvaluatorCHSDQM","fullId"),
142  InputCutPUIDValue = cms.InputTag("pileupJetIdEvaluatorCHSDQM","cutbasedId"),
143  fillCHShistos =cms.bool(True),
144 )
145 
146 jetDQMAnalyzerAk4PFCHSUncleanedMiniAOD=jetDQMAnalyzerAk4PFUncleaned.clone(
147  filljetHighLevel =cms.bool(True),
148  CleaningParameters = cleaningParameters.clone(
149  vertexCollection = cms.InputTag( "goodOfflinePrimaryVerticesDQMforMiniAOD" ),
150  ),
151  JetType = cms.string('miniaod'),#pf, calo or jpt
152  jetsrc = cms.InputTag("slimmedJets"),
153  METCollectionLabel = cms.InputTag("slimmedMETs"),
154 )
155 
156 jetDQMAnalyzerAk4PFCHSCleanedMiniAOD=jetDQMAnalyzerAk4PFCleaned.clone(
157  CleaningParameters = cleaningParameters.clone(
158  vertexCollection = cms.InputTag( "goodOfflinePrimaryVerticesDQMforMiniAOD" ),
159  ),
160  JetType = cms.string('miniaod'),#pf, calo or jpt
161  jetsrc = cms.InputTag("slimmedJets"),
162 )
163 
164 jetDQMAnalyzerAk8PFPUPPICleanedMiniAOD=jetDQMAnalyzerAk4PFCHSCleanedMiniAOD.clone(
165  jetsrc = cms.InputTag("slimmedJetsAK8"),
166  fillsubstructure =cms.bool(True),
167 )
168 
169 jetDQMAnalyzerAk4PFCHSPuppiCleanedMiniAOD=jetDQMAnalyzerAk4PFCHSCleanedMiniAOD.clone(
170  JetType = cms.string('miniaod'),#pf, calo or jpt
171  jetsrc = cms.InputTag("slimmedJetsPuppi"),
172 )
173 
174 jetDQMAnalyzerIC5CaloHIUncleaned=jetDQMAnalyzerAk4CaloUncleaned.clone(
175  filljetHighLevel =cms.bool(True),
176  CleaningParameters = cleaningParameters.clone(
177  bypassAllPVChecks = cms.bool(False),
178  vertexCollection = cms.InputTag( "hiSelectedVertex" ),
179  ),
180  JetType = cms.string('calo'),#pf, calo or jpt
181  JetCorrections = cms.InputTag(""),# no jet correction available yet?
182  jetsrc = cms.InputTag("iterativeConePu5CaloJets"),
183  JetCleaningFlag = cms.untracked.bool(False),
184  runcosmics = cms.untracked.bool(True),
185  DCSFilterForJetMonitoring = cms.PSet(
186  DetectorTypes = cms.untracked.string("ecal:hbhe:hf:pixel:sistrip:es:muon"),
187  #DebugOn = cms.untracked.bool(True),
188  alwaysPass = cms.untracked.bool(False)
189  )
190 )
191 
192 jetDQMAnalyzerAkPU3Calo = cms.EDAnalyzer("JetAnalyzer_HeavyIons",
193  JetType = cms.untracked.string('calo'),
194  UEAlgo = cms.untracked.string('Pu'),
195  OutputFile = cms.untracked.string(''),
196  src = cms.InputTag("akPu3CaloJets"),
197  PFcands = cms.InputTag("particleFlowTmp"),
198  Background = cms.InputTag("voronoiBackgroundCalo"),
199  #srcRho = cms.InputTag("iterativeConePu5CaloJets","rho"),
200  centralitycollection = cms.InputTag("hiCentrality"),
201  centralitybincollection = cms.InputTag("centralityBin","HFtowers"),
202  JetCorrections = cms.string(""),
203  recoJetPtThreshold = cms.double(10),
204  RThreshold = cms.double(0.3),
205  reverseEnergyFractionThreshold = cms.double(0.5)
206 )
207 jetDQMAnalyzerAkPU4Calo = jetDQMAnalyzerAkPU3Calo.clone(src = cms.InputTag("akPu4CaloJets"))
208 jetDQMAnalyzerAkPU5Calo = jetDQMAnalyzerAkPU3Calo.clone(src = cms.InputTag("akPu5CaloJets"))
209 
210 jetDQMAnalyzerAkPU3PF = cms.EDAnalyzer("JetAnalyzer_HeavyIons",
211  JetType = cms.untracked.string('pf'),
212  UEAlgo = cms.untracked.string('Pu'),
213  OutputFile = cms.untracked.string(''),
214  src = cms.InputTag("akPu3PFJets"),
215  PFcands = cms.InputTag("particleFlowTmp"),
216  Background = cms.InputTag("voronoiBackgroundPF"),
217  centralitycollection = cms.InputTag("hiCentrality"),
218  centralitybincollection = cms.InputTag("centralityBin","HFtowers"),
219  JetCorrections = cms.string(""),
220  recoJetPtThreshold = cms.double(10),
221  RThreshold = cms.double(0.3),
222  reverseEnergyFractionThreshold = cms.double(0.5)
223 )
224 jetDQMAnalyzerAkPU4PF = jetDQMAnalyzerAkPU3PF.clone(src = cms.InputTag("akPu4PFJets"))
225 jetDQMAnalyzerAkPU5PF = jetDQMAnalyzerAkPU3PF.clone(src = cms.InputTag("akPu5PFJets"))
226 
227 jetDQMAnalyzerAkCs3PF = cms.EDAnalyzer("JetAnalyzer_HeavyIons",
228  JetType = cms.untracked.string('pf'),
229  UEAlgo = cms.untracked.string('Cs'),
230  OutputFile = cms.untracked.string(''),
231  src = cms.InputTag("akCs3PFJets"),
232  CScands = cms.InputTag("akCs3PFJets","pfParticlesCs"),
233  PFcands = cms.InputTag("particleFlowTmp"),
234  centralitycollection = cms.InputTag("hiCentrality"),
235  #centralitybincollection = cms.InputTag("centralityBin","HFtowers"),
236  JetCorrections = cms.string(""),
237  recoJetPtThreshold = cms.double(10),
238  RThreshold = cms.double(0.3),
239  reverseEnergyFractionThreshold = cms.double(0.5),
240  etaMap = cms.InputTag('hiFJRhoProducer','mapEtaEdges'),
241  rho = cms.InputTag('hiFJRhoProducer','mapToRho'),
242  rhom = cms.InputTag('hiFJRhoProducer','mapToRhoM')
243 )
244 
245 jetDQMAnalyzerAkCs4PF=jetDQMAnalyzerAkCs3PF.clone(src = cms.InputTag("akCs4PFJets"),
246  CScands = cms.InputTag("akCs4PFJets","pfParticlesCs")
247 )
248 
249 
250 jetDQMMatchAkPu3CaloAkPu3PF = cms.EDAnalyzer("JetAnalyzer_HeavyIons_matching",
251  src_Jet1 = cms.InputTag("akPu3CaloJets"),
252  src_Jet2 = cms.InputTag("akPu3PFJets"),
253  Jet1 = cms.untracked.string("PuCalo"),
254  Jet2 = cms.untracked.string("PuPF"),
255  recoJetPtThreshold = cms.double(20.),
256  recoDelRMatch = cms.double(0.2),
257  recoJetEtaCut = cms.double(2.0)
258 )
259 
260 jetDQMMatchAkPu4CaloAkPu4PF = cms.EDAnalyzer("JetAnalyzer_HeavyIons_matching",
261  src_Jet1 = cms.InputTag("akPu4CaloJets"),
262  src_Jet2 = cms.InputTag("akPu4PFJets"),
263  Jet1 = cms.untracked.string("PuCalo"),
264  Jet2 = cms.untracked.string("PuPF"),
265  recoJetPtThreshold = cms.double(20.),
266  recoDelRMatch = cms.double(0.2),
267  recoJetEtaCut = cms.double(2.0)
268 )
269 
270 jetDQMMatchAkPu5CaloAkPu5PF = cms.EDAnalyzer("JetAnalyzer_HeavyIons_matching",
271  src_Jet1 = cms.InputTag("akPu5CaloJets"),
272  src_Jet2 = cms.InputTag("akPu5PFJets"),
273  Jet1 = cms.untracked.string("PuCalo"),
274  Jet2 = cms.untracked.string("PuPF"),
275  recoJetPtThreshold = cms.double(20.),
276  recoDelRMatch = cms.double(0.2),
277  recoJetEtaCut = cms.double(2.0)
278 )
279