CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/CondTools/Ecal/python/copyTrivialChannelsStatus_sqlit_cfg.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 process = cms.Process("TEST")
00004 process.load("CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
00005 
00006 process.load("CondCore.DBCommon.CondDBCommon_cfi")
00007 process.CondDBCommon.connect = 'sqlite_file:DB.db'
00008 
00009 
00010 process.MessageLogger = cms.Service("MessageLogger",
00011     debugModules = cms.untracked.vstring('*'),
00012     destinations = cms.untracked.vstring('cout')
00013 )
00014 
00015 process.source = cms.Source("EmptyIOVSource",
00016     firstValue = cms.uint64(1),
00017     lastValue = cms.uint64(1),
00018     timetype = cms.string('runnumber'),
00019     interval = cms.uint64(1)
00020 )
00021 
00022 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
00023     process.CondDBCommon,
00024     toPut = cms.VPSet(cms.PSet(
00025         record = cms.string('EcalChannelStatusRcd'),
00026         tag = cms.string('EcalChannelStatus_online')
00027         ))
00028 )
00029 
00030 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
00031     timetype = cms.string('runnumber'),
00032     toCopy = cms.VPSet(cms.PSet(
00033         record = cms.string('EcalChannelStatusRcd'),
00034         container = cms.string('EcalChannelStatus')
00035         ))
00036 )
00037 
00038 
00039 
00040 process.p = cms.Path(process.dbCopy)
00041