CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/CondTools/Ecal/python/copyTrivialDQM_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 = 'oracle://cms_orcoff_prep/CMS_COND_ECAL'
00008 process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
00009 process.CondDBCommon.connect = 'sqlite_file:DB.db'
00010 
00011 process.MessageLogger = cms.Service("MessageLogger",
00012     debugModules = cms.untracked.vstring('*'),
00013     destinations = cms.untracked.vstring('cout')
00014 )
00015 
00016 process.source = cms.Source("EmptyIOVSource",
00017     firstValue = cms.uint64(1),
00018     lastValue = cms.uint64(1),
00019     timetype = cms.string('runnumber'),
00020     interval = cms.uint64(1)
00021 )
00022 
00023 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
00024     process.CondDBCommon,
00025     timetype = cms.untracked.string('runnumber'),
00026       toPut = cms.VPSet(
00027         cms.PSet(
00028             record = cms.string('EcalDQMTowerStatusRcd'),
00029             tag = cms.string('EcalDQMTowerStatus_mc')
00030         ),
00031         cms.PSet(
00032             record = cms.string('EcalDQMChannelStatusRcd'),
00033             tag = cms.string('EcalDQMChannelStatus_mc')
00034         )
00035       )
00036 )
00037 
00038 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
00039     timetype = cms.string('runnumber'),
00040        toCopy = cms.VPSet( 
00041          cms.PSet(
00042             record = cms.string('EcalDQMTowerStatusRcd'),
00043             container = cms.string('EcalDQMTowerStatus')
00044          ),
00045          cms.PSet(
00046             record = cms.string('EcalDQMChannelStatusRcd'),
00047             container = cms.string('EcalDQMChannelStatus')
00048          )
00049         )
00050 )
00051 
00052 
00053 process.prod = cms.EDAnalyzer("EcalTrivialObjectAnalyzer")
00054 
00055 process.p = cms.Path(process.prod*process.dbCopy)
00056