Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:11:51

0001 
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 process = cms.Process("SiStrpDQMQTestTuning")
0005 
0006 
0007 ## Empty Event Source
0008 process.source = cms.Source("EmptyIOVSource",
0009                               lastRun = cms.untracked.uint32(100),
0010                               timetype = cms.string('runnumber'),
0011                               firstValue= cms.uint64(1),
0012                               lastValue= cms.uint64(1),
0013                               interval = cms.uint64(1)
0014                             )
0015 
0016 process.maxEvents = cms.untracked.PSet(
0017     input = cms.untracked.int32(1)
0018 )
0019 
0020 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0021 process.GlobalTag.globaltag = "GR09_P_V2::All"
0022 
0023 # DQM Environment
0024 process.load("DQMServices.Core.DQM_cfg")
0025 
0026 process.load("Configuration.Geometry.GeometryExtended2017_cff")
0027 process.load("CalibTracker.SiStripCommon.TkDetMapESProducer_cfi")
0028 process.load("Geometry.TrackerGeometryBuilder.trackerParameters_cfi")
0029 process.trackerTopology = cms.ESProducer("TrackerTopologyEP")
0030 
0031 # SiStrip Offline DQM Client
0032 # SiStrip Offline DQM Client
0033 process.siStripOfflineAnalyser = cms.EDProducer("SiStripOfflineDQM",
0034        GlobalStatusFilling      = cms.untracked.int32(-1),
0035        CreateSummary            = cms.untracked.bool(False),
0036        SummaryConfigPath        = cms.untracked.string("DQM/SiStripMonitorClient/data/sistrip_monitorelement_config.xml"),
0037        UsedWithEDMtoMEConverter = cms.untracked.bool(False),
0038        PrintFaultyModuleList    = cms.untracked.bool(False),
0039        InputFileName            = cms.untracked.string("file:/afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/data/Online//110/998/DQM_V0002_R000110998.root"),
0040        OutputFileName           = cms.untracked.string("test.root"),
0041        CreateTkMap              = cms.untracked.bool(True),
0042        TkmapParameters          = cms.untracked.PSet(
0043           loadFedCabling    = cms.untracked.bool(True),
0044           trackerdatPath    = cms.untracked.string('CommonTools/TrackerMap/data/'),
0045           trackermaptxtPath = cms.untracked.string('CommonTools/TrackerMap/data/'),
0046        ),
0047        TkMapOptions         = cms.untracked.vstring('QTestAlarm','FractionOfBadChannels','NumberOfCluster','NumberOfDigi','NumberOfOfffTrackCluster','NumberOfOnTrackCluster','StoNCorrOnTrack')
0048 )
0049 
0050 
0051 # QTest module
0052 from DQMServices.Core.DQMQualityTester import DQMQualityTester
0053 process.siStripQTester = DQMQualityTester(
0054                               qtList = cms.untracked.FileInPath('DQM/SiStripMonitorClient/data/sistrip_qualitytest_config.xml'),
0055                               prescaleFactor = cms.untracked.int32(1),
0056                               getQualityTestsFromFile = cms.untracked.bool(True)
0057                           )
0058 
0059 
0060 # Tracer service
0061 process.Tracer = cms.Service('Tracer',indentation = cms.untracked.string('$$'))
0062 process.load('DQM.SiStripCommon.MessageLogger_cfi')
0063 
0064 process.p1 = cms.Path(process.siStripOfflineAnalyser)