Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("CALIB")
0004 process.MessageLogger = cms.Service("MessageLogger",
0005     cout = cms.untracked.PSet(
0006         threshold = cms.untracked.string('INFO')
0007     ),
0008     destinations = cms.untracked.vstring('cout')
0009 )
0010 
0011 process.source = cms.Source("EmptyIOVSource",
0012     firstValue = cms.uint64(insertRun),
0013     lastValue = cms.uint64(insertRun),
0014     timetype = cms.string('runnumber'),
0015     interval = cms.uint64(1)
0016 )
0017 
0018 process.maxEvents = cms.untracked.PSet(
0019     input = cms.untracked.int32(-1)
0020 )
0021 process.a = cms.ESSource("PoolDBESSource",
0022     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0023     DBParameters = cms.PSet(
0024         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0025     ),
0026     timetype = cms.string('runnumber'),
0027     toGet = cms.VPSet(cms.PSet(
0028         record = cms.string('SiStripBadModuleRcd'),
0029         tag = cms.string('SiStripHotAPVs')
0030     ),
0031                       cms.PSet(
0032         record = cms.string('SiStripBadFiberRcd'),
0033         tag = cms.string('SiStripHotStrips')
0034     )),
0035     connect = cms.string('sqlite_file:dbfile.db')
0036 )
0037 
0038 process.SiStripQualityESProducer = cms.ESProducer("SiStripQualityESProducer",
0039     PrintDebug = cms.untracked.bool(True),
0040     PrintDebugOutput = cms.bool(False),
0041     UseEmptyRunInfo = cms.bool(False),
0042     appendToDataLabel = cms.string('test'),
0043     ReduceGranularity = cms.bool(False),
0044     ThresholdForReducedGranularity = cms.double(0.3),
0045     ListOfRecordToMerge = cms.VPSet(cms.PSet(
0046         record = cms.string('SiStripBadModuleRcd'),
0047         tag = cms.string('')
0048     ),
0049                                     cms.PSet(
0050         record = cms.string('SiStripBadFiberRcd'),
0051         tag = cms.string('')
0052     ))
0053 )
0054 
0055 #### Add these lines to produce a tracker map
0056 process.load("DQM.SiStripCommon.TkHistoMap_cfi")
0057 # load TrackerTopology (needed for TkDetMap and TkHistoMap)
0058 process.load("Geometry.CMSCommonData.cmsExtendedGeometry2017XML_cfi")
0059 process.load("Geometry.TrackerGeometryBuilder.trackerParameters_cfi")
0060 process.trackerTopology = cms.ESProducer("TrackerTopologyEP")
0061 ####
0062 
0063 from CalibTracker.SiStripQuality.siStripQualityStatistics_cfi import siStripQualityStatistics
0064 process.stat = siStripQualityStatistics.clone(
0065         TkMapFileName = cms.untracked.string('TkMapBadComponents_offline.png'),
0066         StripQualityLabel = cms.string("test")
0067         )
0068 
0069 process.out = cms.OutputModule("AsciiOutputModule")
0070 
0071 process.p = cms.Path(process.stat)
0072 process.ep = cms.EndPath(process.out)
0073