1 import FWCore.ParameterSet.Config
as cms
2 import CondTools.Ecal.db_credentials
as auth
4 process = cms.Process(
"ProcessOne")
5 process.load(
"CondCore.CondDB.CondDB_cfi")
6 process.CondDB.connect =
'sqlite_file:EcalPedestals_tree.db' 8 process.MessageLogger = cms.Service(
"MessageLogger",
9 debugModules = cms.untracked.vstring(
'*'),
10 destinations = cms.untracked.vstring(
'cout')
13 process.source = cms.Source(
"EmptyIOVSource",
14 firstValue = cms.uint64(1),
15 lastValue = cms.uint64(1),
16 timetype = cms.string(
'timestamp'),
17 interval = cms.uint64(1)
20 db_reader_account =
'CMS_ECAL_R' 21 db_service,db_user,db_pwd = auth.get_db_credentials( db_reader_account )
23 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
25 logconnect = cms.untracked.string(
'sqlite_file:DBLog.db'),
26 timetype = cms.untracked.string(
'runnumber'),
29 record = cms.string(
'EcalPedestalsRcd'),
30 tag = cms.string(
'EcalPedestals_laser_2016')
35 process.Test1 = cms.EDAnalyzer(
"ExTestEcalPedestalsAnalyzer",
36 SinceAppendMode = cms.bool(
True),
37 record = cms.string(
'EcalPedestalsRcd'),
38 loggingOn = cms.untracked.bool(
True),
40 GenTag = cms.string(
'***'),
41 RunTag = cms.string(
'***'),
42 OnlineDBSID = cms.string(db_service),
43 OnlineDBUser = cms.string(db_user),
44 OnlineDBPassword = cms.string( db_pwd ),
45 Location = cms.string(
'***'),
46 LocationSource = cms.string(
'Tree'),
47 filename = cms.untracked.string(
'/afs/cern.ch/work/d/depasse/data/ana_ped_v3.root'),
48 firstRun = cms.string(
'285550'),
49 lastRun = cms.string(
'100000000'),
50 debug = cms.bool(
True),
51 RunType = cms.untracked.int32(1)
55 process.p = cms.Path(process.Test1)