1 import FWCore.ParameterSet.Config
as cms
2 import CondTools.Ecal.db_credentials
as auth
4 process = cms.Process(
"ProcessOne")
6 process.load(
"CondCore.CondDB.CondDB_cfi")
9 process.CondDB.connect =
'sqlite_file:EcalSRSettings.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(1000000),
19 lastValue = cms.uint64(1000000),
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(
'EcalSRSettingsRcd'),
30 tag = cms.string(
'EcalSRSettings_v01_offline')
35 db_service,db_user,db_pwd = auth.get_readOnly_db_credentials()
37 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
39 logconnect = cms.untracked.string(
'sqlite_file:DBLog.db'),
40 timetype = cms.untracked.string(
'runnumber'),
43 record = cms.string(
'EcalSRSettingsRcd'),
44 tag = cms.string(
'EcalSRSettings_v01_offline')
49 process.Test1 = cms.EDAnalyzer(
"ExTestEcalSRPAnalyzer",
50 SinceAppendMode = cms.bool(
True),
51 record = cms.string(
'EcalSRSettingsRcd'),
52 loggingOn = cms.untracked.bool(
True),
54 firstRun = cms.string(
'160970'),
55 lastRun = cms.string(
'100000000'),
56 debug = cms.bool(
True),
57 OnlineDBSID = cms.string(db_service),
58 OnlineDBUser = cms.string(db_user),
59 OnlineDBPassword = cms.string( db_pwd ),
60 location = cms.string(
'P5_Co'),
61 runtype = cms.string(
'Physics'),
62 gentag = cms.string(
'global'),
66 process.p = cms.Path(process.Test1)