CMS 3D CMS Logo

L1TriggerDqmOffline_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # L1 Trigger DQM sequence for offline DQM
4 #
5 # used by DQM GUI: DQM/Configuration
6 #
7 #
8 #
9 # standard RawToDigi sequence and RECO sequence must be run before the L1 Trigger modules,
10 # labels from the standard sequence are used as default for the L1 Trigger DQM modules
11 #
12 # V.M. Ghete - HEPHY Vienna - 2011-01-02
13 #
14 
15 
16 #
17 # DQM L1 Trigger in offline environment
18 #
19 
21 dqmEnvL1T = DQMServices.Components.DQMEnvironment_cfi.dqmEnv.clone()
22 dqmEnvL1T.subSystemFolder = 'L1T'
23 
24 # DQM online L1 Trigger modules, with offline configuration
27 
28 
29 # DQM offline L1 Trigger versus Reco modules
30 
32 dqmEnvL1TriggerReco = DQMServices.Components.DQMEnvironment_cfi.dqmEnv.clone()
33 dqmEnvL1TriggerReco.subSystemFolder = 'L1T/L1TriggerVsReco'
34 
35 #
36 # DQM L1 Trigger Emulator in offline environment
37 # Run also the L1HwVal producers (L1 Trigger emulators)
38 #
39 
41 dqmEnvL1TEMU = DQMServices.Components.DQMEnvironment_cfi.dqmEnv.clone()
42 dqmEnvL1TEMU.subSystemFolder = 'L1TEMU'
43 
44 # DQM Offline Step 1 cfi/cff imports
51 l1TdeRCT.rctSourceData = 'gctDigis'
52 
53 # DQM Offline Step 2 cfi/cff imports
56 
57 
58 # Stage1 customization
59 l1TdeRCT.rctSourceData = 'gctDigis'
60 l1TdeRCTfromRCT.rctSourceData = 'gctDigis'
61 l1tRct.rctSource = 'gctDigis'
62 l1tRctfromRCT.rctSource = 'gctDigis'
63 l1tPUM.regionSource = cms.InputTag("gctDigis")
64 
65 l1tStage1Layer2.gctCentralJetsSource = cms.InputTag("gctDigis","cenJets")
66 l1tStage1Layer2.gctForwardJetsSource = cms.InputTag("gctDigis","forJets")
67 l1tStage1Layer2.gctTauJetsSource = cms.InputTag("gctDigis","tauJets")
68 l1tStage1Layer2.gctIsoTauJetsSource = cms.InputTag("","")
69 l1tStage1Layer2.gctEnergySumsSource = cms.InputTag("gctDigis")
70 l1tStage1Layer2.gctIsoEmSource = cms.InputTag("gctDigis","isoEm")
71 l1tStage1Layer2.gctNonIsoEmSource = cms.InputTag("gctDigis","nonIsoEm")
72 l1tStage1Layer2.stage1_layer2_ = cms.bool(False)
73 
74 dqmL1ExtraParticlesStage1.etTotalSource = 'gctDigis'
75 dqmL1ExtraParticlesStage1.nonIsolatedEmSource = 'gctDigis:nonIsoEm'
76 dqmL1ExtraParticlesStage1.etMissSource = 'gctDigis'
77 dqmL1ExtraParticlesStage1.htMissSource = 'gctDigis'
78 dqmL1ExtraParticlesStage1.forwardJetSource = 'gctDigis:forJets'
79 dqmL1ExtraParticlesStage1.centralJetSource = 'gctDigis:cenJets'
80 dqmL1ExtraParticlesStage1.tauJetSource = 'gctDigis:tauJets'
81 dqmL1ExtraParticlesStage1.isolatedEmSource = 'gctDigis:isoEm'
82 dqmL1ExtraParticlesStage1.etHadSource = 'gctDigis'
83 dqmL1ExtraParticlesStage1.hfRingEtSumsSource = 'gctDigis'
84 dqmL1ExtraParticlesStage1.hfRingBitCountsSource = 'gctDigis'
85 l1ExtraDQMStage1.stage1_layer2_ = cms.bool(False)
86 l1ExtraDQMStage1.L1ExtraIsoTauJetSource_ = cms.InputTag("fake")
87 
88 l1compareforstage1.GCTsourceData = cms.InputTag("gctDigis")
89 l1compareforstage1.GCTsourceEmul = cms.InputTag("valGctDigis")
90 l1compareforstage1.stage1_layer2_ = cms.bool(False)
91 
92 valStage1GtDigis.GctInputTag = 'gctDigis'
93 
94 
95 from Configuration.Eras.Modifier_stage1L1Trigger_cff import stage1L1Trigger
96 stage1L1Trigger.toModify(l1TdeRCT, rctSourceData = 'caloStage1Digis')
97 stage1L1Trigger.toModify(l1TdeRCTfromRCT, rctSourceData = 'rctDigis')
98 stage1L1Trigger.toModify(l1tRct, rctSource = 'caloStage1Digis')
99 stage1L1Trigger.toModify(l1tRctfromRCT, rctSource = 'rctDigis')
100 stage1L1Trigger.toModify(l1tPUM, regionSource = cms.InputTag("rctDigis"))
101 
102 stage1L1Trigger.toModify(l1tStage1Layer2, stage1_layer2_ = cms.bool(True))
103 stage1L1Trigger.toModify(l1tStage1Layer2, gctCentralJetsSource = cms.InputTag("caloStage1LegacyFormatDigis","cenJets"))
104 stage1L1Trigger.toModify(l1tStage1Layer2, gctForwardJetsSource = cms.InputTag("caloStage1LegacyFormatDigis","forJets"))
105 stage1L1Trigger.toModify(l1tStage1Layer2, gctTauJetsSource = cms.InputTag("caloStage1LegacyFormatDigis","tauJets"))
106 stage1L1Trigger.toModify(l1tStage1Layer2, gctIsoTauJetsSource = cms.InputTag("caloStage1LegacyFormatDigis","isoTauJets"))
107 stage1L1Trigger.toModify(l1tStage1Layer2, gctEnergySumsSource = cms.InputTag("caloStage1LegacyFormatDigis"))
108 stage1L1Trigger.toModify(l1tStage1Layer2, gctIsoEmSource = cms.InputTag("caloStage1LegacyFormatDigis","isoEm"))
109 stage1L1Trigger.toModify(l1tStage1Layer2, gctNonIsoEmSource = cms.InputTag("caloStage1LegacyFormatDigis","nonIsoEm"))
110 
111 stage1L1Trigger.toModify( dqmL1ExtraParticlesStage1, etTotalSource = cms.InputTag("caloStage1LegacyFormatDigis") )
112 stage1L1Trigger.toModify( dqmL1ExtraParticlesStage1, nonIsolatedEmSource = cms.InputTag("caloStage1LegacyFormatDigis","nonIsoEm") )
113 stage1L1Trigger.toModify( dqmL1ExtraParticlesStage1, etMissSource = cms.InputTag("caloStage1LegacyFormatDigis") )
114 stage1L1Trigger.toModify( dqmL1ExtraParticlesStage1, htMissSource = cms.InputTag("caloStage1LegacyFormatDigis") )
115 stage1L1Trigger.toModify( dqmL1ExtraParticlesStage1, forwardJetSource = cms.InputTag("caloStage1LegacyFormatDigis","forJets") )
116 stage1L1Trigger.toModify( dqmL1ExtraParticlesStage1, centralJetSource = cms.InputTag("caloStage1LegacyFormatDigis","cenJets") )
117 stage1L1Trigger.toModify( dqmL1ExtraParticlesStage1, tauJetSource = cms.InputTag("caloStage1LegacyFormatDigis","tauJets") )
118 stage1L1Trigger.toModify( dqmL1ExtraParticlesStage1, isoTauJetSource = cms.InputTag("caloStage1LegacyFormatDigis","isoTauJets") )
119 stage1L1Trigger.toModify( dqmL1ExtraParticlesStage1, isolatedEmSource = cms.InputTag("caloStage1LegacyFormatDigis","isoEm") )
120 stage1L1Trigger.toModify( dqmL1ExtraParticlesStage1, etHadSource = cms.InputTag("caloStage1LegacyFormatDigis") )
121 stage1L1Trigger.toModify( dqmL1ExtraParticlesStage1, hfRingEtSumsSource = cms.InputTag("caloStage1LegacyFormatDigis") )
122 stage1L1Trigger.toModify( dqmL1ExtraParticlesStage1, hfRingBitCountsSource = cms.InputTag("caloStage1LegacyFormatDigis") )
123 stage1L1Trigger.toModify( l1ExtraDQMStage1, stage1_layer2_ = cms.bool(True))
124 stage1L1Trigger.toModify( l1ExtraDQMStage1, L1ExtraIsoTauJetSource_ = cms.InputTag("dqmL1ExtraParticlesStage1", "IsoTau"))
125 
126 stage1L1Trigger.toModify(l1compareforstage1, GCTsourceData = cms.InputTag("caloStage1LegacyFormatDigis"))
127 stage1L1Trigger.toModify(l1compareforstage1, GCTsourceEmul = cms.InputTag("valCaloStage1LegacyFormatDigis"))
128 stage1L1Trigger.toModify(l1compareforstage1, stage1_layer2_ = cms.bool(True))
129 
130 stage1L1Trigger.toModify(valStage1GtDigis, GctInputTag = 'caloStage1LegacyFormatDigis')
131 
132 #
133 # define sequences
134 #
135 
136 l1TriggerOnline = cms.Sequence(
137  l1tMonitorStage1Online
138  * dqmEnvL1T
139  )
140 
141 l1TriggerOffline = cms.Sequence(
142  l1TriggerOnline *
143  dqmEnvL1TriggerReco
144 )
145 
146 #
148 
149 l1TriggerEmulatorOnline = cms.Sequence(
150  l1Stage1HwValEmulatorMonitor
151  * dqmEnvL1TEMU
152  )
153 
154 l1TriggerEmulatorOffline = cms.Sequence(
155  l1TriggerEmulatorOnline
156 )
157 #
158 
159 # DQM Offline Step 1 sequence
160 l1TriggerDqmOffline = cms.Sequence(
161  l1TriggerOffline
162  * l1tRate_Offline
163  * l1tSync_Offline
164  * l1TriggerEmulatorOffline
165  )
166 
167 # Dummy sequences where a stage 2 equivalent exists
168 l1TriggerEgDqmOffline = cms.Sequence()
169 l1TriggerMuonDqmOffline = cms.Sequence()
170 
171 # DQM Offline Step 2 sequence
172 l1TriggerDqmOfflineClient = cms.Sequence(
173  l1tMonitorStage1Client
174  * l1EmulatorMonitorClient
175  )
176 
177 # Dummy sequences for legacy cosmics
178 l1TriggerDqmOfflineCosmics = cms.Sequence()
179 l1TriggerDqmOfflineCosmicsClient = cms.Sequence()
180 
181 # Dummy sequences where a stage 2 equivalent exists
182 l1TriggerEgDqmOfflineClient = cms.Sequence()
183 l1TriggerMuonDqmOfflineClient = cms.Sequence()
184 
185 
186 #
187 # EMERGENCY removal of modules or full sequences
188 # =============
189 #
190 # un-comment the module line below to remove the module or the sequence
191 
192 #
193 # NOTE: for offline, remove the L1TRate which is reading from cms_orcoff_prod, but also requires
194 # a hard-coded lxplus path - FIXME check if one can get rid of hard-coded path
195 # remove also the corresponding client
196 #
197 # L1TSync - FIXME - same problems as L1TRate
198 
199 
200 # DQM first step
201 #
202 
203 #l1TriggerDqmOffline.remove(l1TriggerOffline)
204 #l1TriggerDqmOffline.remove(l1TriggerEmulatorOffline)
205 
206 #
207 
208 #l1TriggerOffline.remove(l1TriggerOnline)
209 
210 
211 # l1tMonitorOnline sequence, defined in DQM/L1TMonitor/python/L1TMonitor_cff.py
212 #
213 #l1TriggerOnline.remove(l1tMonitorOnline)
214 #
215 l1tMonitorStage1Online.remove(bxTiming)
216 #l1tMonitorOnline.remove(l1tDttf)
217 #l1tMonitorOnline.remove(l1tCsctf)
218 #l1tMonitorOnline.remove(l1tRpctf)
219 #l1tMonitorOnline.remove(l1tGmt)
220 #l1tMonitorOnline.remove(l1tGt)
221 #
222 #l1ExtraDqmSeq.remove(dqmGctDigis)
223 #l1ExtraDqmSeq.remove(dqmGtDigis)
224 #l1ExtraDqmSeq.remove(dqmL1ExtraParticles)
225 #l1ExtraDqmSeq.remove(l1ExtraDQM)
226 #l1tMonitorOnline.remove(l1ExtraDqmSeq)
227 #
228 #l1tMonitorOnline.remove(l1tRate)
229 #l1tMonitorOnline.remove(l1tBPTX)
230 #l1tMonitorOnline.remove(l1tRctSeq)
231 #l1tMonitorOnline.remove(l1tGctSeq)
232 
233 #
234 
235 #l1TriggerEmulatorOffline.remove(l1TriggerEmulatorOnline)
236 
237 # l1HwValEmulatorMonitor sequence, defined in DQM/L1TMonitor/python/L1TEmulatorMonitor_cff.py
238 #
239 #l1TriggerEmulatorOnline.remove(l1HwValEmulatorMonitor)
240 
241 # L1HardwareValidation producers
242 #l1HwValEmulatorMonitor.remove(L1HardwareValidation)
243 #
244 #l1HwValEmulatorMonitor.remove(l1EmulatorMonitor)
245 
246 #l1TriggerDqmOfflineClient.remove(l1tMonitorClient)
247 #l1TriggerDqmOfflineClient.remove(l1EmulatorMonitorClient)
248 
249 # l1tMonitorClient sequence, defined in DQM/L1TMonitorClient/python/L1TMonitorClient_cff.py
250 #
251 #l1tMonitorClient.remove(l1TriggerQualityTests)
252 #l1tMonitorClient.remove(l1TriggerClients)
253 
254 # l1TriggerClients sequence, part of l1tMonitorClient sequence
255 
256 #l1TriggerClients.remove(l1tGctClient)
257 #l1TriggerClients.remove(l1tDttfClient)
258 #l1TriggerClients.remove(l1tCsctfClient)
259 #l1TriggerClients.remove(l1tRpctfClient)
260 #l1TriggerClients.remove(l1tGmtClient)
261 #l1TriggerClients.remove(l1tOccupancyClient)
262 l1TriggerStage1Clients.remove(l1tTestsSummary)
263 #l1TriggerClients.remove(l1tEventInfoClient)
264 
265 # l1EmulatorMonitorClient sequence, defined in DQM/L1TMonitorClient/python/L1TEMUMonitorClient_cff.py
266 #
267 #l1EmulatorMonitorClient.remove(l1EmulatorQualityTests)
268 l1EmulatorMonitorClient.remove(l1EmulatorErrorFlagClient)
269 #l1EmulatorMonitorClient.remove(l1EmulatorEventInfoClient)
270 
271 
272 ##############################################################################
273 #stage2
274 ##############################################################################
275 
276 from Configuration.Eras.Modifier_stage2L1Trigger_cff import stage2L1Trigger
277 
278 #from L1Trigger.L1TGlobal.hackConditions_cff import *
279 #from L1Trigger.L1TMuon.hackConditions_cff import *
280 #from L1Trigger.L1TCalorimeter.hackConditions_cff import *
282 
284 l1tEtSumJetOfflineDQMEmu.stage2CaloLayer2JetSource=cms.InputTag("valCaloStage2Layer2Digis")
285 l1tEtSumJetOfflineDQMEmu.stage2CaloLayer2EtSumSource=cms.InputTag("valCaloStage2Layer2Digis")
286 
288 l1tEGammaOfflineDQMEmu.stage2CaloLayer2EGammaSource=cms.InputTag("valCaloStage2Layer2Digis")
289 
291 l1tTauOfflineDQMEmu.stage2CaloLayer2TauSource=cms.InputTag("valCaloStage2Layer2Digis")
292 
294 
295 from DQM.L1TMonitor.L1TStage2_cff import *
297 
298 ##Stage 2 Emulator
299 
303 # L1T monitor client sequence (system clients and quality tests)
304 l1TStage2EmulatorClients = cms.Sequence(
305  l1tStage2CaloLayer2DEClient
306  # l1tStage2EmulatorEventInfoClient
307  )
308 
309 l1tStage2EmulatorMonitorClient = cms.Sequence(
310  # l1TStage2EmulatorQualityTests +
311  l1TStage2EmulatorClients
312  )
313 
314 #
315 # define sequences
316 #
317 
318 ##############################################################################
319 # Unpacked data sequences
320 Stage2l1TriggerOnline = cms.Sequence(
321  l1tStage2OnlineDQM
322  * dqmEnvL1T
323  )
324 # Do not include the uGT online DQM module in the offline sequence
325 # since the large 2D histograms cause crashes at the T0.
326 l1tStage2OnlineDQM.remove(l1tStage2uGT)
327 
328 # sequence to run for all datasets
329 Stage2l1TriggerOffline = cms.Sequence(
330  Stage2l1TriggerOnline #*
331  #dqmEnvL1TriggerReco
332  )
333 
334 # sequence to run only for modules requiring an electron dataset
335 Stage2l1tEgOffline = cms.Sequence(
336  l1tEGammaOfflineDQM
337  )
338 
339 # sequence to run only for modules requiring a muon dataset
340 Stage2l1tMuonOffline = cms.Sequence(
341  l1tEtSumJetOfflineDQMSeq *
342  l1tTauOfflineDQM *
343  l1tMuonDQMOffline
344  )
345 
346 ##############################################################################
347 # Emulator sequences
348 Stage2l1TriggerEmulatorOnline = cms.Sequence(
349  valHcalTriggerPrimitiveDigis +
350  Stage2L1HardwareValidation +
351  l1tStage2EmulatorOnlineDQM +
352  dqmEnvL1TEMU
353  )
354 # Do not include the uGT emulation online DQM module in the offline
355 # sequence since the large 2D histograms cause crashes at the T0.
356 l1tStage2EmulatorOnlineDQM.remove(l1tStage2uGtEmul)
357 
358 # sequence to run for all datasets
359 Stage2l1TriggerEmulatorOffline = cms.Sequence(
360  Stage2l1TriggerEmulatorOnline
361  )
362 
363 # sequence to run only for modules requiring an electron dataset
364 Stage2l1tEgEmulatorOffline = cms.Sequence(
365  #l1tEGammaOfflineDQMEmu
366  )
367 
368 # sequence to run only for modules requiring a muon dataset
369 Stage2l1tMuonEmulatorOffline = cms.Sequence(
370  #l1tEtSumJetOfflineDQMEmuSeq +
371  #l1tTauOfflineDQMEmu
372  )
373 
374 ##############################################################################
375 # DQM sequences for step 1
376 
377 # DQM Offline sequence
378 Stage2l1TriggerDqmOffline = cms.Sequence(
379  Stage2l1TriggerOffline
380  * Stage2l1TriggerEmulatorOffline
381  )
382 
383 # DQM Offline sequence for modules requiring an electron dataset
384 Stage2l1tEgDqmOffline = cms.Sequence(
385  Stage2l1tEgOffline
386  * Stage2l1tEgEmulatorOffline
387  )
388 
389 # DQM Offline sequence for modules requiring a muon dataset
390 Stage2l1tMuonDqmOffline = cms.Sequence(
391  Stage2l1tMuonOffline
392  * Stage2l1tMuonEmulatorOffline
393  )
394 
395 ##############################################################################
396 # DQM sequences for step 2
397 
398 # DQM Offline sequence
399 Stage2l1TriggerDqmOfflineClient = cms.Sequence(
400  l1tStage2EmulatorMonitorClient *
401  l1tStage2MonitorClient *
402  DQMHarvestL1TMon
403  )
404 
405 # DQM Offline sequence for modules requiring an electron dataset
406 Stage2l1tEgDqmOfflineClient = cms.Sequence(
407  DQMHarvestL1TEg
408  )
409 
410 # DQM Offline sequence for modules requiring a muon dataset
411 Stage2l1tMuonDqmOfflineClient = cms.Sequence(
412  DQMHarvestL1TMuon
413  )
414 
415 
416 #replacements for stage2
417 stage2L1Trigger.toReplaceWith(l1TriggerOnline, Stage2l1TriggerOnline)
418 stage2L1Trigger.toReplaceWith(l1TriggerOffline, Stage2l1TriggerOffline)
419 stage2L1Trigger.toReplaceWith(l1TriggerEmulatorOnline, Stage2l1TriggerEmulatorOnline)
420 stage2L1Trigger.toReplaceWith(l1TriggerEmulatorOffline, Stage2l1TriggerEmulatorOffline)
421 stage2L1Trigger.toReplaceWith(l1TriggerDqmOffline, Stage2l1TriggerDqmOffline)
422 stage2L1Trigger.toReplaceWith(l1TriggerEgDqmOffline, Stage2l1tEgDqmOffline)
423 stage2L1Trigger.toReplaceWith(l1TriggerMuonDqmOffline, Stage2l1tMuonDqmOffline)
424 stage2L1Trigger.toReplaceWith(l1TriggerDqmOfflineClient, Stage2l1TriggerDqmOfflineClient)
425 stage2L1Trigger.toReplaceWith(l1TriggerEgDqmOfflineClient, Stage2l1tEgDqmOfflineClient)
426 stage2L1Trigger.toReplaceWith(l1TriggerMuonDqmOfflineClient, Stage2l1tMuonDqmOfflineClient)
427 stage2L1Trigger.toReplaceWith(l1EmulatorMonitorClient,l1tStage2EmulatorMonitorClient)
428 stage2L1Trigger.toReplaceWith(l1TriggerDqmOfflineCosmics, Stage2l1TriggerDqmOffline)
429 stage2L1Trigger.toReplaceWith(l1TriggerDqmOfflineCosmicsClient, Stage2l1TriggerDqmOfflineClient)
Stage 2 Emulator.