Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 
0005 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0006 #process.CondDBCommon.connect = 'oracle://cms_orcoff_prep/CMS_COND_ECAL'
0007 process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
0008 process.CondDBCommon.connect = 'sqlite_file:DB.db'
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 
0028 
0029 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0030     process.CondDBCommon,
0031     toPut = cms.VPSet(cms.PSet(
0032         record = cms.string('EcalPedestalsRcd'),
0033         tag = cms.string('EcalPedestals_test')
0034     ))
0035 )
0036 
0037 process.dbCopy = cms.EDAnalyzer("EcalTestDevDB",
0038     lastRun = cms.string('5'),
0039     timetype = cms.string('runnumber'),
0040     firstRun = cms.string('1'),
0041     toCopy = cms.VPSet(cms.PSet(
0042         record = cms.string('EcalPedestalsRcd'),
0043         container = cms.string('EcalPedestals')
0044     )),
0045     interval = cms.string('1')
0046 )
0047 
0048 process.p = cms.Path(process.dbCopy)
0049 
0050