CMS 3D CMS Logo

Functions
popcon2dropbox_job_conf Namespace Reference

Functions

def psetForRecord (recordName)
 
def setup_popcon (recordName, tagTimeType)
 

Function Documentation

◆ psetForRecord()

def popcon2dropbox_job_conf.psetForRecord (   recordName)

Definition at line 52 of file popcon2dropbox_job_conf.py.

References str.

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

◆ setup_popcon()

def popcon2dropbox_job_conf.setup_popcon (   recordName,
  tagTimeType 
)

Definition at line 24 of file popcon2dropbox_job_conf.py.

References str.

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