Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-01-31 23:17:07

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from DQMServices.Components.DQMMessageLogger_cfi import *
0004 from DQMServices.Components.DQMProvInfo_cfi import *
0005 from DQMServices.Components.DQMFastTimerService_cff import *
0006 
0007 from DQMOffline.L1Trigger.L1TriggerDqmOffline_cff import *
0008 from DQMOffline.Ecal.ecal_dqm_source_offline_cff import *
0009 from DQM.EcalPreshowerMonitorModule.es_dqm_source_offline_cff import *
0010 from DQM.HcalTasks.OfflineSourceSequence_pp import *
0011 from DQMOffline.Hcal.HcalDQMOfflineSequence_cff import *
0012 from DQM.SiStripMonitorClient.SiStripSourceConfigTier0_cff import *
0013 from DQM.SiPixelCommon.SiPixelOfflineDQM_source_cff import *
0014 from DQM.DTMonitorModule.dtDQMOfflineSources_cff import *
0015 from DQM.RPCMonitorClient.RPCTier0Source_cff import *
0016 from DQM.CSCMonitorModule.csc_dqm_sourceclient_offline_cff import *
0017 from DQM.GEM.gem_dqm_offline_source_cff import *
0018 from DQM.CastorMonitor.castor_dqm_sourceclient_offline_cff import *
0019 from DQM.CTPPS.ctppsDQM_cff import *
0020 from DQM.SiTrackerPhase2.Phase2TrackerDQMFirstStep_cff import *
0021 from DQM.SiPixelPhase1Heterogeneous.SiPixelPhase1HeterogenousDQM_FirstStep_cff import *
0022 
0023 DQMNone = cms.Sequence()
0024 
0025 DQMMessageLoggerSeq = cms.Sequence( DQMMessageLogger )
0026 
0027 dqmProvInfo.runType = "pp_run"
0028 dqmProvInfo.dcsRecord = cms.untracked.InputTag("onlineMetaDataDigis")
0029 DQMOfflineDCS = cms.Sequence( dqmProvInfo )
0030 
0031 # L1 trigger sequences
0032 DQMOfflineL1T = cms.Sequence( l1TriggerDqmOffline ) # L1 emulator is run within this sequence for real data
0033 
0034 DQMOfflineL1TEgamma = cms.Sequence( l1TriggerEgDqmOffline )
0035 
0036 DQMOfflineL1TMuon = cms.Sequence( l1TriggerMuonDqmOffline )
0037 
0038 DQMOfflineL1TPhase2 = cms.Sequence( Phase2l1TriggerDqmOffline )
0039 
0040 #DPGs
0041 DQMOfflineEcalOnly = cms.Sequence(
0042     ecalOnly_dqm_source_offline +
0043     es_dqm_source_offline )
0044 
0045 DQMOfflineEcal = cms.Sequence(
0046     ecal_dqm_source_offline +
0047     es_dqm_source_offline )
0048 
0049 from Configuration.Eras.Modifier_phase2_ecal_devel_cff import phase2_ecal_devel
0050 phase2_ecal_devel.toReplaceWith(DQMOfflineEcalOnly, DQMOfflineEcalOnly.copyAndExclude([es_dqm_source_offline]))
0051 
0052 #offline version of the online DQM: used in validation/certification
0053 DQMOfflineHcal = cms.Sequence( hcalOfflineSourceSequence )
0054 
0055 # offline DQM: used in Release validation
0056 DQMOfflineHcal2 = cms.Sequence( HcalDQMOfflineSequence )
0057 
0058 DQMOfflineHcalOnly = cms.Sequence( hcalOnlyOfflineSourceSequence )
0059 
0060 DQMOfflineHcal2Only = cms.Sequence( RecHitsDQMOffline )
0061 
0062 DQMOfflineTrackerStrip = cms.Sequence( SiStripDQMTier0 )
0063 
0064 DQMOfflineTrackerPixel = cms.Sequence(  siPixelOfflineDQM_source )
0065 
0066 DQMOfflineMuonDPG = cms.Sequence( dtSources *
0067                                   rpcTier0Source *
0068                                   cscSources )
0069 
0070 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
0071 _run3_GEM_DQMOfflineMuonDPG = DQMOfflineMuonDPG.copy()
0072 _run3_GEM_DQMOfflineMuonDPG += gemSources
0073 run3_GEM.toReplaceWith(DQMOfflineMuonDPG, _run3_GEM_DQMOfflineMuonDPG)
0074 
0075 DQMOfflineCASTOR = cms.Sequence( castorSources )
0076 
0077 DQMOfflineCTPPS = cms.Sequence( ctppsDQMOfflineSource )
0078 
0079 DQMOfflinePreDPG = cms.Sequence( DQMOfflineDCS *
0080                  DQMOfflineL1T *
0081                                  DQMOfflineEcal *
0082                                  DQMOfflineHcal *
0083                  DQMOfflineHcal2 *
0084                                  DQMOfflineTrackerStrip *
0085                  DQMOfflineTrackerPixel *
0086                  DQMOfflineMuonDPG *
0087                                  DQMOfflineCASTOR *
0088                                  DQMOfflineCTPPS )
0089 
0090 DQMOfflineDPG = cms.Sequence( DQMOfflinePreDPG *
0091                               DQMMessageLogger )
0092 
0093 from DQM.TrackingMonitorSource.TrackingSourceConfig_Tier0_cff import *
0094 from DQMOffline.RecoB.PrimaryVertexMonitor_cff import *
0095 from DQM.TrackingMonitor.trackingRecoMaterialAnalyzer_cfi import materialDumperAnalyzer
0096 from DQMOffline.Muon.muonMonitors_cff import *
0097 from DQMOffline.JetMET.jetMETDQMOfflineSource_cff import *
0098 from DQMOffline.EGamma.egammaDQMOffline_cff import *
0099 from DQMOffline.Trigger.DQMOffline_Trigger_cff import *
0100 from DQMOffline.RecoB.dqmAnalyzer_cff import *
0101 from DQM.BeamMonitor.AlcaBeamMonitor_cff import *
0102 from DQM.Physics.DQMPhysics_cff import *
0103 
0104 DQMOfflineVertex = cms.Sequence( pvMonitor )
0105 
0106 materialDumperAnalyzer.usePV = True
0107 DQMOfflineTracking = cms.Sequence( TrackingDQMSourceTier0 *
0108                                    DQMOfflineVertex *
0109                                    materialDumperAnalyzer )
0110 
0111 DQMOfflineMUO = cms.Sequence(muonMonitors)
0112 muonRecoAnalyzer.doMVA =         cms.bool( True )
0113 muonRecoAnalyzer_miniAOD.doMVA = cms.bool( True )
0114 
0115 DQMOfflineJetMET = cms.Sequence( jetMETDQMOfflineSource )
0116 
0117 DQMOfflineEGamma = cms.Sequence( egammaDQMOffline )
0118 
0119 DQMOfflineTrigger = cms.Sequence( triggerOfflineDQMSource )
0120 
0121 DQMOfflineBTag = cms.Sequence( bTagPlotsDATA )
0122 
0123 DQMOfflineBeam = cms.Sequence( alcaBeamMonitor )
0124 
0125 DQMOfflinePhysics = cms.Sequence( dqmPhysics )
0126 
0127 DQMOfflinePrePOG = cms.Sequence( DQMOfflineTracking *
0128                                  DQMOfflineMUO *
0129                                  DQMOfflineJetMET *
0130                                  DQMOfflineEGamma *
0131                                  DQMOfflineTrigger *
0132                                  DQMOfflineBTag *
0133                                  DQMOfflineBeam *
0134                                  DQMOfflinePhysics )
0135 
0136 
0137 DQMOfflinePOG = cms.Sequence( DQMOfflinePrePOG *
0138                               DQMMessageLogger )
0139 
0140 HLTMonitoring = cms.Sequence( OfflineHLTMonitoring )
0141 HLTMonitoringPA = cms.Sequence( OfflineHLTMonitoringPA )
0142 
0143 # Data
0144 DQMOffline = cms.Sequence( DQMOfflinePreDPG *
0145                            DQMOfflinePrePOG *
0146                            HLTMonitoring *
0147                            DQMMessageLogger )
0148 
0149 DQMOfflineExtraHLT = cms.Sequence( offlineValidationHLTSource )
0150 
0151 
0152 DQMOfflineFakeHLT = cms.Sequence( DQMOffline )
0153 DQMOfflineFakeHLT.remove( HLTMonitoring )
0154 DQMOfflineFakeHLT.remove( DQMOfflineTrigger )
0155 
0156 #MC
0157 DQMOfflinePrePOGMC = cms.Sequence( DQMOfflineVertex *
0158                                    DQMOfflineBTag *
0159                                    DQMOfflinePhysics )
0160 
0161 DQMOfflinePOGMC = cms.Sequence( DQMOfflinePrePOGMC *
0162                                 DQMMessageLogger )
0163 
0164 #DQMOfflineCommon
0165 from DQM.TrackingMonitorSource.pixelTracksMonitoring_cff import *
0166 from DQMOffline.RecoB.PixelVertexMonitor_cff import *
0167 from DQM.SiOuterTracker.OuterTrackerSourceConfig_cff import *
0168 from Validation.RecoTau.DQMSequences_cfi import *
0169 
0170 DQMOfflinePixelTracking = cms.Sequence( pixelTracksMonitoring *
0171                                         pixelPVMonitor *
0172                                         monitorpixelSoASource )
0173 
0174 
0175 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
0176 _DQMOfflinePixelTrackingNoSoA = DQMOfflinePixelTracking.copy()
0177 _DQMOfflinePixelTrackingNoSoA = cms.Sequence(pixelTracksMonitoring * pixelPVMonitor)
0178 
0179 phase2_tracker.toReplaceWith(DQMOfflinePixelTracking, _DQMOfflinePixelTrackingNoSoA)
0180 
0181 DQMOuterTracker = cms.Sequence( DQMOfflineDCS *
0182                                 OuterTrackerSource *
0183                                 DQMMessageLogger *
0184                                 DQMOfflinePhysics *
0185                                 DQMOfflineVertex
0186                                 )
0187 
0188 DQMOfflineTrackerPhase2 = cms.Sequence( trackerphase2DQMSource )
0189 
0190 DQMOfflineTAU = cms.Sequence( produceDenomsData *
0191                 pfTauRunDQMValidation )
0192 
0193 DQMOfflineTrackerStripCommon = cms.Sequence( SiStripDQMTier0Common )
0194 
0195 DQMOfflineTrackerPixel = cms.Sequence( siPixelOfflineDQM_source )
0196 
0197 DQMOfflineCommon = cms.Sequence( DQMOfflineDCS *
0198                                  DQMMessageLogger *
0199                  DQMOfflineTrackerStrip *
0200                  DQMOfflineTrackerPixel *
0201                                  DQMOfflineTracking *
0202                                  DQMOfflineTrigger *
0203                                  DQMOfflineBeam *
0204                                  DQMOfflineCASTOR *
0205                                  DQMOfflinePhysics *
0206                  DQMOfflineTAU
0207                                 )
0208 
0209 DQMOfflineCommonFakeHLT = cms.Sequence( DQMOfflineCommon )
0210 DQMOfflineCommonFakeHLT.remove( DQMOfflineTrigger )
0211 
0212 #MinBias/ZeroBias
0213 DQMOfflineTrackerStripMinBias = cms.Sequence( SiStripDQMTier0MinBias )
0214 
0215 DQMOfflineTrackingMinBias = cms.Sequence( TrackingDQMSourceTier0MinBias *
0216                                    DQMOfflineVertex *
0217                                    materialDumperAnalyzer )
0218 
0219 
0220 DQMOfflineCommonSiStripZeroBias = cms.Sequence( DQMOfflineDCS *
0221                                  DQMMessageLogger *
0222                  DQMOfflineTrackerStripMinBias *
0223                  DQMOfflineTrackerPixel *
0224                                  DQMOfflineL1T *
0225                                  DQMOfflineTrigger *
0226                                  DQMOfflineBeam *
0227                                  DQMOfflineCASTOR *
0228                                  DQMOfflinePhysics *
0229                  DQMOfflineTrackingMinBias
0230                                  )
0231 
0232 DQMOfflineCommonSiStripZeroBiasFakeHLT = cms.Sequence( DQMOfflineCommonSiStripZeroBias )
0233 DQMOfflineCommonSiStripZeroBiasFakeHLT.remove( DQMOfflineTrigger )
0234 
0235 #Other definitons
0236 from DQMOffline.Lumi.ZCounting_cff import *
0237 
0238 DQMOfflineLumi = cms.Sequence ( zcounting )
0239 
0240 DQMOfflineMuon = cms.Sequence( dtSources *
0241                                rpcTier0Source *
0242                                cscSources *
0243                                muonMonitors
0244                               )
0245 
0246 _run3_GEM_DQMOfflineMuon = DQMOfflineMuon.copy()
0247 _run3_GEM_DQMOfflineMuon += gemSources
0248 run3_GEM.toReplaceWith(DQMOfflineMuon, _run3_GEM_DQMOfflineMuon)
0249 
0250 #Taus not created in pp conditions for HI
0251 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
0252 _DQMOfflineTAU = cms.Sequence()
0253 pp_on_AA.toReplaceWith(DQMOfflineTAU, _DQMOfflineTAU)
0254 
0255 
0256 # miniAOD DQM validation
0257 from Validation.RecoParticleFlow.miniAODDQM_cff import * # On MiniAOD vs RECO
0258 from Validation.RecoParticleFlow.DQMForPF_MiniAOD_cff import * # MiniAOD PF variables
0259 from DQM.TrackingMonitor.tracksDQMMiniAOD_cff import *
0260 from DQMOffline.RecoB.bTagMiniDQM_cff import *
0261 from DQMOffline.Muon.miniAOD_cff import *
0262 from DQM.Physics.DQMTopMiniAOD_cff import *
0263 
0264 DQMOfflineMiniAOD = cms.Sequence(jetMETDQMOfflineRedoProductsMiniAOD*bTagMiniDQMSource*muonMonitors_miniAOD*MuonMiniAOD*DQMOfflinePF)
0265 
0266 #Post sequences are automatically placed in the EndPath by ConfigBuilder if PAT is run.
0267 #miniAOD DQM sequences need to access the filter results.
0268 
0269 PostDQMOfflineMiniAOD = cms.Sequence(miniAODDQMSequence*jetMETDQMOfflineSourceMiniAOD*tracksDQMMiniAOD*topPhysicsminiAOD)
0270 PostDQMOffline = cms.Sequence()
0271 
0272 from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
0273 run3_HB.toReplaceWith( PostDQMOfflineMiniAOD, PostDQMOfflineMiniAOD.copyAndExclude([
0274     pfMetDQMAnalyzerMiniAOD, pfPuppiMetDQMAnalyzerMiniAOD # No hcalnoise (yet)
0275 ]))
0276 
0277 from PhysicsTools.NanoAOD.nanoDQM_cff import nanoDQM
0278 DQMOfflineNanoAOD = cms.Sequence(nanoDQM)
0279 #PostDQMOfflineNanoAOD = cms.Sequence(nanoDQM)
0280 from PhysicsTools.NanoAOD.nanogenDQM_cff import nanogenDQM
0281 DQMOfflineNanoGen = cms.Sequence(nanogenDQM)