Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:09:19

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.Ecal.ecal_dqm_source_offline_cosmic_cff import *
0008 from DQM.HcalTasks.OfflineSourceSequence_cosmic import *
0009 from DQM.SiStripMonitorClient.SiStripSourceConfigTier0_Cosmic_cff import *
0010 from DQM.SiPixelCommon.SiPixelOfflineDQM_source_cff import *
0011 from DQM.SiTrackerPhase2.Phase2TrackerDQMFirstStep_cff import *
0012 from DQM.DTMonitorModule.dtDQMOfflineSources_Cosmics_cff import *
0013 from DQM.RPCMonitorClient.RPCTier0Source_cff import *
0014 from DQM.CSCMonitorModule.csc_dqm_sourceclient_offline_cff import *
0015 from DQM.GEM.gem_dqm_offline_source_cosmics_cff import *
0016 from DQM.EcalPreshowerMonitorModule.es_dqm_source_offline_cosmic_cff import *
0017 from DQM.CastorMonitor.castor_dqm_sourceclient_offline_cff import *
0018 
0019 DQMNone = cms.Sequence()
0020 
0021 dqmProvInfo.runType = "cosmics_run"
0022 dqmProvInfo.dcsRecord = cms.untracked.InputTag("onlineMetaDataDigis")
0023 DQMOfflineCosmicsDCS = cms.Sequence( dqmProvInfo )
0024 
0025 DQMOfflineCosmicsEcal = cms.Sequence( ecal_dqm_source_offline *
0026                                 es_dqm_source_offline )
0027 
0028 DQMOfflineCosmicsHcal = cms.Sequence( hcalOfflineSourceSequence )
0029 
0030 DQMOfflineCosmicsTrackerStrip = cms.Sequence( SiStripDQMTier0 )
0031 
0032 DQMOfflineCosmicsTrackerPixel = cms.Sequence( siPixelOfflineDQM_cosmics_source )
0033 
0034 DQMOfflineCosmicsTrackerPhase2 = cms.Sequence( trackerphase2DQMSource )
0035 
0036 #tnp modules are meant for collisions only (DT has separate cff for cosmics)
0037 if cscSources.contains(cscTnPEfficiencyMonitor):
0038     cscSources.remove(cscTnPEfficiencyMonitor)
0039 
0040 if rpcTier0Source.contains(rpcTnPEfficiencyMonitor):
0041     rpcTier0Source.remove(rpcTnPEfficiencyMonitor)
0042 
0043 DQMOfflineCosmicsMuonDPG = cms.Sequence( dtSourcesCosmics *
0044                                   rpcTier0Source *
0045                                   cscSources )
0046 
0047 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
0048 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
0049 _run3_GEM_DQMOfflineCosmicsMuonDPG = DQMOfflineCosmicsMuonDPG.copy()
0050 _run3_GEM_DQMOfflineCosmicsMuonDPG += gemSourcesCosmics
0051 (run3_GEM & ~phase2_common).toReplaceWith(DQMOfflineCosmicsMuonDPG, _run3_GEM_DQMOfflineCosmicsMuonDPG)
0052 
0053 DQMOfflineCosmicsCASTOR = cms.Sequence( castorSources )
0054 
0055 DQMOfflineCosmicsPreDPG = cms.Sequence( DQMOfflineCosmicsDCS *
0056                                         DQMOfflineCosmicsEcal *
0057                                         DQMOfflineCosmicsHcal *
0058                                         DQMOfflineCosmicsTrackerStrip *
0059                                         DQMOfflineCosmicsTrackerPixel *
0060                     DQMOfflineCosmicsMuonDPG *
0061                                         DQMOfflineCosmicsCASTOR
0062                     )
0063 
0064 # No Strip detector in Phase-2 Tracker
0065 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
0066 phase2_tracker.toReplaceWith(DQMOfflineCosmicsPreDPG,DQMOfflineCosmicsPreDPG.copyAndExclude([DQMOfflineCosmicsTrackerStrip,  DQMOfflineCosmicsTrackerPixel]))
0067          
0068 _DQMOfflineCosmicsPreDPG = DQMOfflineCosmicsPreDPG.copy()
0069 _DQMOfflineCosmicsPreDPG += DQMOfflineCosmicsTrackerPhase2
0070 phase2_tracker.toReplaceWith(DQMOfflineCosmicsPreDPG,_DQMOfflineCosmicsPreDPG)
0071 
0072 DQMOfflineCosmicsDPG = cms.Sequence( DQMOfflineCosmicsPreDPG *
0073                                      DQMMessageLogger )
0074 
0075 from DQM.TrackingMonitorSource.TrackingSourceConfig_Tier0_Cosmic_cff import *
0076 from DQMOffline.Muon.muonCosmicMonitors_cff import *
0077 from DQMOffline.JetMET.jetMETDQMOfflineSourceCosmic_cff import *
0078 from DQMOffline.EGamma.cosmicPhotonAnalyzer_cff import *
0079 from DQMOffline.L1Trigger.L1TriggerDqmOffline_cff import *
0080 from DQMOffline.Trigger.DQMOffline_Trigger_cosmics_cff import *
0081 from DQM.Physics.DQMPhysics_cff import *
0082 
0083 DQMOfflineCosmicsTracking = cms.Sequence( TrackingDQMTier0 )
0084 
0085 DQMOfflineCosmicsMUO = cms.Sequence( muonCosmicMonitors )
0086 
0087 DQMOfflineCosmicsJetMET = cms.Sequence( jetMETDQMOfflineSourceCosmic )
0088 
0089 DQMOfflineCosmicsEGamma = cms.Sequence( egammaCosmicPhotonMonitors )
0090 
0091 DQMOfflineCosmicsTrigger = cms.Sequence( l1TriggerDqmOfflineCosmics *
0092                      triggerCosmicOfflineDQMSource )
0093 
0094 DQMOfflineCosmicsPhysics = cms.Sequence( dqmPhysicsCosmics )
0095 
0096 DQMOfflineCosmicsPrePOG = cms.Sequence( DQMOfflineCosmicsTracking *
0097                                         DQMOfflineCosmicsMUO *
0098 # Following modules removed since they produce empty histograms
0099 # and are not used in DC
0100 #                                        DQMOfflineCosmicsJetMET *
0101 #                                        DQMOfflineCosmicsEGamma *
0102                                         DQMOfflineCosmicsTrigger
0103 #                   DQMOfflineCosmicsPhysics
0104                                         )
0105 
0106 phase2_common.toReplaceWith(DQMOfflineCosmicsPrePOG,DQMOfflineCosmicsPrePOG.copyAndExclude([DQMOfflineCosmicsTrigger]))
0107 
0108 DQMOfflineCosmicsPOG = cms.Sequence( DQMOfflineCosmicsPrePOG *
0109                                      DQMMessageLogger )
0110 
0111 DQMOfflineCosmics = cms.Sequence( DQMOfflineCosmicsPreDPG *
0112                                   DQMOfflineCosmicsPrePOG *
0113                                   DQMMessageLogger )
0114 
0115 PostDQMOffline = cms.Sequence()