CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/CondTools/Ecal/python/copyTrivialDAQ_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('EcalDAQTowerStatusRcd'),
00029             tag = cms.string('EcalDAQTowerStatus_mc')
00030         )
00031                       )
00032 )
00033 
00034 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
00035     timetype = cms.string('runnumber'),
00036        toCopy = cms.VPSet( 
00037         cms.PSet(
00038             record = cms.string('EcalDAQTowerStatusRcd'),
00039             container = cms.string('EcalDAQTowerStatus')
00040         )
00041                        )
00042 )
00043 
00044 
00045 process.prod = cms.EDAnalyzer("EcalTrivialObjectAnalyzer")
00046 
00047 process.p = cms.Path(process.prod*process.dbCopy)
00048