File indexing completed on 2024-04-06 12:19:25
0001
0002 import FWCore.ParameterSet.Config as cms
0003
0004 process = cms.Process("metdbreader")
0005
0006
0007
0008 process.MessageLogger = cms.Service("MessageLogger",
0009 cerr = cms.untracked.PSet(
0010 enable = cms.untracked.bool(False)
0011 ),
0012 debugModules = cms.untracked.vstring('demo1'),
0013 files = cms.untracked.PSet(
0014 myDebugOutputFile = cms.untracked.PSet(
0015 default = cms.untracked.PSet(
0016 limit = cms.untracked.int32(-1)
0017 ),
0018 threshold = cms.untracked.string('DEBUG')
0019 )
0020 )
0021 )
0022
0023
0024
0025 process.load("CondCore.CondDB.CondDB_cfi")
0026
0027 process.CondDB.connect = 'sqlite_file:Summer16_V0_MC_MEtXY.db'
0028
0029 process.maxEvents = cms.untracked.PSet(
0030 input = cms.untracked.int32(1)
0031 )
0032
0033 process.source = cms.Source("EmptySource")
0034
0035
0036 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0037 process.CondDB,
0038 timetype = cms.string('runnumber'),
0039 toGet = cms.VPSet(
0040 cms.PSet(
0041 record = cms.string('MEtXYcorrectRecord'),
0042
0043 tag = cms.string('MEtXYcorrectParametersCollection_Summer16_V0_MC_PfType1Met'),
0044
0045 label = cms.untracked.string('PfType1MetLocal')
0046 )
0047 )
0048 )
0049
0050
0051 process.demo1 = cms.EDAnalyzer('METCorrectorDBReader',
0052 payloadName = cms.untracked.string('PfType1MetLocal'),
0053 printScreen = cms.untracked.bool(True),
0054 createTextFile = cms.untracked.bool(True),
0055
0056 globalTag = cms.untracked.string('Summer16_V0_MC_MEtXY')
0057 )
0058
0059 process.p = cms.Path(process.demo1 )