Go to the documentation of this file.00001 import FWCore.ParameterSet.Config as cms
00002
00003 process = cms.Process("ProcessOne")
00004
00005 process.load("CondCore.DBCommon.CondDBCommon_cfi")
00006
00007
00008 process.CondDBCommon.connect = 'sqlite_file:EcalSRSettings_v00_beam10.db'
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(
00027 cms.PSet(
00028 record = cms.string('EcalSRSettingsRcd'),
00029 tag = cms.string('EcalSRSettings_beam2010_v01_offline')
00030 )
00031 )
00032 )
00033
00034 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
00035 process.CondDBCommon,
00036 logconnect = cms.untracked.string('sqlite_file:DBLog.db'),
00037 timetype = cms.untracked.string('runnumber'),
00038 toPut = cms.VPSet(
00039 cms.PSet(
00040 record = cms.string('EcalSRSettingsRcd'),
00041 tag = cms.string('EcalSRSettings_beam2010_v01_offline')
00042 )
00043 )
00044 )
00045
00046 process.Test1 = cms.EDAnalyzer("ExTestEcalSRPAnalyzer",
00047 SinceAppendMode = cms.bool(True),
00048 record = cms.string('EcalSRSettingsRcd'),
00049 loggingOn = cms.untracked.bool(True),
00050 Source = cms.PSet(
00051 firstRun = cms.string('160970'),
00052 lastRun = cms.string('100000000'),
00053 OnlineDBUser = cms.string('cms_ecal_r'),
00054 debug = cms.bool(True),
00055 OnlineDBPassword = cms.string('xxxxx'),
00056 OnlineDBSID = cms.string('cms_orcon_prod'),
00057 location = cms.string('P5_Co'),
00058 runtype = cms.string('Physics'),
00059 gentag = cms.string('global'),
00060 )
00061 )
00062
00063 process.p = cms.Path(process.Test1)
00064
00065