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
00006
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(1),
00018 lastValue = cms.uint64(1),
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('EcalPedestalsRcd'),
00028 tag = cms.string('EcalPedestals_hlt')
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('EcalPedestalsRcd'),
00038 tag = cms.string('EcalPedestals_hlt')
00039 ))
00040 )
00041
00042
00043
00044
00045
00046 process.Test1 = cms.EDAnalyzer("ExTestEcalPedestalsAnalyzer",
00047 SinceAppendMode = cms.bool(True),
00048 record = cms.string('EcalPedestalsRcd'),
00049 loggingOn = cms.untracked.bool(True),
00050 Source = cms.PSet(
00051 GenTag = cms.string('LOCAL'),
00052 firstRun = cms.string('119000'),
00053 lastRun = cms.string('100000000'),
00054 LocationSource = cms.string('P5'),
00055 OnlineDBUser = cms.string('cms_ecal_r'),
00056 debug = cms.bool(True),
00057 Location = cms.string('P5_Co'),
00058 OnlineDBPassword = cms.string('xxxxxxxxxxx'),
00059 OnlineDBSID = cms.string('cms_testbeam')
00060 )
00061 )
00062
00063 process.p = cms.Path(process.Test1)
00064
00065