test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
popcon2dropbox_job_conf Namespace Reference

Functions

def psetForRecord
 
def setup_popcon
 

Variables

tuple options = VarParsing.VarParsing()
 

Function Documentation

def popcon2dropbox_job_conf.psetForRecord (   recordName)

Definition at line 47 of file popcon2dropbox_job_conf.py.

47 
48 def psetForRecord( recordName ):
49  psetForRec = []
50  psetForRec.append( cms.PSet( record = cms.string(str(recordName)),
51  tag = cms.string(str( options.destinationTag ))
52  )
53  )
54  return psetForRec
def popcon2dropbox_job_conf.setup_popcon (   recordName,
  tagTimeType 
)

Definition at line 18 of file popcon2dropbox_job_conf.py.

18 
19 def setup_popcon( recordName, tagTimeType ):
20  psetForOutRec = []
21  psetForOutRec.append( cms.PSet( record = cms.string(str( recordName )),
22  tag = cms.string(str( options.destinationTag )),
23  timetype = cms.untracked.string(str(tagTimeType))
24  )
25  )
26 
27  sqliteConnect = 'sqlite:%s' %popcon2dropbox.dbFileForDropBox
28  process = cms.Process("PopCon")
29  process.load("CondCore.CondDB.CondDB_cfi")
30  process.CondDB.DBParameters.messageLevel = cms.untracked.int32( 3 )
31  #process.CondDB.connect = 'sqlite:%s' %popcon2dropbox.dbFileForDropBox
32 
33  process.PoolDBOutputService = cms.Service("PoolDBOutputService",
34  DBParameters = cms.PSet( messageLevel = cms.untracked.int32( 3 ),
35  ),
36  connect = cms.string( sqliteConnect ),
37  toPut = cms.VPSet( psetForOutRec )
38  )
39 
40  process.source = cms.Source("EmptyIOVSource",
41  timetype = cms.string('runnumber'),
42  firstValue = cms.uint64(1),
43  lastValue = cms.uint64(1),
44  interval = cms.uint64(1)
45  )
46  return process

Variable Documentation

tuple popcon2dropbox_job_conf.options = VarParsing.VarParsing()

Definition at line 5 of file popcon2dropbox_job_conf.py.