Back to home page

Project CMSSW displayed by LXR

 
 

    


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("EcalTrivialCondRetriever_cfi")
0006 
0007 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0008 # process.CondDBCommon.connect = 'oracle://cms_orcoff_prep/CMS_COND_ECAL'
0009 process.CondDBCommon.connect = cms.string('oracle://cms_orcon_prod/CMS_COND_31X_ECAL')
0010 process.CondDBCommon.DBParameters.authenticationPath = cms.untracked.string('/nfshome0/xiezhen/conddb')
0011 # process.CondDBCommon.connect = 'sqlite_file:DB.db'
0012 # process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
0013 
0014 
0015 process.MessageLogger = cms.Service("MessageLogger",
0016     debugModules = cms.untracked.vstring('*'),
0017     destinations = cms.untracked.vstring('cout')
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('EcalPedestalsRcd'),
0031         tag = cms.string('EcalPedestals_v01_mc')
0032         ))
0033 )
0034 
0035 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
0036     timetype = cms.string('runnumber'),
0037     toCopy = cms.VPSet(cms.PSet(
0038         record = cms.string('EcalPedestalsRcd'),
0039         container = cms.string('EcalPedestals')
0040         ))
0041 )
0042 
0043 
0044 
0045 process.p = cms.Path(process.dbCopy)
0046