File indexing completed on 2024-04-06 12:03:10
0001 database = "sqlite_file:hcalPulse.db"
0002 tag = "test"
0003 outputfile = "hcalPulse_dbread.bbin"
0004
0005 import FWCore.ParameterSet.Config as cms
0006
0007 process = cms.Process('HcalInterpolatedPulseDBRead')
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 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0016 process.CondDB,
0017 toGet = cms.VPSet(cms.PSet(
0018 record = cms.string("HcalInterpolatedPulseCollRcd"),
0019 tag = cms.string(tag)
0020 ))
0021 )
0022
0023 process.dumper = cms.EDAnalyzer(
0024 'HcalInterpolatedPulseDBReader',
0025 outputFile = cms.string(outputfile)
0026 )
0027
0028 process.p = cms.Path(process.dumper)