CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 52 of file popcon2dropbox_job_conf.py.

References str.

52 
53 def psetForRecord( recordName ):
54  psetForRec = []
55  psetForRec.append( cms.PSet( record = cms.string(str(recordName)),
56  tag = cms.string(str( options.destinationTag ))
57  )
58  )
59  return psetForRec
#define str(s)
def popcon2dropbox_job_conf.setup_popcon (   recordName,
  tagTimeType 
)

Definition at line 24 of file popcon2dropbox_job_conf.py.

References str.

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

Variable Documentation

tuple popcon2dropbox_job_conf.options = VarParsing.VarParsing()

Definition at line 6 of file popcon2dropbox_job_conf.py.