File indexing completed on 2024-04-06 12:03:10
0001 database = "sqlite_file:hcalPulse.db"
0002 tag = "test"
0003 inputfile = "hcalPulse.bbin"
0004
0005 import FWCore.ParameterSet.Config as cms
0006
0007 process = cms.Process('HcalInterpolatedPulseDBWrite')
0008
0009 process.source = cms.Source('EmptyIOVSource',
0010 lastValue = cms.uint64(1),
0011 timetype = cms.string('runnumber'),
0012 firstValue = cms.uint64(1),
0013 interval = cms.uint64(1)
0014 )
0015 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
0016
0017 process.load("CondCore.CondDB.CondDB_cfi")
0018 process.CondDB.connect = cms.string(database)
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034 process.PoolDBOutputService = cms.Service(
0035 "PoolDBOutputService",
0036 process.CondDB,
0037 timetype = cms.untracked.string('runnumber'),
0038 toPut = cms.VPSet(cms.PSet(
0039 record = cms.string("HcalInterpolatedPulseCollRcd"),
0040 tag = cms.string(tag)
0041 ))
0042 )
0043
0044 process.filereader = cms.EDAnalyzer(
0045 'HcalInterpolatedPulseDBWriter',
0046 inputFile = cms.string(inputfile),
0047 record = cms.string("HcalInterpolatedPulseCollRcd")
0048 )
0049
0050 process.p = cms.Path(process.filereader)