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.
1 import FWCore.ParameterSet.Config as cms
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.DBParameters.messageLevel = cms.untracked.int32( 3 )
30 process.CondDB.connect = 'sqlite:%s' %popcon2dropbox.dbFileForDropBox
31 
32 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
33  process.CondDB,
34  logconnect = cms.untracked.string('sqlite:%s' %popcon2dropbox.dbLogFile),
35  toPut = cms.VPSet( psetForOutRec )
36 )
37 
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)
43 )
44 
45 print process.CondDB.connect
46