6 for k,v
in md.records().items():
7 psetForRec.append( cms.PSet( record = cms.string(str(k)),
8 tag = cms.string(str(v.get(
'destinationTag'))),
13 for k,v
in md.records().items():
14 outRec = v.get(
'outputRecord')
17 sqliteTag = v.get(
'sqliteTag')
19 sqliteTag = v.get(
'destinationTag')
20 psetForOutRec.append( cms.PSet( record = cms.string(str( outRec )),
21 tag = cms.string(str( sqliteTag )),
22 timetype = cms.untracked.string(str(v.get(
'timetype')))
27 process = cms.Process(
"TEST")
28 process.load(
"CondCore.CondDB.CondDB_cfi")
29 process.CondDB.DBParameters.messageLevel = cms.untracked.int32( 3 )
30 process.CondDB.connect =
'sqlite:%s' %popcon2dropbox.dbFileForDropBox
32 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
34 logconnect = cms.untracked.string(
'sqlite:%s' %popcon2dropbox.dbLogFile),
35 toPut = cms.VPSet( psetForOutRec )
38 process.source = cms.Source(
"EmptyIOVSource",
39 timetype = cms.string(
'runnumber'),
40 firstValue = cms.uint64(1),
41 lastValue = cms.uint64(1),
42 interval = cms.uint64(1)
45 print process.CondDB.connect