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 debugModules = cms.untracked.vstring(
'*'),
14 destinations = cms.untracked.vstring(
'cout')
17 process.source = cms.Source(
"EmptyIOVSource",
18 firstValue = cms.uint64(1),
19 lastValue = cms.uint64(1),
20 timetype = cms.string(
'runnumber'),
21 interval = cms.uint64(1)
24 process.PoolDBESSource = cms.ESSource(
"PoolDBESSource",
26 timetype = cms.untracked.string(
'runnumber'),
27 toGet = cms.VPSet(cms.PSet(
28 record = cms.string(
'EcalChannelStatusRcd'),
29 tag = cms.string(
'EcalChannelStatus_online')
33 process.es_prefer_ChannelStatusDB = cms.ESPrefer(
"PoolDBESSource",
"")
35 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
37 logconnect = cms.untracked.string(
'sqlite_file:DBLog.db'),
38 timetype = cms.untracked.string(
'runnumber'),
39 toPut = cms.VPSet(cms.PSet(
40 record = cms.string(
'EcalChannelStatusRcd'),
41 tag = cms.string(
'EcalChannelStatus_online')
45 process.Test1 = cms.EDAnalyzer(
"ExTestEcalChannelStatusAnalyzer",
46 SinceAppendMode = cms.bool(
True),
47 record = cms.string(
'EcalChannelStatusRcd'),
48 loggingOn = cms.untracked.bool(
True),
50 GenTag = cms.string(
'GLOBAL'),
51 RunType = cms.string(
'COSMIC'),
52 firstRun = cms.string(
'112639'),
53 lastRun = cms.string(
'112639'),
54 LocationSource = cms.string(
'P5'),
55 OnlineDBUser = cms.string(
'cms_ecal_r'),
56 debug = cms.bool(
True),
57 Location = cms.string(
'P5_Co'),
58 OnlineDBPassword = cms.string(
'******'),
59 OnlineDBSID = cms.string(
'cms_testbeam'),
63 process.p = cms.Path(process.Test1)