File indexing completed on 2024-04-06 12:02:53
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("ProcessOne")
0004 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0005 process.CondDBCommon.connect = 'sqlite_file:DB.db'
0006
0007 process.load("Geometry.EcalMapping.EcalMapping_cfi")
0008 process.load("Geometry.EcalMapping.EcalMappingRecord_cfi")
0009 process.load("Geometry.CaloEventSetup.EcalTrigTowerConstituents_cfi")
0010 process.load("CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
0011
0012 process.MessageLogger = cms.Service("MessageLogger",
0013 cerr = cms.untracked.PSet(
0014 enable = cms.untracked.bool(False)
0015 ),
0016 cout = cms.untracked.PSet(
0017 enable = cms.untracked.bool(True)
0018 ),
0019 debugModules = cms.untracked.vstring('*')
0020 )
0021
0022 process.source = cms.Source("EmptyIOVSource",
0023 firstValue = cms.uint64(1),
0024 lastValue = cms.uint64(1),
0025 timetype = cms.string('runnumber'),
0026 interval = cms.uint64(1)
0027 )
0028
0029 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0030 process.CondDBCommon,
0031 timetype = cms.untracked.string('runnumber'),
0032 toGet = cms.VPSet(cms.PSet(
0033 record = cms.string('EcalChannelStatusRcd'),
0034 tag = cms.string('EcalChannelStatus_online')
0035 ))
0036 )
0037
0038 process.es_prefer_ChannelStatusDB = cms.ESPrefer("PoolDBESSource", "")
0039
0040 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0041 process.CondDBCommon,
0042 logconnect = cms.untracked.string('sqlite_file:DBLog.db'),
0043 timetype = cms.untracked.string('runnumber'),
0044 toPut = cms.VPSet(cms.PSet(
0045 record = cms.string('EcalChannelStatusRcd'),
0046 tag = cms.string('EcalChannelStatus_online')
0047 ))
0048 )
0049
0050 process.Test1 = cms.EDAnalyzer("ExTestEcalChannelStatusAnalyzer",
0051 SinceAppendMode = cms.bool(True),
0052 record = cms.string('EcalChannelStatusRcd'),
0053 loggingOn = cms.untracked.bool(True),
0054 Source = cms.PSet(
0055 GenTag = cms.string('GLOBAL'),
0056 RunType = cms.string('COSMIC'),
0057 firstRun = cms.string('112639'),
0058 lastRun = cms.string('112639'),
0059 LocationSource = cms.string('P5'),
0060 OnlineDBUser = cms.string('cms_ecal_r'),
0061 debug = cms.bool(True),
0062 Location = cms.string('P5_Co'),
0063 OnlineDBPassword = cms.string('******'),
0064 OnlineDBSID = cms.string('cms_testbeam'),
0065 )
0066 )
0067
0068 process.p = cms.Path(process.Test1)
0069
0070