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 47 of file popcon2dropbox_job_conf.py.

References harvestTrackValidationPlots.str.

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

Definition at line 18 of file popcon2dropbox_job_conf.py.

References harvestTrackValidationPlots.str.

18 def setup_popcon( recordName, tagTimeType ):
19  psetForOutRec = []
20  psetForOutRec.append( cms.PSet( record = cms.string(str( recordName )),
21  tag = cms.string(str( options.destinationTag )),
22  timetype = cms.untracked.string(str(tagTimeType))
23  )
24  )
25 
26  sqliteConnect = 'sqlite:%s' %popcon2dropbox.dbFileForDropBox
27  process = cms.Process("PopCon")
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  DBParameters = cms.PSet( messageLevel = cms.untracked.int32( 3 ),
34  ),
35  connect = cms.string( sqliteConnect ),
36  toPut = cms.VPSet( psetForOutRec )
37  )
38 
39  process.source = cms.Source("EmptyIOVSource",
40  timetype = cms.string('runnumber'),
41  firstValue = cms.uint64(1),
42  lastValue = cms.uint64(1),
43  interval = cms.uint64(1)
44  )
45  return process
46 
def setup_popcon(recordName, tagTimeType)