Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:51:54

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:DB.db'
0008 
0009 
0010 process.MessageLogger = cms.Service("MessageLogger",
0011     cerr = cms.untracked.PSet(
0012         enable = cms.untracked.bool(False)
0013     ),
0014     cout = cms.untracked.PSet(
0015         enable = cms.untracked.bool(True)
0016     ),
0017     debugModules = cms.untracked.vstring('*')
0018 )
0019 
0020 process.source = cms.Source("EmptyIOVSource",
0021     firstValue = cms.uint64(1),
0022     lastValue = cms.uint64(1),
0023     timetype = cms.string('runnumber'),
0024     interval = cms.uint64(1)
0025 )
0026 
0027 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0028     process.CondDBCommon,
0029     toPut = cms.VPSet(cms.PSet(
0030         record = cms.string('EcalChannelStatusRcd'),
0031         tag = cms.string('EcalChannelStatus_online')
0032         ))
0033 )
0034 
0035 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
0036     timetype = cms.string('runnumber'),
0037     toCopy = cms.VPSet(cms.PSet(
0038         record = cms.string('EcalChannelStatusRcd'),
0039         container = cms.string('EcalChannelStatus')
0040         ))
0041 )
0042 
0043 
0044 
0045 process.p = cms.Path(process.dbCopy)
0046