File indexing completed on 2024-04-06 12:03:10
0001 database = "sqlite_file:compatOOTPileupCorrection.db"
0002 tag = "test"
0003 inputfile = "testOOTPileupCorrection.bbin"
0004
0005 import FWCore.ParameterSet.Config as cms
0006
0007 process = cms.Process('OOTPileupCompatibilityDBWrite')
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
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029 process.PoolDBOutputService = cms.Service(
0030 "PoolDBOutputService",
0031 process.CondDB,
0032 timetype = cms.untracked.string('runnumber'),
0033 toPut = cms.VPSet(cms.PSet(
0034 record = cms.string("HcalOOTPileupCompatibilityRcd"),
0035 tag = cms.string(tag)
0036 ))
0037 )
0038
0039 process.filereader = cms.EDAnalyzer(
0040 'BufferedBoostIODBWriter',
0041 inputFile = cms.string(inputfile),
0042 record = cms.string("HcalOOTPileupCompatibilityRcd")
0043 )
0044
0045 process.p = cms.Path(process.filereader)