CMS 3D CMS Logo

Functions
popcon2dropbox_job_conf Namespace Reference

Functions

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

Function Documentation

def popcon2dropbox_job_conf.psetForRecord (   recordName)

Definition at line 51 of file popcon2dropbox_job_conf.py.

References harvestTrackValidationPlots.str.

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

Definition at line 23 of file popcon2dropbox_job_conf.py.

References harvestTrackValidationPlots.str.

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