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 = 'oracle://cms_orcoff_prep/CMS_COND_ECAL'
0008 # process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
0009 process.CondDBCommon.connect = 'sqlite_file:DB.db'
0010 
0011 
0012 process.MessageLogger = cms.Service("MessageLogger",
0013     cerr = cms.untracked.PSet(
0014         enable = cms.untracked.bool(False)
0015     ),
0016     cout = cms.untracked.PSet(
0017         enable = cms.untracked.bool(True)
0018     ),
0019     debugModules = cms.untracked.vstring('*')
0020 )
0021 
0022 process.source = cms.Source("EmptyIOVSource",
0023     firstValue = cms.uint64(1),
0024     lastValue = cms.uint64(1),
0025     timetype = cms.string('runnumber'),
0026     interval = cms.uint64(1)
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_hlt')
0034         ))
0035 )
0036 
0037 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
0038     timetype = cms.string('runnumber'),
0039     toCopy = cms.VPSet(cms.PSet(
0040         record = cms.string('EcalPedestalsRcd'),
0041         container = cms.string('EcalPedestals')
0042         ))
0043 )
0044 
0045 
0046 
0047 process.p = cms.Path(process.dbCopy)
0048