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 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
71 _run3_GEM_DQMOfflineMuonDPG = DQMOfflineMuonDPG.copy()
72 _run3_GEM_DQMOfflineMuonDPG += gemSources
73 run3_GEM.toReplaceWith(DQMOfflineMuonDPG, _run3_GEM_DQMOfflineMuonDPG)
74 
75 DQMOfflineCASTOR = cms.Sequence( castorSources )
76 
77 DQMOfflineCTPPS = cms.Sequence( ctppsDQMOfflineSource )
78 
79 DQMOfflinePreDPG = cms.Sequence( DQMOfflineDCS *
80  DQMOfflineL1T *
81  DQMOfflineEcal *
82  DQMOfflineHcal *
83  DQMOfflineHcal2 *
84  DQMOfflineTrackerStrip *
85  DQMOfflineTrackerPixel *
86  DQMOfflineMuonDPG *
87  DQMOfflineCASTOR *
88  DQMOfflineCTPPS )
89 
90 DQMOfflineDPG = cms.Sequence( DQMOfflinePreDPG *
91  DQMMessageLogger )
92 
95 from DQM.TrackingMonitor.trackingRecoMaterialAnalyzer_cfi import materialDumperAnalyzer
102 from DQM.Physics.DQMPhysics_cff import *
104 
105 DQMOfflineVertex = cms.Sequence( pvMonitor )
106 
107 materialDumperAnalyzer.usePV = True
108 DQMOfflineTracking = cms.Sequence( TrackingDQMSourceTier0 *
109  DQMOfflineVertex *
110  materialDumperAnalyzer )
111 
112 DQMOfflineMUO = cms.Sequence(muonMonitors)
113 muonRecoAnalyzer.doMVA = cms.bool( True )
114 muonRecoAnalyzer_miniAOD.doMVA = cms.bool( True )
115 
116 DQMOfflineJetMET = cms.Sequence( jetMETDQMOfflineSource )
117 
118 DQMOfflineEGamma = cms.Sequence( egammaDQMOffline )
119 
120 DQMOfflineTrigger = cms.Sequence( triggerOfflineDQMSource )
121 
122 DQMOfflineBTag = cms.Sequence( bTagPlotsDATA )
123 
124 DQMOfflineBeam = cms.Sequence( alcaBeamMonitor )
125 
126 DQMOfflinePhysics = cms.Sequence( dqmPhysics )
127 
128 DQMOfflineHeavyFlavor = cms.Sequence( heavyFlavorDQMSource )
129 
130 DQMOfflinePrePOG = cms.Sequence( DQMOfflineTracking *
131  DQMOfflineMUO *
132  DQMOfflineJetMET *
133  DQMOfflineEGamma *
134  DQMOfflineTrigger *
135  DQMOfflineBTag *
136  DQMOfflineBeam *
137  DQMOfflinePhysics )
138 
139 
140 DQMOfflinePOG = cms.Sequence( DQMOfflinePrePOG *
141  DQMMessageLogger )
142 
143 HLTMonitoring = cms.Sequence( OfflineHLTMonitoring )
144 HLTMonitoringPA = cms.Sequence( OfflineHLTMonitoringPA )
145 
146 # Data
147 DQMOffline = cms.Sequence( DQMOfflinePreDPG *
148  DQMOfflinePrePOG *
149  HLTMonitoring *
150  DQMMessageLogger )
151 
152 DQMOfflineExtraHLT = cms.Sequence( offlineValidationHLTSource )
153 
154 
155 DQMOfflineFakeHLT = cms.Sequence( DQMOffline )
156 DQMOfflineFakeHLT.remove( HLTMonitoring )
157 DQMOfflineFakeHLT.remove( DQMOfflineTrigger )
158 
159 #MC
160 DQMOfflinePrePOGMC = cms.Sequence( DQMOfflineVertex *
161  DQMOfflineBTag *
162  DQMOfflinePhysics )
163 
164 DQMOfflinePOGMC = cms.Sequence( DQMOfflinePrePOGMC *
165  DQMMessageLogger )
166 
167 #DQMOfflineCommon
172 
173 DQMOfflinePixelTracking = cms.Sequence( pixelTracksMonitoring *
174  pixelPVMonitor *
175  monitorpixelSoASource )
176 
177 
178 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
179 _DQMOfflinePixelTrackingNoSoA = DQMOfflinePixelTracking.copy()
180 _DQMOfflinePixelTrackingNoSoA = cms.Sequence(pixelTracksMonitoring * pixelPVMonitor)
181 
182 phase2_tracker.toReplaceWith(DQMOfflinePixelTracking, _DQMOfflinePixelTrackingNoSoA)
183 
184 DQMOuterTracker = cms.Sequence( DQMOfflineDCS *
185  OuterTrackerSource *
186  DQMMessageLogger *
187  DQMOfflinePhysics *
188  DQMOfflineVertex
189  )
190 
191 DQMOfflineTrackerPhase2 = cms.Sequence( trackerphase2DQMSource )
192 
193 DQMOfflineTAU = cms.Sequence( produceDenomsData *
194  pfTauRunDQMValidation )
195 
196 DQMOfflineTrackerStripCommon = cms.Sequence( SiStripDQMTier0Common )
197 
198 DQMOfflineTrackerPixel = cms.Sequence( siPixelOfflineDQM_source )
199 
200 DQMOfflineCommon = cms.Sequence( DQMOfflineDCS *
201  DQMMessageLogger *
202  DQMOfflineTrackerStrip *
203  DQMOfflineTrackerPixel *
204  DQMOfflineTracking *
205  DQMOfflineTrigger *
206  DQMOfflineBeam *
207  DQMOfflineCASTOR *
208  DQMOfflinePhysics *
209  DQMOfflineTAU
210  )
211 
212 DQMOfflineCommonFakeHLT = cms.Sequence( DQMOfflineCommon )
213 DQMOfflineCommonFakeHLT.remove( DQMOfflineTrigger )
214 
215 #MinBias/ZeroBias
216 DQMOfflineTrackerStripMinBias = cms.Sequence( SiStripDQMTier0MinBias )
217 
218 DQMOfflineTrackingMinBias = cms.Sequence( TrackingDQMSourceTier0MinBias *
219  DQMOfflineVertex *
220  materialDumperAnalyzer )
221 
222 
223 DQMOfflineCommonSiStripZeroBias = cms.Sequence( DQMOfflineDCS *
224  DQMMessageLogger *
225  DQMOfflineTrackerStripMinBias *
226  DQMOfflineTrackerPixel *
227  DQMOfflineL1T *
228  DQMOfflineTrigger *
229  DQMOfflineBeam *
230  DQMOfflineCASTOR *
231  DQMOfflinePhysics *
232  DQMOfflineTrackingMinBias
233  )
234 
235 DQMOfflineCommonSiStripZeroBiasFakeHLT = cms.Sequence( DQMOfflineCommonSiStripZeroBias )
236 DQMOfflineCommonSiStripZeroBiasFakeHLT.remove( DQMOfflineTrigger )
237 
238 #Other definitons
239 from DQMOffline.Lumi.ZCounting_cff import *
240 
241 DQMOfflineLumi = cms.Sequence ( zcounting )
242 
243 DQMOfflineMuon = cms.Sequence( dtSources *
244  rpcTier0Source *
245  cscSources *
246  muonMonitors
247  )
248 
249 _run3_GEM_DQMOfflineMuon = DQMOfflineMuon.copy()
250 _run3_GEM_DQMOfflineMuon += gemSources
251 run3_GEM.toReplaceWith(DQMOfflineMuon, _run3_GEM_DQMOfflineMuon)
252 
253 #Taus not created in pp conditions for HI
254 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
255 _DQMOfflineTAU = cms.Sequence()
256 pp_on_AA.toReplaceWith(DQMOfflineTAU, _DQMOfflineTAU)
257 
258 
259 # miniAOD DQM validation
260 from Validation.RecoParticleFlow.miniAODDQM_cff import * # On MiniAOD vs RECO
261 from Validation.RecoParticleFlow.DQMForPF_MiniAOD_cff import * # MiniAOD PF variables
264 from DQMOffline.Muon.miniAOD_cff import *
265 from DQM.Physics.DQMTopMiniAOD_cff import *
266 
267 DQMOfflineMiniAOD = cms.Sequence(jetMETDQMOfflineRedoProductsMiniAOD*bTagMiniDQMSource*muonMonitors_miniAOD*MuonMiniAOD*DQMOfflinePF)
268 
269 #Post sequences are automatically placed in the EndPath by ConfigBuilder if PAT is run.
270 #miniAOD DQM sequences need to access the filter results.
271 
272 PostDQMOfflineMiniAOD = cms.Sequence(miniAODDQMSequence*jetMETDQMOfflineSourceMiniAOD*tracksDQMMiniAOD*topPhysicsminiAOD)
273 PostDQMOffline = cms.Sequence()
274 
275 from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
276 run3_HB.toReplaceWith( PostDQMOfflineMiniAOD, PostDQMOfflineMiniAOD.copyAndExclude([
277  pfMetDQMAnalyzerMiniAOD, pfPuppiMetDQMAnalyzerMiniAOD # No hcalnoise (yet)
278 ]))
279 
280 from PhysicsTools.NanoAOD.nanoDQM_cff import nanoDQM
281 DQMOfflineNanoAOD = cms.Sequence(nanoDQM)
282 #PostDQMOfflineNanoAOD = cms.Sequence(nanoDQM)
283 from PhysicsTools.NanoAOD.nanogenDQM_cff import nanogenDQM
284 DQMOfflineNanoGen = cms.Sequence(nanogenDQM)