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