File indexing completed on 2024-04-06 12:03:27
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("ProcessOne")
0004
0005
0006
0007
0008 process.load('FWCore.MessageService.MessageLogger_cfi')
0009 process.MessageLogger.cerr.enable = False
0010 process.MessageLogger.SiPixelQualityProbabilitiesTestReader=dict()
0011 process.MessageLogger.SiPixelQualityProbabilities=dict()
0012 process.MessageLogger.cout = cms.untracked.PSet(
0013 enable = cms.untracked.bool(True),
0014 enableStatistics = cms.untracked.bool(True),
0015 threshold = cms.untracked.string("INFO"),
0016 default = cms.untracked.PSet(limit = cms.untracked.int32(0)),
0017 FwkReport = cms.untracked.PSet(limit = cms.untracked.int32(-1),
0018 reportEvery = cms.untracked.int32(1000)
0019 ),
0020 SiPixelQualityProbabilitiesTestReader = cms.untracked.PSet( limit = cms.untracked.int32(-1)),
0021 SiPixelQualityProbabilities = cms.untracked.PSet( limit = cms.untracked.int32(-1))
0022 )
0023
0024
0025
0026
0027 process.source = cms.Source("EmptyIOVSource",
0028 timetype = cms.string('runnumber'),
0029 firstValue = cms.uint64(1),
0030 lastValue = cms.uint64(1),
0031 interval = cms.uint64(1)
0032 )
0033
0034
0035
0036 from CondCore.CondDB.CondDB_cfi import *
0037 CondDBQualityProbabilities = CondDB.clone(connect = cms.string("sqlite_file:SiPixelStatusScenarioProbabilities.db"))
0038
0039 process.dbInput = cms.ESSource("PoolDBESSource",
0040 CondDBQualityProbabilities,
0041 toGet = cms.VPSet(cms.PSet(record = cms.string('SiPixelStatusScenarioProbabilityRcd'),
0042 tag = cms.string('SiPixelQualityProbabilities_v0_mc')
0043 )
0044 )
0045 )
0046
0047
0048
0049 process.get = cms.EDAnalyzer("EventSetupRecordDataGetter",
0050 toGet = cms.VPSet(cms.PSet(record = cms.string('SiPixelStatusScenarioProbabilityRcd'),
0051 data = cms.vstring('SiPixelQualityProbabilities')
0052 )
0053 ),
0054 verbose = cms.untracked.bool(True)
0055 )
0056
0057
0058
0059 process.ReadDB = cms.EDAnalyzer("SiPixelQualityProbabilitiesTestReader")
0060 process.ReadDB.printDebug = cms.untracked.bool(True)
0061 process.ReadDB.outputFile = cms.untracked.string('SiPixelQualityProbabilities.log')
0062
0063 process.p = cms.Path(process.get+process.ReadDB)