Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:10

0001 database = "sqlite_file:testOOTPileupCorrection.db"
0002 tag = "test"
0003 outputfile = "testOOTPileupCorrection_dbread.bbin"
0004 
0005 import FWCore.ParameterSet.Config as cms
0006 
0007 process = cms.Process('OOTPileupCorrectionDBRead')
0008 
0009 process.source = cms.Source('EmptySource') 
0010 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1)) 
0011 
0012 process.load("CondCore.CondDB.CondDB_cfi")
0013 process.CondDB.connect = database
0014 process.CondDB.dbFormat = cms.untracked.int32(1)
0015 
0016 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0017     process.CondDB,
0018     toGet = cms.VPSet(cms.PSet(
0019         record = cms.string("HcalOOTPileupCorrectionRcd"),
0020         tag = cms.string(tag)
0021     ))
0022 )
0023 
0024 process.dumper = cms.EDAnalyzer(
0025     'OOTPileupCorrectionDBReader',
0026     outputFile = cms.string(outputfile),
0027     dumpMetadata = cms.untracked.bool(True)
0028 )
0029 
0030 process.p = cms.Path(process.dumper)