File indexing completed on 2024-04-06 12:02:53
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("ProcessOne")
0004 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0005 process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
0006
0007
0008
0009
0010 process.CondDBCommon.connect = 'sqlite_file:EcalLinPed.db'
0011
0012
0013 process.MessageLogger = cms.Service("MessageLogger",
0014 cerr = cms.untracked.PSet(
0015 enable = cms.untracked.bool(False)
0016 ),
0017 cout = cms.untracked.PSet(
0018 enable = cms.untracked.bool(True)
0019 ),
0020 debugModules = cms.untracked.vstring('*')
0021 )
0022
0023 process.source = cms.Source("EmptyIOVSource",
0024 firstValue = cms.uint64(1),
0025 lastValue = cms.uint64(1),
0026 timetype = cms.string('runnumber'),
0027 interval = cms.uint64(1)
0028 )
0029
0030 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0031 process.CondDBCommon,
0032 timetype = cms.untracked.string('runnumber'),
0033 toGet = cms.VPSet(
0034 cms.PSet(
0035 record = cms.string('EcalTPGPedestalsRcd'),
0036 tag = cms.string('EcalTPGPedestals_test')
0037 )
0038 )
0039 )
0040
0041 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0042 process.CondDBCommon,
0043 logconnect = cms.untracked.string('sqlite_file:DBLog.db'),
0044 timetype = cms.untracked.string('runnumber'),
0045 toPut = cms.VPSet(
0046 cms.PSet(
0047 record = cms.string('EcalTPGPedestalsRcd'),
0048 tag = cms.string('EcalTPGPedestals_test')
0049 )
0050 )
0051 )
0052
0053 process.Test1 = cms.EDAnalyzer("ExTestEcalTPGPedfromFile",
0054 record = cms.string('EcalTPGPedestalsRcd'),
0055 Source = cms.PSet(
0056 debug = cms.bool(True),
0057 )
0058 )
0059
0060 process.p = cms.Path(process.Test1)