Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:53

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 process.MessageLogger = cms.Service("MessageLogger",
0012     cerr = cms.untracked.PSet(
0013         enable = cms.untracked.bool(False)
0014     ),
0015     cout = cms.untracked.PSet(
0016         enable = cms.untracked.bool(True)
0017     ),
0018     debugModules = cms.untracked.vstring('*')
0019 )
0020 
0021 process.source = cms.Source("EmptyIOVSource",
0022     firstValue = cms.uint64(1),
0023     lastValue = cms.uint64(1),
0024     timetype = cms.string('runnumber'),
0025     interval = cms.uint64(1)
0026 )
0027 
0028 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0029     process.CondDBCommon,
0030     timetype = cms.untracked.string('runnumber'),
0031       toPut = cms.VPSet(
0032         cms.PSet(
0033             record = cms.string('EcalDQMTowerStatusRcd'),
0034             tag = cms.string('EcalDQMTowerStatus_mc')
0035         ),
0036         cms.PSet(
0037             record = cms.string('EcalDQMChannelStatusRcd'),
0038             tag = cms.string('EcalDQMChannelStatus_mc')
0039         )
0040       )
0041 )
0042 
0043 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
0044     timetype = cms.string('runnumber'),
0045        toCopy = cms.VPSet( 
0046          cms.PSet(
0047             record = cms.string('EcalDQMTowerStatusRcd'),
0048             container = cms.string('EcalDQMTowerStatus')
0049          ),
0050          cms.PSet(
0051             record = cms.string('EcalDQMChannelStatusRcd'),
0052             container = cms.string('EcalDQMChannelStatus')
0053          )
0054         )
0055 )
0056 
0057 
0058 process.prod = cms.EDAnalyzer("EcalTrivialObjectAnalyzer")
0059 
0060 process.p = cms.Path(process.prod*process.dbCopy)
0061