File indexing completed on 2024-04-06 11:59:52
0001
0002
0003
0004
0005
0006
0007 import FWCore.ParameterSet.Config as cms
0008
0009 process = cms.Process("Reader")
0010
0011 process.MessageLogger = cms.Service("MessageLogger",
0012 cerr = cms.untracked.PSet(
0013 enable = cms.untracked.bool(False)
0014 ),
0015 debugModules = cms.untracked.vstring(''),
0016 files = cms.untracked.PSet(
0017 QualityReader = cms.untracked.PSet(
0018 threshold = cms.untracked.string('INFO')
0019 )
0020 )
0021 )
0022
0023 process.maxEvents = cms.untracked.PSet(
0024 input = cms.untracked.int32(100)
0025 )
0026 process.source = cms.Source("EmptySource",
0027 numberEventsInRun = cms.untracked.uint32(1),
0028 firstRun = cms.untracked.uint32(1)
0029 )
0030
0031 process.poolDBESSource = cms.ESSource("PoolDBESSource",
0032 BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0033 DBParameters = cms.PSet(
0034 messageLevel = cms.untracked.int32(2),
0035 authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0036 ),
0037 timetype = cms.untracked.string('runnumber'),
0038 connect = cms.string('sqlite_file:dbfile.db'),
0039 toGet = cms.VPSet(
0040 cms.PSet(record = cms.string('SiStripBadFiberRcd'),tag = cms.string('SiStripBadModule_Fake_TIB')),
0041 cms.PSet(record = cms.string('SiStripBadChannelRcd'),tag = cms.string('SiStripBadModule_Fake_TID'))
0042 )
0043 )
0044
0045 process.load("CalibTracker.SiStripESProducers.SiStripQualityESProducer_cfi")
0046 process.siStripQualityESProducer.ReduceGranularity = cms.bool(False)
0047 process.siStripQualityESProducer.ListOfRecordToMerge = cms.VPSet(
0048 cms.PSet( record = cms.string("SiStripBadChannelRcd"), tag = cms.string("") ),
0049 cms.PSet( record = cms.string("SiStripBadFiberRcd"), tag = cms.string("") )
0050 )
0051
0052
0053
0054 process.load("CalibTracker.SiStripESProducers.DBWriter.SiStripBadStripFromQualityDummyDBWriter_cfi")
0055 process.siStripBadStripFromQualityDummyDBWriter.OpenIovAt = cms.untracked.string("currentTime")
0056
0057 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0058 BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0059 DBParameters = cms.PSet(
0060 messageLevel = cms.untracked.int32(2),
0061 authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0062 ),
0063 timetype = cms.untracked.string('runnumber'),
0064 connect = cms.string('sqlite_file:dbfile.db'),
0065 toPut = cms.VPSet(cms.PSet(
0066 record = cms.string('SiStripBadStrip'),
0067 tag = cms.string('SiStripBadModule_Fake_merged2')
0068 ))
0069 )
0070
0071 from CalibTracker.SiStripQuality.siStripQualityStatistics_cfi import siStripQualityStatistics
0072 process.reader = siStripQualityStatistics.clone()
0073
0074 process.siStripBadStripFromQualityDummyDBWriter.record=process.PoolDBOutputService.toPut[0].record
0075 process.p1 = cms.Path(process.reader*process.siStripBadStripFromQualityDummyDBWriter)
0076
0077