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")
7 process.CondDB.connect =
'sqlite_file:EcalSRSettings.db'
10 process.MessageLogger = cms.Service(
"MessageLogger",
11 debugModules = cms.untracked.vstring(
'*'),
12 destinations = cms.untracked.vstring(
'cout')
15 process.source = cms.Source(
"EmptyIOVSource",
16 firstValue = cms.uint64(1000000),
17 lastValue = cms.uint64(1000000),
18 timetype = cms.string(
'runnumber'),
19 interval = cms.uint64(1)
22 process.PoolDBESSource = cms.ESSource(
"PoolDBESSource",
24 timetype = cms.untracked.string(
'runnumber'),
27 record = cms.string(
'EcalSRSettingsRcd'),
28 tag = cms.string(
'EcalSRSettings_v01_offline')
33 db_reader_account =
'CMS_ECAL_R'
34 db_service,db_user,db_pwd = auth.get_db_credentials( db_reader_account )
36 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
38 logconnect = cms.untracked.string(
'sqlite_file:DBLog.db'),
39 timetype = cms.untracked.string(
'runnumber'),
42 record = cms.string(
'EcalSRSettingsRcd'),
43 tag = cms.string(
'EcalSRSettings_v01_offline')
48 process.Test1 = cms.EDAnalyzer(
"ExTestEcalSRPAnalyzer",
49 SinceAppendMode = cms.bool(
True),
50 record = cms.string(
'EcalSRSettingsRcd'),
51 loggingOn = cms.untracked.bool(
True),
53 firstRun = cms.string(
'160970'),
54 lastRun = cms.string(
'100000000'),
55 debug = cms.bool(
True),
56 OnlineDBSID = cms.string(db_service),
57 OnlineDBUser = cms.string(db_user),
58 OnlineDBPassword = cms.string( db_pwd ),
59 location = cms.string(
'P5_Co'),
60 runtype = cms.string(
'Physics'),
61 gentag = cms.string(
'global'),
65 process.p = cms.Path(process.Test1)