File indexing completed on 2024-04-06 12:02:53
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("TEST")
0004 process.load("CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
0005
0006 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0007 process.CondDBCommon.connect = 'sqlite_file:EcalSamplesCorrelation.db'
0008
0009 process.MessageLogger = cms.Service("MessageLogger",
0010 cerr = cms.untracked.PSet(
0011 enable = cms.untracked.bool(False)
0012 ),
0013 cout = cms.untracked.PSet(
0014 enable = cms.untracked.bool(True)
0015 ),
0016 debugModules = cms.untracked.vstring('*')
0017 )
0018
0019 process.source = cms.Source("EmptyIOVSource",
0020 firstValue = cms.uint64(1),
0021 lastValue = cms.uint64(1),
0022 timetype = cms.string('runnumber'),
0023 interval = cms.uint64(1)
0024 )
0025
0026 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0027 process.CondDBCommon,
0028 toPut = cms.VPSet(
0029 cms.PSet(
0030 record = cms.string('EcalSamplesCorrelationRcd'),
0031
0032 tag = cms.string('EcalSamplesCorrelation')
0033 )
0034 )
0035 )
0036
0037 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
0038 timetype = cms.string('runnumber'),
0039 toCopy = cms.VPSet(
0040 cms.PSet(
0041 record = cms.string('EcalSamplesCorrelationRcd'),
0042 container = cms.string('EcalSamplesCorrelation')
0043 )
0044 )
0045 )
0046
0047 process.prod = cms.EDAnalyzer("EcalTrivialObjectAnalyzer")
0048
0049 process.p = cms.Path(process.prod*process.dbCopy)