Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:47:37

0001 # The following comments couldn't be translated into the new config version:
0002 
0003 #change the firstRun if you want a different IOV
0004 
0005 # eg to write payload to the oracle database 
0006 #   replace CondDBCommon.connect = "oracle://cms_orcoff_int2r/CMS_COND_CSC"
0007 # Database output service
0008 
0009 import FWCore.ParameterSet.Config as cms
0010 
0011 process = cms.Process("ProcessOne")
0012 #PopCon config
0013 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0014 process.CondDBCommon.connect = cms.string("sqlite_file:DBL1TPParameters.db")
0015 
0016 process.MessageLogger = cms.Service("MessageLogger",
0017     cerr = cms.untracked.PSet(
0018         enable = cms.untracked.bool(False)
0019     ),
0020     cout = cms.untracked.PSet(
0021         default = cms.untracked.PSet(
0022             limit = cms.untracked.int32(0)
0023         ),
0024         enable = cms.untracked.bool(True)
0025     )
0026 )
0027 
0028 process.source = cms.Source("EmptyIOVSource",
0029     firstValue = cms.uint64(1),
0030     lastValue = cms.uint64(1),
0031     timetype = cms.string('runnumber'),
0032     interval = cms.uint64(1)
0033 )
0034 
0035 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0036     process.CondDBCommon,
0037     logconnect = cms.untracked.string('sqlite_file:L1TPParameterslog.db'),
0038     toPut = cms.VPSet(cms.PSet(
0039         record = cms.string('CSCL1TPParametersRcd'),
0040         tag = cms.string('CSCL1TPParameters')
0041     ))
0042 )
0043 
0044 process.WriteL1TPParametersWithPopCon = cms.EDAnalyzer("CSCL1TPParametersPopConAnalyzer",
0045     SinceAppendMode = cms.bool(True),
0046     record = cms.string('CSCL1TPParametersRcd'),
0047     loggingOn = cms.untracked.bool(True),
0048     Source = cms.PSet(
0049 
0050     )
0051 )
0052 
0053 process.p = cms.Path(process.WriteL1TPParametersWithPopCon)
0054 
0055 
0056