Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-06-18 02:12:17

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 
0004 
0005 # filter on trigger type
0006 calibrationEventsFilter = cms.EDFilter("HLTTriggerTypeFilter",
0007                                        # 1=Physics, 2=Calibration, 3=Random, 4=Technical
0008                                        SelectedTriggerType = cms.int32(2) 
0009                                        )
0010 
0011 # filter on trigger type
0012 physicsEventsFilter = cms.EDFilter("HLTTriggerTypeFilter",
0013                                    # 1=Physics, 2=Calibration, 3=Random, 4=Technical
0014                                    SelectedTriggerType = cms.int32(1) 
0015                                    )
0016 
0017 # GT unpacker
0018 import EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi
0019 gtDigis = EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi.l1GtUnpack.clone(
0020    DaqGtInputTag = 'rawDataCollector'
0021 )
0022 
0023 # Scalers info
0024 from EventFilter.ScalersRawToDigi.ScalersRawToDigi_cfi import *
0025 scalersRawToDigi.scalersInputTag = 'rawDataCollector'
0026 
0027 # DT digitization and reconstruction
0028 # Switched to TwinMux
0029 from EventFilter.L1TXRawToDigi.twinMuxStage2Digis_cfi import *
0030 twinMuxStage2Digis.DTTM7_FED_Source = 'rawDataCollector'
0031 
0032 #dtunpacker.readOutParameters.performDataIntegrityMonitor = True
0033 #dtunpacker.readOutParameters.rosParameters.performDataIntegrityMonitor = True
0034 #dtunpacker.readOutParameters.debug = False
0035 #dtunpacker.readOutParameters.rosParameters.debug = False
0036 #dtunpacker.inputLabel = 'rawDataCollector'
0037 
0038 import EventFilter.DTRawToDigi.dturosunpacker_cfi
0039 dtunpacker = EventFilter.DTRawToDigi.dturosunpacker_cfi.dturosunpacker.clone()
0040 
0041 from RecoLocalMuon.Configuration.RecoLocalMuon_cff import *
0042 dt1DRecHits.dtDigiLabel = 'dtunpacker'
0043 
0044 from Configuration.StandardSequences.FrontierConditions_GlobalTag_cff import *
0045 
0046 # Data integrity
0047 from DQM.DTMonitorModule.dtDataIntegrityTask_cfi import *
0048 from DQM.DTMonitorClient.dtDataIntegrityTest_cfi import *
0049 from DQM.DTMonitorClient.dtBlockedROChannelsTest_cfi import *
0050 dtDataIntegrityTask.processingMode = 'Online'
0051 dtDataIntegrityTask.dtFEDlabel     = 'dtunpacker'
0052 blockedROChannelTest.checkUros      = True
0053 
0054 # Digi task
0055 from DQM.DTMonitorModule.dtDigiTask_cfi import *
0056 from DQM.DTMonitorClient.dtOccupancyTest_cfi import *
0057 from DQM.DTMonitorClient.dtOccupancyTestML_cfi import *
0058 dtDigiMonitor.readDB = False 
0059 dtDigiMonitor.filterSyncNoise = True
0060 dtDigiMonitor.lookForSyncNoise = True
0061 
0062 # Local Trigger task
0063 from DQM.DTMonitorModule.dtTriggerBaseTask_cfi import *
0064 from DQM.DTMonitorModule.dtTriggerLutTask_cfi import *
0065 from DQM.DTMonitorClient.dtLocalTriggerTest_cfi import *
0066 from DQM.DTMonitorClient.dtTriggerLutTest_cfi import *
0067 triggerTest.hwSources = ['TM']
0068 # scaler task
0069 from DQM.DTMonitorModule.dtScalerInfoTask_cfi import *
0070 
0071 # segment reco task
0072 from DQM.DTMonitorModule.dtSegmentTask_cfi import *
0073 from DQM.DTMonitorClient.dtSegmentAnalysisTest_cfi import *
0074 
0075 # resolution task
0076 from DQM.DTMonitorModule.dtResolutionTask_cfi import *
0077 
0078 # noise task
0079 from DQM.DTMonitorModule.dtNoiseTask_cfi import *
0080 from DQM.DTMonitorClient.dtNoiseAnalysis_cfi import *
0081 dtNoiseAnalysisMonitor.doSynchNoise = True
0082 
0083 # report summary
0084 from DQM.DTMonitorClient.dtSummaryClients_cfi import *
0085 
0086 from DQMServices.Core.DQMQualityTester import DQMQualityTester
0087 dtqTester = DQMQualityTester(
0088                          #reportThreshold = cms.untracked.string('red'),
0089                          prescaleFactor = cms.untracked.int32(1),
0090                          qtList = cms.untracked.FileInPath('DQM/DTMonitorClient/test/QualityTests.xml'),
0091                          getQualityTestsFromFile = cms.untracked.bool(True)
0092                          )
0093 
0094 
0095 # test pulse monitoring
0096 from DQM.DTMonitorModule.dtDigiTask_TP_cfi import *
0097 from DQM.DTMonitorClient.dtOccupancyTest_TP_cfi import *
0098 # New time window for TPs
0099 dtTPmonitor.defaultTtrig = 750
0100 dtTPmonitor.defaultTmax = 200
0101 dtTPmonitor.inTimeHitsLowerBound = 0
0102 dtTPmonitor.inTimeHitsUpperBound = 0
0103 
0104 # Local Trigger task for test pulses
0105 from DQM.DTMonitorModule.dtTriggerTask_TP_cfi import *
0106 from DQM.DTMonitorClient.dtLocalTriggerTest_TP_cfi import *
0107 dtTPTriggerTest.hwSources = ['TM']
0108 
0109 unpackers = cms.Sequence(dtunpacker + twinMuxStage2Digis + scalersRawToDigi)
0110 
0111 reco = cms.Sequence(dt1DRecHits + dt4DSegments)
0112 
0113 # sequence of DQM tasks to be run on physics events only
0114 dtDQMTask = cms.Sequence(dtDataIntegrityTask + dtDigiMonitor + dtSegmentAnalysisMonitor + dtTriggerBaseMonitor + dtTriggerLutMonitor + dtNoiseMonitor + dtResolutionAnalysisMonitor)
0115 
0116 # DQM clients to be run on physics event only
0117 dtDQMTest = cms.Sequence(dataIntegrityTest + blockedROChannelTest + triggerLutTest + triggerTest + dtOccupancyTest + dtOccupancyTestML + segmentTest + dtNoiseAnalysisMonitor + dtSummaryClients + dtqTester)
0118 
0119 # DQM tasks and clients to be run on calibration events only
0120 dtDQMCalib = cms.Sequence(dtTPmonitor + dtTPTriggerMonitor + dtTPmonitorTest + dtTPTriggerTest)
0121 
0122 # sequence to be run on physics events (includes filters, reco and DQM)
0123 dtDQMPhysSequence = cms.Sequence(dtScalerInfoMonitor + gtDigis + reco + dtDQMTask + dtDQMTest)
0124