File indexing completed on 2024-04-06 12:03:02
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("TEST")
0004
0005 process.load("CondCore.CondDB.CondDB_cfi")
0006 process.CondDB.connect = 'sqlite_file:ESGain_HG.db'
0007
0008 process.MessageLogger = cms.Service("MessageLogger",
0009 cerr = cms.untracked.PSet(
0010 enable = cms.untracked.bool(False)
0011 ),
0012 cout = cms.untracked.PSet(
0013 enable = cms.untracked.bool(True)
0014 ),
0015 debugModules = cms.untracked.vstring('*')
0016 )
0017
0018 process.source = cms.Source("EmptyIOVSource",
0019 firstValue = cms.uint64(1),
0020 lastValue = cms.uint64(1),
0021 timetype = cms.string('runnumber'),
0022 interval = cms.uint64(1)
0023 )
0024
0025 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0026 process.CondDB,
0027 timetype = cms.untracked.string('runnumber'),
0028 toPut = cms.VPSet(cms.PSet(
0029
0030 record = cms.string('ESGainRcd'),
0031 tag = cms.string('ESGain_HG')
0032
0033 )))
0034
0035 process.ecalModule = cms.EDAnalyzer("StoreESCondition",
0036 logfile = cms.string('./logfile.log'),
0037 gain = cms.uint32(2),
0038 toPut = cms.VPSet(cms.PSet(
0039
0040
0041 conditionType = cms.untracked.string('ESGain'),
0042 since = cms.untracked.uint32(1),
0043 inputFile = cms.untracked.string('CondTools/Ecal/test/preshower/ESGain_HG.txt')
0044
0045 )))
0046
0047 process.p = cms.Path(process.ecalModule)
0048
0049
0050