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     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 
0014 process.source = cms.Source("EmptyIOVSource",
0015     firstValue = cms.uint64(1),
0016     lastValue = cms.uint64(100000),
0017     timetype = cms.string('runnumber'),
0018     interval = cms.uint64(1)
0019 )
0020 
0021 process.maxEvents = cms.untracked.PSet(
0022     input = cms.untracked.int32(-1)
0023 )
0024 process.a = cms.ESSource("PoolDBESSource",
0025     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0026     DBParameters = cms.PSet(
0027         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0028     ),
0029     timetype = cms.string('runnumber'),
0030     toGet = cms.VPSet(cms.PSet(
0031         record = cms.string('SiStripBadModuleRcd'),
0032         tag = cms.string('SiStripBadChannel_v1')
0033     )),
0034     connect = cms.string('sqlite_file:dbfile.db')
0035 )
0036 
0037 process.b = cms.ESSource("PoolDBESSource",
0038     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0039     DBParameters = cms.PSet(
0040         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0041     ),
0042     timetype = cms.string('runnumber'),
0043     toGet = cms.VPSet(cms.PSet(
0044         record = cms.string('SiStripFedCablingRcd'),
0045         tag = cms.string('SiStripFedCabling_GR_21X_v2_hlt')
0046     ), 
0047         cms.PSet(
0048             record = cms.string('SiStripBadChannelRcd'),
0049             tag = cms.string('SiStripBadChannel_GR_21X_v2_hlt')
0050         )),
0051     connect = cms.string('oracle://cms_orcoff_prod/CMS_COND_21X_STRIP')
0052 )
0053 
0054 process.sistripconn = cms.ESProducer("SiStripConnectivity")
0055 
0056 process.SiStripQualityESProducer = cms.ESProducer("SiStripQualityESProducer",
0057     PrintDebug = cms.untracked.bool(True),
0058     appendToDataLabel = cms.string('test'),
0059     ReduceGranularity = cms.bool(True),
0060     ThresholdForReducedGranularity = cms.double(0.3),
0061     ListOfRecordToMerge = cms.VPSet(cms.PSet(
0062         record = cms.string('SiStripBadModuleRcd'),
0063         tag = cms.string('')
0064     ), 
0065         cms.PSet(
0066             record = cms.string('SiStripBadChannelRcd'),
0067             tag = cms.string('')
0068         ), 
0069         cms.PSet(
0070             record = cms.string('SiStripDetCablingRcd'),
0071             tag = cms.string('')
0072         ))
0073 )
0074 
0075 #### Add these lines to produce a tracker map
0076 #process.load("DQM.SiStripCommon.TkHistoMap_cff")
0077 ### load TrackerTopology (needed for TkDetMap and TkHistoMap)
0078 #process.load("Configuration.Geometry.GeometryExtended2017_cff")
0079 #process.load("Geometry.TrackerGeometryBuilder.trackerParameters_cfi")
0080 #process.trackerTopology = cms.ESProducer("TrackerTopologyEP")
0081 ####
0082 
0083 from CalibTracker.SiStripQuality.siStripQualityStatistics_cfi import siStripQualityStatistics
0084 process.stat = siStripQualityStatistics.clone(
0085         #TkMapFileName = cms.untracked.string('TkMaps/TkMapBadComponents_full.png'),
0086         StripQualityLabel = cms.string("test")
0087         )
0088 
0089 process.out = cms.OutputModule("AsciiOutputModule")
0090 
0091 process.p = cms.Path(process.stat)
0092 process.ep = cms.EndPath(process.out)
0093