1 import FWCore.ParameterSet.Config
as cms
3 process = cms.Process(
"ProcessOne")
4 process.load(
"CondCore.CondDB.CondDB_cfi")
6 process.CondDB.DBParameters.authenticationPath =
'/afs/cern.ch/cms/DB/conddb/' 10 process.CondDB.connect =
'sqlite_file:EcalTPGSpike.db' 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'),
29 record = cms.string(
'EcalTPGSpikeRcd'),
30 tag = cms.string(
'EcalTPGSpike_test')
35 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
37 logconnect = cms.untracked.string(
'sqlite_file:DBLog.db'),
38 timetype = cms.untracked.string(
'runnumber'),
41 record = cms.string(
'EcalTPGSpikeRcd'),
42 tag = cms.string(
'EcalTPGSpike_test')
47 process.Test1 = cms.EDAnalyzer(
"ExTestEcalTPGSpikeThresholdfromFile",
48 record = cms.string(
'EcalTPGSpikeRcd'),
50 debug = cms.bool(
True),
54 process.p = cms.Path(process.Test1)