CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
48 l1TdeRCT.rctSourceData = 'gctDigis'
49 
50 # DQM Offline Step 2 cfi/cff imports
53 
54 
55 # Stage1 customization
56 l1TdeRCT.rctSourceData = 'gctDigis'
57 l1TdeRCTfromRCT.rctSourceData = 'gctDigis'
58 l1tRct.rctSource = 'gctDigis'
59 l1tRctfromRCT.rctSource = 'gctDigis'
60 l1tPUM.regionSource = cms.InputTag("gctDigis")
61 
62 l1tStage1Layer2.gctCentralJetsSource = cms.InputTag("gctDigis","cenJets")
63 l1tStage1Layer2.gctForwardJetsSource = cms.InputTag("gctDigis","forJets")
64 l1tStage1Layer2.gctTauJetsSource = cms.InputTag("gctDigis","tauJets")
65 l1tStage1Layer2.gctIsoTauJetsSource = cms.InputTag("","")
66 l1tStage1Layer2.gctEnergySumsSource = cms.InputTag("gctDigis")
67 l1tStage1Layer2.gctIsoEmSource = cms.InputTag("gctDigis","isoEm")
68 l1tStage1Layer2.gctNonIsoEmSource = cms.InputTag("gctDigis","nonIsoEm")
69 l1tStage1Layer2.stage1_layer2_ = cms.bool(False)
70 
71 dqmL1ExtraParticlesStage1.etTotalSource = 'gctDigis'
72 dqmL1ExtraParticlesStage1.nonIsolatedEmSource = 'gctDigis:nonIsoEm'
73 dqmL1ExtraParticlesStage1.etMissSource = 'gctDigis'
74 dqmL1ExtraParticlesStage1.htMissSource = 'gctDigis'
75 dqmL1ExtraParticlesStage1.forwardJetSource = 'gctDigis:forJets'
76 dqmL1ExtraParticlesStage1.centralJetSource = 'gctDigis:cenJets'
77 dqmL1ExtraParticlesStage1.tauJetSource = 'gctDigis:tauJets'
78 dqmL1ExtraParticlesStage1.isolatedEmSource = 'gctDigis:isoEm'
79 dqmL1ExtraParticlesStage1.etHadSource = 'gctDigis'
80 dqmL1ExtraParticlesStage1.hfRingEtSumsSource = 'gctDigis'
81 dqmL1ExtraParticlesStage1.hfRingBitCountsSource = 'gctDigis'
82 l1ExtraDQMStage1.stage1_layer2_ = cms.bool(False)
83 l1ExtraDQMStage1.L1ExtraIsoTauJetSource_ = cms.InputTag("fake")
84 
85 l1compareforstage1.GCTsourceData = cms.InputTag("gctDigis")
86 l1compareforstage1.GCTsourceEmul = cms.InputTag("valGctDigis")
87 l1compareforstage1.stage1_layer2_ = cms.bool(False)
88 
89 valStage1GtDigis.GctInputTag = 'gctDigis'
90 
91 from Configuration.StandardSequences.Eras import eras
92 
93 eras.stage1L1Trigger.toModify(l1TdeRCT, rctSourceData = 'caloStage1Digis')
94 eras.stage1L1Trigger.toModify(l1TdeRCTfromRCT, rctSourceData = 'rctDigis')
95 eras.stage1L1Trigger.toModify(l1tRct, rctSource = 'caloStage1Digis')
96 eras.stage1L1Trigger.toModify(l1tRctfromRCT, rctSource = 'rctDigis')
97 eras.stage1L1Trigger.toModify(l1tPUM, regionSource = cms.InputTag("rctDigis"))
98 
99 eras.stage1L1Trigger.toModify(l1tStage1Layer2, stage1_layer2_ = cms.bool(True))
100 eras.stage1L1Trigger.toModify(l1tStage1Layer2, gctCentralJetsSource = cms.InputTag("caloStage1LegacyFormatDigis","cenJets"))
101 eras.stage1L1Trigger.toModify(l1tStage1Layer2, gctForwardJetsSource = cms.InputTag("caloStage1LegacyFormatDigis","forJets"))
102 eras.stage1L1Trigger.toModify(l1tStage1Layer2, gctTauJetsSource = cms.InputTag("caloStage1LegacyFormatDigis","tauJets"))
103 eras.stage1L1Trigger.toModify(l1tStage1Layer2, gctIsoTauJetsSource = cms.InputTag("caloStage1LegacyFormatDigis","isoTauJets"))
104 eras.stage1L1Trigger.toModify(l1tStage1Layer2, gctEnergySumsSource = cms.InputTag("caloStage1LegacyFormatDigis"))
105 eras.stage1L1Trigger.toModify(l1tStage1Layer2, gctIsoEmSource = cms.InputTag("caloStage1LegacyFormatDigis","isoEm"))
106 eras.stage1L1Trigger.toModify(l1tStage1Layer2, gctNonIsoEmSource = cms.InputTag("caloStage1LegacyFormatDigis","nonIsoEm"))
107 
108 eras.stage1L1Trigger.toModify( dqmL1ExtraParticlesStage1, etTotalSource = cms.InputTag("caloStage1LegacyFormatDigis") )
109 eras.stage1L1Trigger.toModify( dqmL1ExtraParticlesStage1, nonIsolatedEmSource = cms.InputTag("caloStage1LegacyFormatDigis","nonIsoEm") )
110 eras.stage1L1Trigger.toModify( dqmL1ExtraParticlesStage1, etMissSource = cms.InputTag("caloStage1LegacyFormatDigis") )
111 eras.stage1L1Trigger.toModify( dqmL1ExtraParticlesStage1, htMissSource = cms.InputTag("caloStage1LegacyFormatDigis") )
112 eras.stage1L1Trigger.toModify( dqmL1ExtraParticlesStage1, forwardJetSource = cms.InputTag("caloStage1LegacyFormatDigis","forJets") )
113 eras.stage1L1Trigger.toModify( dqmL1ExtraParticlesStage1, centralJetSource = cms.InputTag("caloStage1LegacyFormatDigis","cenJets") )
114 eras.stage1L1Trigger.toModify( dqmL1ExtraParticlesStage1, tauJetSource = cms.InputTag("caloStage1LegacyFormatDigis","tauJets") )
115 eras.stage1L1Trigger.toModify( dqmL1ExtraParticlesStage1, isoTauJetSource = cms.InputTag("caloStage1LegacyFormatDigis","isoTauJets") )
116 eras.stage1L1Trigger.toModify( dqmL1ExtraParticlesStage1, isolatedEmSource = cms.InputTag("caloStage1LegacyFormatDigis","isoEm") )
117 eras.stage1L1Trigger.toModify( dqmL1ExtraParticlesStage1, etHadSource = cms.InputTag("caloStage1LegacyFormatDigis") )
118 eras.stage1L1Trigger.toModify( dqmL1ExtraParticlesStage1, hfRingEtSumsSource = cms.InputTag("caloStage1LegacyFormatDigis") )
119 eras.stage1L1Trigger.toModify( dqmL1ExtraParticlesStage1, hfRingBitCountsSource = cms.InputTag("caloStage1LegacyFormatDigis") )
120 eras.stage1L1Trigger.toModify( l1ExtraDQMStage1, stage1_layer2_ = cms.bool(True))
121 eras.stage1L1Trigger.toModify( l1ExtraDQMStage1, L1ExtraIsoTauJetSource_ = cms.InputTag("dqmL1ExtraParticlesStage1", "IsoTau"))
122 
123 eras.stage1L1Trigger.toModify(l1compareforstage1, GCTsourceData = cms.InputTag("caloStage1LegacyFormatDigis"))
124 eras.stage1L1Trigger.toModify(l1compareforstage1, GCTsourceEmul = cms.InputTag("valCaloStage1LegacyFormatDigis"))
125 eras.stage1L1Trigger.toModify(l1compareforstage1, stage1_layer2_ = cms.bool(True))
126 
127 eras.stage1L1Trigger.toModify(valStage1GtDigis, GctInputTag = 'caloStage1LegacyFormatDigis')
128 
129 #
130 # define sequences
131 #
132 
133 l1TriggerOnline = cms.Sequence(
134  l1tMonitorStage1Online
135  * dqmEnvL1T
136  )
137 
138 l1TriggerOffline = cms.Sequence(
139  l1TriggerOnline
140  * dqmEnvL1TriggerReco
141  )
142 
143 #
144 
145 l1TriggerEmulatorOnline = cms.Sequence(
146  l1Stage1HwValEmulatorMonitor
147  * dqmEnvL1TEMU
148  )
149 
150 l1TriggerEmulatorOffline = cms.Sequence(
151  l1TriggerEmulatorOnline
152  )
153 #
154 
155 # DQM Offline Step 1 sequence
156 l1TriggerDqmOffline = cms.Sequence(
157  l1TriggerOffline
158  * l1tRate_Offline
159  * l1tSync_Offline
160  * l1TriggerEmulatorOffline
161  )
162 
163 # DQM Offline Step 2 sequence
164 l1TriggerDqmOfflineClient = cms.Sequence(
165  l1tMonitorStage1Client
166  * l1EmulatorMonitorClient
167  )
168 
169 
170 #
171 # EMERGENCY removal of modules or full sequences
172 # =============
173 #
174 # un-comment the module line below to remove the module or the sequence
175 
176 #
177 # NOTE: for offline, remove the L1TRate which is reading from cms_orcoff_prod, but also requires
178 # a hard-coded lxplus path - FIXME check if one can get rid of hard-coded path
179 # remove also the corresponding client
180 #
181 # L1TSync - FIXME - same problems as L1TRate
182 
183 
184 # DQM first step
185 #
186 
187 #l1TriggerDqmOffline.remove(l1TriggerOffline)
188 #l1TriggerDqmOffline.remove(l1TriggerEmulatorOffline)
189 
190 #
191 
192 #l1TriggerOffline.remove(l1TriggerOnline)
193 
194 
195 # l1tMonitorOnline sequence, defined in DQM/L1TMonitor/python/L1TMonitor_cff.py
196 #
197 #l1TriggerOnline.remove(l1tMonitorOnline)
198 #
199 l1tMonitorStage1Online.remove(bxTiming)
200 #l1tMonitorOnline.remove(l1tDttf)
201 #l1tMonitorOnline.remove(l1tCsctf)
202 #l1tMonitorOnline.remove(l1tRpctf)
203 #l1tMonitorOnline.remove(l1tGmt)
204 #l1tMonitorOnline.remove(l1tGt)
205 #
206 #l1ExtraDqmSeq.remove(dqmGctDigis)
207 #l1ExtraDqmSeq.remove(dqmGtDigis)
208 #l1ExtraDqmSeq.remove(dqmL1ExtraParticles)
209 #l1ExtraDqmSeq.remove(l1ExtraDQM)
210 #l1tMonitorOnline.remove(l1ExtraDqmSeq)
211 #
212 #l1tMonitorOnline.remove(l1tRate)
213 #l1tMonitorOnline.remove(l1tBPTX)
214 #l1tMonitorOnline.remove(l1tRctSeq)
215 #l1tMonitorOnline.remove(l1tGctSeq)
216 
217 #
218 
219 #l1TriggerEmulatorOffline.remove(l1TriggerEmulatorOnline)
220 
221 # l1HwValEmulatorMonitor sequence, defined in DQM/L1TMonitor/python/L1TEmulatorMonitor_cff.py
222 #
223 #l1TriggerEmulatorOnline.remove(l1HwValEmulatorMonitor)
224 
225 # L1HardwareValidation producers
226 #l1HwValEmulatorMonitor.remove(L1HardwareValidation)
227 #
228 #l1HwValEmulatorMonitor.remove(l1EmulatorMonitor)
229 
230 #l1TriggerDqmOfflineClient.remove(l1tMonitorClient)
231 #l1TriggerDqmOfflineClient.remove(l1EmulatorMonitorClient)
232 
233 # l1tMonitorClient sequence, defined in DQM/L1TMonitorClient/python/L1TMonitorClient_cff.py
234 #
235 #l1tMonitorClient.remove(l1TriggerQualityTests)
236 #l1tMonitorClient.remove(l1TriggerClients)
237 
238 # l1TriggerClients sequence, part of l1tMonitorClient sequence
239 
240 #l1TriggerClients.remove(l1tGctClient)
241 #l1TriggerClients.remove(l1tDttfClient)
242 #l1TriggerClients.remove(l1tCsctfClient)
243 #l1TriggerClients.remove(l1tRpctfClient)
244 #l1TriggerClients.remove(l1tGmtClient)
245 #l1TriggerClients.remove(l1tOccupancyClient)
246 l1TriggerStage1Clients.remove(l1tTestsSummary)
247 #l1TriggerClients.remove(l1tEventInfoClient)
248 
249 # l1EmulatorMonitorClient sequence, defined in DQM/L1TMonitorClient/python/L1TEMUMonitorClient_cff.py
250 #
251 #l1EmulatorMonitorClient.remove(l1EmulatorQualityTests)
252 l1EmulatorMonitorClient.remove(l1EmulatorErrorFlagClient)
253 #l1EmulatorMonitorClient.remove(l1EmulatorEventInfoClient)