Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-06-30 04:13:21

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("BadChannelMerge")
0004 process.MessageLogger = cms.Service("MessageLogger",
0005     cerr = cms.untracked.PSet(
0006         enable = cms.untracked.bool(False)
0007     ),
0008     cout = cms.untracked.PSet(
0009         enable = cms.untracked.bool(True),
0010         threshold = cms.untracked.string('INFO')
0011     )
0012 )
0013 process.load("Configuration.Geometry.GeometryRecoDB_cff")
0014 
0015 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0016 
0017 from Configuration.AlCa.GlobalTag import GlobalTag
0018 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_data', '')
0019 
0020 
0021 process.source = cms.Source("EmptyIOVSource",
0022     firstValue = cms.uint64(258714),
0023     lastValue = cms.uint64(258714),
0024     timetype = cms.string('runnumber'),
0025     interval = cms.uint64(1)
0026 )
0027 
0028 process.maxEvents = cms.untracked.PSet(
0029     input = cms.untracked.int32(-1)
0030 )
0031 process.load('DQMServices.Core.DQMStore_cfi')
0032 
0033 process.siStripQualityESProducer.ListOfRecordToMerge = cms.VPSet(
0034        cms.PSet(record = cms.string('SiStripBadFiberRcd'), tag = cms.string('')),
0035        cms.PSet(record = cms.string('SiStripDetCablingRcd'), tag = cms.string(''))
0036        ## BadChannel list from FED errors is added below
0037 )
0038 process.siStripQualityESProducer.ReduceGranularity = cms.bool(False)
0039 process.siStripQualityESProducer.ThresholdForReducedGranularity = cms.double(0.3)
0040 
0041 #### Add these lines to produce a tracker map
0042 process.load("DQM.SiStripCommon.TkHistoMap_cff")
0043 ####
0044 
0045 from CalibTracker.SiStripQuality.siStripQualityStatistics_cfi import siStripQualityStatistics
0046 process.stat = siStripQualityStatistics.clone(
0047         BadComponentsFromFedErrors=siStripQualityStatistics.clone(
0048             Add=cms.bool(True)
0049             )
0050         )
0051 
0052 process.p = cms.Path(process.stat)
0053