CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
popcon2dropbox_job_conf.py
Go to the documentation of this file.
2 
3 import popcon2dropbox
5 psetForRec = []
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'))),
9  )
10  )
11 
12 psetForOutRec = []
13 for k,v in md.records().items():
14  outRec = v.get('outputRecord')
15  if outRec == None:
16  outRec = k
17  sqliteTag = v.get('sqliteTag')
18  if sqliteTag == None:
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')))
23  )
24  )
25 print psetForOutRec
26 
27 process = cms.Process("TEST")
28 process.load("CondCore.CondDB.CondDB_cfi")
29 process.CondDB.connect = 'sqlite:%s' %popcon2dropbox.dbFileForDropBox
30 
31 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
32  process.CondDB,
33  logconnect = cms.untracked.string('sqlite:%s' %popcon2dropbox.dbLogFile),
34  toPut = cms.VPSet( psetForOutRec )
35 )
36 
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)
42 )
43 
44 print process.CondDB.connect
45