CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/CondTools/Ecal/python/EcalO2O_DCS_cfg.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 process = cms.Process("ProcessOne")
00004 process.load("CondCore.DBCommon.CondDBCommon_cfi")
00005 # process.CondDBCommon.connect = 'oracle://cms_orcoff_prep/CMS_COND_ECAL'
00006 process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
00007 process.CondDBCommon.connect = 'sqlite_file:DB.db'
00008 
00009 
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(1000000),
00018                                 lastValue = cms.uint64(1000000),
00019                                 timetype = cms.string('runnumber'),
00020                                 interval = cms.uint64(1)
00021                             )
00022 
00023 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
00024     process.CondDBCommon,
00025     timetype = cms.untracked.string('runnumber'),
00026     toGet = cms.VPSet(cms.PSet(
00027         record = cms.string('EcalDCSTowerStatusRcd'),
00028         tag = cms.string('EcalDCSTowerStatus_mc')
00029     ))
00030 )
00031 
00032 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
00033     process.CondDBCommon,
00034     logconnect = cms.untracked.string('sqlite_file:DBLog.db'),
00035     timetype = cms.untracked.string('runnumber'),
00036     toPut = cms.VPSet(cms.PSet(
00037         record = cms.string('EcalDCSTowerStatusRcd'),
00038         tag = cms.string('EcalDCSTowerStatus_mc')
00039     ))
00040 )
00041 
00042 #    logconnect = cms.untracked.string('oracle://cms_orcon_prod/CMS_COND_21X_POPCONLOG'),
00043 
00044 
00045 
00046 process.Test1 = cms.EDAnalyzer("ExTestEcalDCSAnalyzer",
00047     SinceAppendMode = cms.bool(True),
00048     record = cms.string('EcalDCSTowerStatusRcd'),
00049     loggingOn = cms.untracked.bool(True),
00050     Source = cms.PSet(
00051         firstRun = cms.string('42058'),
00052         lastRun = cms.string('100000000'),
00053         OnlineDBUser = cms.string('******'),
00054                 debug = cms.bool(True),
00055                 OnlineDBPassword = cms.string('*******'),
00056                 OnlineDBSID = cms.string('*******')
00057             )
00058     )
00059 
00060 
00061 process.p = cms.Path(process.Test1)
00062 
00063