CMS 3D CMS Logo

DQMOffline_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
6 
19 from DQM.CTPPS.ctppsDQM_cff import *
22 
23 DQMNone = cms.Sequence()
24 
25 DQMMessageLoggerSeq = cms.Sequence( DQMMessageLogger )
26 
27 dqmProvInfo.runType = "pp_run"
28 dqmProvInfo.dcsRecord = cms.untracked.InputTag("onlineMetaDataDigis")
29 DQMOfflineDCS = cms.Sequence( dqmProvInfo )
30 
31 # L1 trigger sequences
32 DQMOfflineL1T = cms.Sequence( l1TriggerDqmOffline ) # L1 emulator is run within this sequence for real data
33 
34 DQMOfflineL1TEgamma = cms.Sequence( l1TriggerEgDqmOffline )
35 
36 DQMOfflineL1TMuon = cms.Sequence( l1TriggerMuonDqmOffline )
37 
38 DQMOfflineL1TPhase2 = cms.Sequence( Phase2l1TriggerDqmOffline )
39 
40 #DPGs
41 DQMOfflineEcalOnly = cms.Sequence(
42  ecalOnly_dqm_source_offline +
43  es_dqm_source_offline )
44 
45 DQMOfflineEcal = cms.Sequence(
46  ecal_dqm_source_offline +
47  es_dqm_source_offline )
48 
49 from Configuration.Eras.Modifier_phase2_ecal_devel_cff import phase2_ecal_devel
50 phase2_ecal_devel.toReplaceWith(DQMOfflineEcalOnly, DQMOfflineEcalOnly.copyAndExclude([es_dqm_source_offline]))
51 
52 #offline version of the online DQM: used in validation/certification
53 DQMOfflineHcal = cms.Sequence( hcalOfflineSourceSequence )
54 
55 # offline DQM: used in Release validation
56 DQMOfflineHcal2 = cms.Sequence( HcalDQMOfflineSequence )
57 
58 DQMOfflineHcalOnly = cms.Sequence( hcalOnlyOfflineSourceSequence )
59 
60 DQMOfflineHcal2Only = cms.Sequence( RecHitsDQMOffline )
61 
62 DQMOfflineTrackerStrip = cms.Sequence( SiStripDQMTier0 )
63 
64 DQMOfflineTrackerPixel = cms.Sequence( siPixelOfflineDQM_source )
65 
66 DQMOfflineMuonDPG = cms.Sequence( dtSources *
67  rpcTier0Source *
68  cscSources )
69 
70 
71 DQMOfflineMuonDPGExpress = cms.Sequence(rpcTier0Source *
72  cscSources *
73  gemSources)
74 
75 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
76 _run3_GEM_DQMOfflineMuonDPG = DQMOfflineMuonDPG.copy()
77 _run3_GEM_DQMOfflineMuonDPG += gemSources
78 run3_GEM.toReplaceWith(DQMOfflineMuonDPG, _run3_GEM_DQMOfflineMuonDPG)
79 
80 DQMOfflineCASTOR = cms.Sequence( castorSources )
81 
82 DQMOfflineCTPPS = cms.Sequence( ctppsDQMOfflineSource )
83 
84 DQMOfflinePreDPG = cms.Sequence( DQMOfflineDCS *
85  DQMOfflineL1T *
86  DQMOfflineEcal *
87  DQMOfflineHcal *
88  DQMOfflineHcal2 *
89  DQMOfflineTrackerStrip *
90  DQMOfflineTrackerPixel *
91  DQMOfflineMuonDPG *
92  DQMOfflineCASTOR *
93  DQMOfflineCTPPS )
94 
95 
96 DQMOfflinePreDPGExpress = cms.Sequence( DQMOfflineDCS *
97  #DQMOfflineL1T *
98  DQMOfflineEcal *
99  #DQMOfflineHcal *
100  #DQMOfflineHcal2 *
101  DQMOfflineTrackerStrip *
102  DQMOfflineTrackerPixel *
103  DQMOfflineMuonDPGExpress *
104  DQMOfflineCASTOR *
105  DQMOfflineCTPPS )
106 
107 DQMOfflineDPG = cms.Sequence( DQMOfflinePreDPG *
108  DQMMessageLogger )
109 
110 DQMOfflineDPGExpress = cms.Sequence( DQMOfflinePreDPGExpress *
111  DQMMessageLogger )
112 
115 from DQM.TrackingMonitor.trackingRecoMaterialAnalyzer_cfi import materialDumperAnalyzer
122 from DQM.Physics.DQMPhysics_cff import *
124 
125 DQMOfflineVertex = cms.Sequence( pvMonitor )
126 
127 materialDumperAnalyzer.usePV = True
128 DQMOfflineTracking = cms.Sequence( TrackingDQMSourceTier0 *
129  DQMOfflineVertex *
130  materialDumperAnalyzer )
131 
132 DQMOfflineMUO = cms.Sequence(muonMonitors)
133 muonRecoAnalyzer.doMVA = cms.bool( True )
134 muonRecoAnalyzer_miniAOD.doMVA = cms.bool( True )
135 
136 DQMOfflineJetMET = cms.Sequence( jetMETDQMOfflineSource )
137 
138 DQMOfflineEGamma = cms.Sequence( egammaDQMOffline )
139 
140 DQMOfflineTrigger = cms.Sequence( triggerOfflineDQMSource )
141 
142 DQMOfflineBTag = cms.Sequence( bTagPlotsDATA )
143 
144 DQMOfflineBeam = cms.Sequence( alcaBeamMonitor )
145 
146 DQMOfflinePhysics = cms.Sequence( dqmPhysics )
147 
148 DQMOfflineHeavyFlavor = cms.Sequence( heavyFlavorDQMSource )
149 
150 DQMOfflinePrePOG = cms.Sequence( DQMOfflineTracking *
151  DQMOfflineMUO *
152  DQMOfflineJetMET *
153  DQMOfflineEGamma *
154  DQMOfflineTrigger *
155  DQMOfflineBTag *
156  DQMOfflineBeam *
157  DQMOfflinePhysics )
158 
159 
160 DQMOfflinePrePOGExpress = cms.Sequence( DQMOfflineTracking *
161  DQMOfflineMUO *
162  #DQMOfflineJetMET *
163  #DQMOfflineEGamma *
164  DQMOfflineTrigger *
165  DQMOfflineBTag *
166  DQMOfflineBeam
167  #DQMOfflinePhysics
168 )
169 
170 
171 DQMOfflinePOG = cms.Sequence( DQMOfflinePrePOG *
172  DQMMessageLogger )
173 
174 DQMOfflinePOGExpress = cms.Sequence( DQMOfflinePrePOGExpress *
175  DQMMessageLogger )
176 
177 
178 HLTMonitoring = cms.Sequence( OfflineHLTMonitoring )
179 HLTMonitoringPA = cms.Sequence( OfflineHLTMonitoringPA )
180 
181 # Data
182 DQMOffline = cms.Sequence( DQMOfflinePreDPG *
183  DQMOfflinePrePOG *
184  HLTMonitoring *
185  DQMMessageLogger )
186 
187 DQMOfflineExpress = cms.Sequence( DQMOfflinePreDPGExpress *
188  DQMOfflinePrePOGExpress *
189  HLTMonitoring *
190  DQMMessageLogger )
191 
192 
193 DQMOfflineExtraHLT = cms.Sequence( offlineValidationHLTSource )
194 
195 
196 DQMOfflineFakeHLT = cms.Sequence( DQMOffline )
197 DQMOfflineFakeHLT.remove( HLTMonitoring )
198 DQMOfflineFakeHLT.remove( DQMOfflineTrigger )
199 
200 #MC
201 DQMOfflinePrePOGMC = cms.Sequence( DQMOfflineVertex *
202  DQMOfflineBTag *
203  DQMOfflinePhysics )
204 
205 DQMOfflinePOGMC = cms.Sequence( DQMOfflinePrePOGMC *
206  DQMMessageLogger )
207 
208 #DQMOfflineCommon
213 
214 DQMOfflinePixelTracking = cms.Sequence( pixelTracksMonitoring *
215  pixelPVMonitor *
216  monitorpixelSoASource )
217 
218 DQMOuterTracker = cms.Sequence( DQMOfflineDCS *
219  OuterTrackerSource *
220  DQMMessageLogger *
221  DQMOfflinePhysics *
222  DQMOfflineVertex
223  )
224 
225 DQMOfflineTrackerPhase2 = cms.Sequence( trackerphase2DQMSource )
226 
227 DQMOfflineTAU = cms.Sequence( produceDenomsData *
228  pfTauRunDQMValidation )
229 
230 DQMOfflineTrackerStripCommon = cms.Sequence( SiStripDQMTier0Common )
231 
232 DQMOfflineTrackerPixel = cms.Sequence( siPixelOfflineDQM_source )
233 
234 DQMOfflineCommon = cms.Sequence( DQMOfflineDCS *
235  DQMMessageLogger *
236  DQMOfflineTrackerStrip *
237  DQMOfflineTrackerPixel *
238  DQMOfflineTracking *
239  DQMOfflineTrigger *
240  DQMOfflineBeam *
241  DQMOfflineCASTOR *
242  DQMOfflinePhysics *
243  DQMOfflineTAU
244  )
245 
246 DQMOfflineCommonFakeHLT = cms.Sequence( DQMOfflineCommon )
247 DQMOfflineCommonFakeHLT.remove( DQMOfflineTrigger )
248 
249 #MinBias/ZeroBias
250 DQMOfflineTrackerStripMinBias = cms.Sequence( SiStripDQMTier0MinBias )
251 
252 DQMOfflineTrackingMinBias = cms.Sequence( TrackingDQMSourceTier0MinBias *
253  DQMOfflineVertex *
254  materialDumperAnalyzer )
255 
256 
257 DQMOfflineCommonSiStripZeroBias = cms.Sequence( DQMOfflineDCS *
258  DQMMessageLogger *
259  DQMOfflineTrackerStripMinBias *
260  DQMOfflineTrackerPixel *
261  DQMOfflineL1T *
262  DQMOfflineTrigger *
263  DQMOfflineBeam *
264  DQMOfflineCASTOR *
265  DQMOfflinePhysics *
266  DQMOfflineTrackingMinBias
267  )
268 
269 DQMOfflineCommonSiStripZeroBiasFakeHLT = cms.Sequence( DQMOfflineCommonSiStripZeroBias )
270 DQMOfflineCommonSiStripZeroBiasFakeHLT.remove( DQMOfflineTrigger )
271 
272 #Other definitons
273 from DQMOffline.Lumi.ZCounting_cff import *
274 
275 DQMOfflineLumi = cms.Sequence ( zcounting )
276 
277 DQMOfflineMuon = cms.Sequence( dtSources *
278  rpcTier0Source *
279  cscSources *
280  muonMonitors
281  )
282 
283 _run3_GEM_DQMOfflineMuon = DQMOfflineMuon.copy()
284 _run3_GEM_DQMOfflineMuon += gemSources
285 run3_GEM.toReplaceWith(DQMOfflineMuon, _run3_GEM_DQMOfflineMuon)
286 
287 #Taus not created in pp conditions for HI
288 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
289 _DQMOfflineTAU = cms.Sequence()
290 pp_on_AA.toReplaceWith(DQMOfflineTAU, _DQMOfflineTAU)
291 
292 
293 # miniAOD DQM validation
294 from Validation.RecoParticleFlow.miniAODDQM_cff import * # On MiniAOD vs RECO
295 from Validation.RecoParticleFlow.DQMForPF_MiniAOD_cff import * # MiniAOD PF variables
298 from DQMOffline.Muon.miniAOD_cff import *
299 from DQM.Physics.DQMTopMiniAOD_cff import *
300 
301 DQMOfflineMiniAOD = cms.Sequence(jetMETDQMOfflineRedoProductsMiniAOD*bTagMiniDQMSource*muonMonitors_miniAOD*MuonMiniAOD*DQMOfflinePF)
302 
303 #Post sequences are automatically placed in the EndPath by ConfigBuilder if PAT is run.
304 #miniAOD DQM sequences need to access the filter results.
305 
306 PostDQMOfflineMiniAOD = cms.Sequence(miniAODDQMSequence*jetMETDQMOfflineSourceMiniAOD*tracksDQMMiniAOD*topPhysicsminiAOD)
307 PostDQMOffline = cms.Sequence()
308 
309 from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
310 run3_HB.toReplaceWith( PostDQMOfflineMiniAOD, PostDQMOfflineMiniAOD.copyAndExclude([
311  pfMetDQMAnalyzerMiniAOD, pfPuppiMetDQMAnalyzerMiniAOD # No hcalnoise (yet)
312 ]))
313 
314 from PhysicsTools.NanoAOD.nanoDQM_cff import nanoDQM
315 DQMOfflineNanoAOD = cms.Sequence(nanoDQM)
316 #PostDQMOfflineNanoAOD = cms.Sequence(nanoDQM)
317 from PhysicsTools.NanoAOD.nanogenDQM_cff import nanogenDQM
318 DQMOfflineNanoGen = cms.Sequence(nanogenDQM)
319 from PhysicsTools.NanoAOD.nanojmeDQM_cff import nanojmeDQM
320 DQMOfflineNanoJME = cms.Sequence(nanojmeDQM)