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 = 'sqlite_file:DB.db'
00006
00007 process.load("Geometry.EcalMapping.EcalMapping_cfi")
00008 process.load("Geometry.EcalMapping.EcalMappingRecord_cfi")
00009 process.load("Geometry.CaloEventSetup.EcalTrigTowerConstituents_cfi")
00010 process.load("CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
00011
00012 process.MessageLogger = cms.Service("MessageLogger",
00013 debugModules = cms.untracked.vstring('*'),
00014 destinations = cms.untracked.vstring('cout')
00015 )
00016
00017 process.source = cms.Source("EmptyIOVSource",
00018 firstValue = cms.uint64(1),
00019 lastValue = cms.uint64(1),
00020 timetype = cms.string('runnumber'),
00021 interval = cms.uint64(1)
00022 )
00023
00024 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
00025 process.CondDBCommon,
00026 timetype = cms.untracked.string('runnumber'),
00027 toGet = cms.VPSet(cms.PSet(
00028 record = cms.string('EcalChannelStatusRcd'),
00029 tag = cms.string('EcalChannelStatus_online')
00030 ))
00031 )
00032
00033 process.es_prefer_ChannelStatusDB = cms.ESPrefer("PoolDBESSource", "")
00034
00035 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
00036 process.CondDBCommon,
00037 logconnect = cms.untracked.string('sqlite_file:DBLog.db'),
00038 timetype = cms.untracked.string('runnumber'),
00039 toPut = cms.VPSet(cms.PSet(
00040 record = cms.string('EcalChannelStatusRcd'),
00041 tag = cms.string('EcalChannelStatus_online')
00042 ))
00043 )
00044
00045 process.Test1 = cms.EDAnalyzer("ExTestEcalChannelStatusAnalyzer",
00046 SinceAppendMode = cms.bool(True),
00047 record = cms.string('EcalChannelStatusRcd'),
00048 loggingOn = cms.untracked.bool(True),
00049 Source = cms.PSet(
00050 GenTag = cms.string('GLOBAL'),
00051 RunType = cms.string('COSMIC'),
00052 firstRun = cms.string('112639'),
00053 lastRun = cms.string('112639'),
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('3c4l_r34d3r'),
00059 OnlineDBSID = cms.string('cms_testbeam'),
00060 )
00061 )
00062
00063 process.p = cms.Path(process.Test1)
00064
00065