Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:07:07

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("HLT-DTDQM")
0004 
0005 #----------------------------
0006 #### Event Source
0007 #----------------------------
0008 process.load("DQM.Integration.test.inputsource_cfi")
0009 process.EventStreamHttpReader.consumerName = 'DT DQM Consumer'
0010 
0011 
0012 #----------------------------
0013 #### DQM Environment
0014 #----------------------------
0015 process.load("DQMServices.Core.DQM_cfg")
0016 
0017 process.load("DQMServices.Components.DQMEnvironment_cfi")
0018 
0019 
0020 #----------------------------
0021 #### DQM Live Environment
0022 #----------------------------
0023 process.load("DQM.Integration.test.environment_cfi")
0024 process.DQM.collectorHost = 'srv-c2d05-13.cms'
0025 process.DQM.collectorPort = 9190
0026 process.dqmEnv.subSystemFolder = 'DT'
0027 process.dqmSaver.convention = 'Online'
0028 process.dqmSaver.dirName = '/localdatadisk/DTDQM/dqmdata'
0029 process.dqmSaver.producer = 'DQM'
0030 
0031 process.dqmSaver.saveByTime = -1
0032 process.dqmSaver.saveByLumiSection = -1
0033 process.dqmSaver.saveByMinute = -1
0034 process.dqmSaver.saveByRun = 1
0035 process.dqmSaver.saveAtJobEnd = True
0036 #-----------------------------
0037 
0038 
0039 # DT reco and DQM sequences
0040 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0041 
0042 # filter on trigger type
0043 physicsEventsFilter = cms.EDFilter("HLTTriggerTypeFilter",
0044                                    # 1=Physics, 2=Calibration, 3=Random, 4=Technical
0045                                    SelectedTriggerType = cms.int32(1) 
0046                                    )
0047 
0048 
0049 from Configuration.StandardSequences.FrontierConditions_GlobalTag_cff import *
0050 #---- for P5 (online) DB access
0051 process.GlobalTag.globaltag = "CRAFT_V17H::All"
0052 #---- for offline DB
0053 #process.GlobalTag.globaltag = "CRAFT_V2P::All"
0054 
0055 # segment reco task
0056 process.load("DQM.DTMonitorModule.dtSegmentTask_cfi")
0057 process.dtSegmentAnalysisMonitor.recHits4DLabel = 'hltDt4DSegments'
0058 process.dtSegmentAnalysisMonitor.topHistoFolder = "HLT/DTSegments"
0059 process.dtSegmentAnalysisMonitor.hltDQMMode = True
0060 process.load("DQM.DTMonitorClient.dtSegmentAnalysisTest_cfi")
0061 process.segmentTest.topHistoFolder = "HLT/DTSegments"
0062 process.segmentTest.hltDQMMode = True
0063 
0064 
0065 # resolution task
0066 process.load("DQM.DTMonitorModule.dtResolutionTask_cfi")
0067 process.dtResolutionAnalysisMonitor.recHits4DLabel = 'hltDt4DSegments'
0068 process.dtResolutionAnalysisMonitor.topHistoFolder = "HLT/DTSegments"
0069 process.load("DQM.DTMonitorClient.dtResolutionAnalysisTest_cfi")
0070 process.dtResolutionAnalysisTest.topHistoFolder = "HLT/DTSegments"
0071 
0072 
0073 # message logger
0074 process.MessageLogger = cms.Service("MessageLogger",
0075                                     destinations = cms.untracked.vstring('cout'),
0076                                     cout = cms.untracked.PSet(threshold = cms.untracked.string('WARNING'))
0077                                     )
0078 
0079 process.dqmmodules = cms.Sequence(process.dqmEnv + process.dqmSaver)
0080 
0081 process.dtDQMTask = cms.Sequence(dtSegmentAnalysisMonitor + dtResolutionAnalysisMonitor)
0082 
0083 process.dtDQMTest = cms.Sequence(segmentTest + dtResolutionAnalysisTest)
0084 
0085 process.dtDQMPathPhys = cms.Path(process.unpackers + process.dqmmodules + process.physicsEventsFilter * process.dtDQMTask + process.dtDQMTest)
0086 
0087 
0088