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_mc.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(
'runnumber'),
17 interval = cms.uint64(1)
20 db_service,db_user,db_pwd = auth.get_readOnly_db_credentials()
22 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
24 logconnect = cms.untracked.string(
'sqlite_file:DBLog.db'),
25 timetype = cms.untracked.string(
'runnumber'),
28 record = cms.string(
'EcalPedestalsRcd'),
41 tag = cms.string(
'EcalPedestals_0_0')
46 process.Test1 = cms.EDAnalyzer(
"ExTestEcalPedestalsAnalyzer",
47 SinceAppendMode = cms.bool(
True),
48 record = cms.string(
'EcalPedestalsRcd'),
49 loggingOn = cms.untracked.bool(
True),
51 GenTag = cms.string(
'***'),
52 RunTag = cms.string(
'***'),
53 OnlineDBUser = cms.string(db_user),
54 OnlineDBPassword = cms.string(db_pwd),
55 OnlineDBSID = cms.string(db_service),
56 Location = cms.string(
'***'),
57 LocationSource = cms.string(
'File'),
70 filename = cms.untracked.string(
'/afs/cern.ch/user/s/shervin/public/forJean/6a9a2818932fce79d8222768ba4f2ad3f60f894c_0_0.dat'),
71 firstRun = cms.string(
'1'),
72 lastRun = cms.string(
'100000000'),
73 debug = cms.bool(
True)
77 process.p = cms.Path(process.Test1)