1 import FWCore.ParameterSet.Config
as cms
2 import CondTools.Ecal.conddb_init
as conddb_init
3 import CondTools.Ecal.db_credentials
as auth
5 process = cms.Process(
"ProcessOne")
7 process.MessageLogger = cms.Service(
"MessageLogger",
8 debugModules = cms.untracked.vstring(
'*'),
9 cout = cms.untracked.PSet(
10 threshold = cms.untracked.string(
'DEBUG')
12 destinations = cms.untracked.vstring(
'cout')
16 process.source = cms.Source(
"EmptyIOVSource",
17 lastValue = cms.uint64(100000000),
18 timetype = cms.string(
'runnumber'),
19 firstValue = cms.uint64(100000000),
20 interval = cms.uint64(1)
23 process.load(
"CondCore.CondDB.CondDB_cfi")
25 process.CondDB.connect = conddb_init.options.destinationDatabase
26 process.CondDB.DBParameters.authenticationPath =
''
28 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
30 toPut = cms.VPSet(cms.PSet(
31 record = cms.string(
'EcalTPGWeightIdMapRcd'),
32 tag = cms.string(conddb_init.options.destinationTag)
36 db_reader_account =
'CMS_ECAL_R'
37 db_service,db_user,db_pwd = auth.get_db_credentials( db_reader_account )
39 process.Test1 = cms.EDAnalyzer(
"ExTestEcalTPGWeightIdMapAnalyzer",
40 record = cms.string(
'EcalTPGWeightIdMapRcd'),
41 loggingOn= cms.untracked.bool(
True),
42 IsDestDbCheckedInQueryLog=cms.untracked.bool(
True),
43 SinceAppendMode=cms.bool(
True),
45 firstRun = cms.string(
'200000'),
46 lastRun = cms.string(
'10000000'),
47 OnlineDBSID = cms.string(db_service),
48 OnlineDBUser = cms.string(db_user),
49 OnlineDBPassword = cms.string( db_pwd ),
50 LocationSource = cms.string(
'P5'),
51 Location = cms.string(
'P5_Co'),
52 GenTag = cms.string(
'GLOBAL'),
53 RunType = cms.string(
'PHYSICS'),
54 fileType = cms.string(
''),
55 fileName = cms.string(
'')
59 process.p = cms.Path(process.Test1)