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.connect =
'sqlite:%s' %popcon2dropbox.dbFileForDropBox
31 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
33 logconnect = cms.untracked.string(
'sqlite:%s' %popcon2dropbox.dbLogFile),
34 toPut = cms.VPSet( psetForOutRec )
37 process.source = cms.Source(
"EmptyIOVSource",
38 timetype = cms.string(
'runnumber'),
39 firstValue = cms.uint64(1),
40 lastValue = cms.uint64(1),
41 interval = cms.uint64(1)
44 print process.CondDB.connect