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  *cscMonitor)
134 muonRecoAnalyzer.doMVA = cms.bool( True )
135 muonRecoAnalyzer_miniAOD.doMVA = cms.bool( True )
136 
137 DQMOfflineJetMET = cms.Sequence( jetMETDQMOfflineSource )
138 
139 DQMOfflineEGamma = cms.Sequence( egammaDQMOffline )
140 
141 DQMOfflineTrigger = cms.Sequence( triggerOfflineDQMSource )
142 
143 DQMOfflineBTag = cms.Sequence( bTagPlotsDATA )
144 
145 DQMOfflineBeam = cms.Sequence( alcaBeamMonitor )
146 
147 DQMOfflinePhysics = cms.Sequence( dqmPhysics )
148 
149 DQMOfflineHeavyFlavor = cms.Sequence( heavyFlavorDQMSource )
150 
151 DQMOfflinePrePOG = cms.Sequence( DQMOfflineTracking *
152  DQMOfflineMUO *
153  DQMOfflineJetMET *
154  DQMOfflineEGamma *
155  DQMOfflineTrigger *
156  DQMOfflineBTag *
157  DQMOfflineBeam *
158  DQMOfflinePhysics )
159 
160 
161 DQMOfflinePrePOGExpress = cms.Sequence( DQMOfflineTracking *
162  #DQMOfflineMUO *
163  #DQMOfflineJetMET *
164  #DQMOfflineEGamma *
165  DQMOfflineTrigger *
166  DQMOfflineBTag *
167  DQMOfflineBeam
168  #DQMOfflinePhysics
169 )
170 
171 
172 DQMOfflinePOG = cms.Sequence( DQMOfflinePrePOG *
173  DQMMessageLogger )
174 
175 DQMOfflinePOGExpress = cms.Sequence( DQMOfflinePrePOGExpress *
176  DQMMessageLogger )
177 
178 
179 HLTMonitoring = cms.Sequence( OfflineHLTMonitoring )
180 HLTMonitoringPA = cms.Sequence( OfflineHLTMonitoringPA )
181 
182 # Data
183 DQMOffline = cms.Sequence( DQMOfflinePreDPG *
184  DQMOfflinePrePOG *
185  HLTMonitoring *
186  DQMMessageLogger )
187 
188 DQMOfflineExpress = cms.Sequence( DQMOfflinePreDPGExpress *
189  DQMOfflinePrePOGExpress *
190  HLTMonitoring *
191  DQMMessageLogger )
192 
193 
194 DQMOfflineExtraHLT = cms.Sequence( offlineValidationHLTSource )
195 
196 
197 DQMOfflineFakeHLT = cms.Sequence( DQMOffline )
198 DQMOfflineFakeHLT.remove( HLTMonitoring )
199 DQMOfflineFakeHLT.remove( DQMOfflineTrigger )
200 
201 #MC
202 DQMOfflinePrePOGMC = cms.Sequence( DQMOfflineVertex *
203  DQMOfflineBTag *
204  DQMOfflinePhysics )
205 
206 DQMOfflinePOGMC = cms.Sequence( DQMOfflinePrePOGMC *
207  DQMMessageLogger )
208 
209 #DQMOfflineCommon
213 
214 DQMOfflinePixelTracking = cms.Sequence( pixelTracksMonitoring *
215  pixelPVMonitor *
216  monitorpixelSoASource )
217 
218 DQMOuterTracker = cms.Sequence( DQMOfflineDCS *
219  DQMMessageLogger *
220  DQMOfflinePhysics *
221  DQMOfflineVertex
222  )
223 
224 DQMOfflineTrackerPhase2 = cms.Sequence( trackerphase2DQMSource )
225 
226 DQMOfflineTAU = cms.Sequence( produceDenomsData *
227  pfTauRunDQMValidation )
228 
229 DQMOfflineTrackerStripCommon = cms.Sequence( SiStripDQMTier0Common )
230 
231 DQMOfflineTrackerPixel = cms.Sequence( siPixelOfflineDQM_source )
232 
233 DQMOfflineCommon = cms.Sequence( DQMOfflineDCS *
234  DQMMessageLogger *
235  DQMOfflineTrackerStrip *
236  DQMOfflineTrackerPixel *
237  DQMOfflineTracking *
238  DQMOfflineTrigger *
239  DQMOfflineBeam *
240  DQMOfflineCASTOR *
241  DQMOfflinePhysics *
242  DQMOfflineTAU
243  )
244 
245 DQMOfflineCommonFakeHLT = cms.Sequence( DQMOfflineCommon )
246 DQMOfflineCommonFakeHLT.remove( DQMOfflineTrigger )
247 
248 #MinBias/ZeroBias
249 DQMOfflineTrackerStripMinBias = cms.Sequence( SiStripDQMTier0MinBias )
250 
251 DQMOfflineTrackingMinBias = cms.Sequence( TrackingDQMSourceTier0MinBias *
252  DQMOfflineVertex *
253  materialDumperAnalyzer )
254 
255 
256 DQMOfflineCommonSiStripZeroBias = cms.Sequence( DQMOfflineDCS *
257  DQMMessageLogger *
258  DQMOfflineTrackerStripMinBias *
259  DQMOfflineTrackerPixel *
260  DQMOfflineL1T *
261  DQMOfflineTrigger *
262  DQMOfflineBeam *
263  DQMOfflineCASTOR *
264  DQMOfflinePhysics *
265  DQMOfflineTrackingMinBias
266  )
267 
268 DQMOfflineCommonSiStripZeroBiasFakeHLT = cms.Sequence( DQMOfflineCommonSiStripZeroBias )
269 DQMOfflineCommonSiStripZeroBiasFakeHLT.remove( DQMOfflineTrigger )
270 
271 #Other definitons
272 from DQMOffline.Lumi.ZCounting_cff import *
273 
274 DQMOfflineLumi = cms.Sequence ( zcounting )
275 
276 DQMOfflineMuon = cms.Sequence( dtSources *
277  rpcTier0Source *
278  cscSources *
279  muonMonitors
280  )
281 
282 _run3_GEM_DQMOfflineMuon = DQMOfflineMuon.copy()
283 _run3_GEM_DQMOfflineMuon += gemSources
284 run3_GEM.toReplaceWith(DQMOfflineMuon, _run3_GEM_DQMOfflineMuon)
285 
286 #Taus not created in pp conditions for HI
287 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
288 _DQMOfflineTAU = cms.Sequence()
289 pp_on_AA.toReplaceWith(DQMOfflineTAU, _DQMOfflineTAU)
290 
291 
292 # miniAOD DQM validation
293 from Validation.RecoParticleFlow.miniAODDQM_cff import * # On MiniAOD vs RECO
294 from Validation.RecoParticleFlow.DQMForPF_MiniAOD_cff import * # MiniAOD PF variables
297 from DQMOffline.Muon.miniAOD_cff import *
298 from DQM.Physics.DQMTopMiniAOD_cff import *
299 
300 DQMOfflineMiniAOD = cms.Sequence(jetMETDQMOfflineRedoProductsMiniAOD*bTagMiniDQMSource*muonMonitors_miniAOD*MuonMiniAOD*DQMOfflinePF)
301 
302 #Post sequences are automatically placed in the EndPath by ConfigBuilder if PAT is run.
303 #miniAOD DQM sequences need to access the filter results.
304 
305 PostDQMOfflineMiniAOD = cms.Sequence(miniAODDQMSequence*jetMETDQMOfflineSourceMiniAOD*tracksDQMMiniAOD*topPhysicsminiAOD)
306 PostDQMOffline = cms.Sequence()
307 
308 from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
309 run3_HB.toReplaceWith( PostDQMOfflineMiniAOD, PostDQMOfflineMiniAOD.copyAndExclude([
310  pfMetDQMAnalyzerMiniAOD, pfPuppiMetDQMAnalyzerMiniAOD # No hcalnoise (yet)
311 ]))
312 
313 from PhysicsTools.NanoAOD.nanoDQM_cff import nanoDQM
314 DQMOfflineNanoAOD = cms.Sequence(nanoDQM)
315 #PostDQMOfflineNanoAOD = cms.Sequence(nanoDQM)
316 from PhysicsTools.NanoAOD.nanogenDQM_cff import nanogenDQM
317 DQMOfflineNanoGen = cms.Sequence(nanogenDQM)
318 from PhysicsTools.NanoAOD.nanojmeDQM_cff import nanojmeDQM
319 DQMOfflineNanoJME = cms.Sequence(nanojmeDQM)