1 import FWCore.ParameterSet.Config
as cms
3 process = cms.Process(
"ProcessOne")
4 process.load(
"CondCore.DBCommon.CondDBCommon_cfi")
5 process.CondDBCommon.connect =
'sqlite_file:DB.db'
7 process.load(
"Geometry.EcalMapping.EcalMapping_cfi")
8 process.load(
"Geometry.EcalMapping.EcalMappingRecord_cfi")
9 process.load(
"Geometry.CaloEventSetup.EcalTrigTowerConstituents_cfi")
10 process.load(
"CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
12 process.MessageLogger = cms.Service(
"MessageLogger",
13 cerr = cms.untracked.PSet(
14 enable = cms.untracked.bool(
False)
16 cout = cms.untracked.PSet(
17 enable = cms.untracked.bool(
True)
19 debugModules = cms.untracked.vstring(
'*')
22 process.source = cms.Source(
"EmptyIOVSource",
23 firstValue = cms.uint64(1),
24 lastValue = cms.uint64(1),
25 timetype = cms.string(
'runnumber'),
26 interval = cms.uint64(1)
29 process.PoolDBESSource = cms.ESSource(
"PoolDBESSource",
31 timetype = cms.untracked.string(
'runnumber'),
32 toGet = cms.VPSet(cms.PSet(
33 record = cms.string(
'EcalChannelStatusRcd'),
34 tag = cms.string(
'EcalChannelStatus_online')
38 process.es_prefer_ChannelStatusDB = cms.ESPrefer(
"PoolDBESSource",
"")
40 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
42 logconnect = cms.untracked.string(
'sqlite_file:DBLog.db'),
43 timetype = cms.untracked.string(
'runnumber'),
44 toPut = cms.VPSet(cms.PSet(
45 record = cms.string(
'EcalChannelStatusRcd'),
46 tag = cms.string(
'EcalChannelStatus_online')
50 process.Test1 = cms.EDAnalyzer(
"ExTestEcalChannelStatusAnalyzer",
51 SinceAppendMode = cms.bool(
True),
52 record = cms.string(
'EcalChannelStatusRcd'),
53 loggingOn = cms.untracked.bool(
True),
55 GenTag = cms.string(
'GLOBAL'),
56 RunType = cms.string(
'COSMIC'),
57 firstRun = cms.string(
'112639'),
58 lastRun = cms.string(
'112639'),
59 LocationSource = cms.string(
'P5'),
60 OnlineDBUser = cms.string(
'cms_ecal_r'),
61 debug = cms.bool(
True),
62 Location = cms.string(
'P5_Co'),
63 OnlineDBPassword = cms.string(
'******'),
64 OnlineDBSID = cms.string(
'cms_testbeam'),
68 process.p = cms.Path(process.Test1)