Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:58:24

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 process.CondDBCommon.connect = "oracle://cms_orcoff_prep/CMS_COND_CSC"
0016 process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb'
0017 
0018 process.MessageLogger = cms.Service("MessageLogger",
0019     cerr = cms.untracked.PSet(
0020         enable = cms.untracked.bool(False)
0021     ),
0022     cout = cms.untracked.PSet(
0023         default = cms.untracked.PSet(
0024             limit = cms.untracked.int32(0)
0025         ),
0026         enable = cms.untracked.bool(True)
0027     )
0028 )
0029 
0030 process.source = cms.Source("EmptyIOVSource",
0031     firstValue = cms.uint64(1),
0032     lastValue = cms.uint64(1),
0033     timetype = cms.string('runnumber'),
0034     interval = cms.uint64(1)
0035 )
0036 
0037 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0038     process.CondDBCommon,
0039     logconnect = cms.untracked.string('sqlite_file:L1TPParameterslog.db'),
0040     toPut = cms.VPSet(cms.PSet(
0041         record = cms.string('CSCDBL1TPParametersRcd'),
0042         tag = cms.string('CSCDBL1TPParameters_mc')
0043     ))
0044 )
0045 
0046 process.WriteL1TPParametersWithPopCon = cms.EDAnalyzer("CSCDBL1TPParametersPopConAnalyzer",
0047     SinceAppendMode = cms.bool(True),
0048     record = cms.string('CSCDBL1TPParametersRcd'),
0049     loggingOn = cms.untracked.bool(True),
0050     Source = cms.PSet(
0051 
0052     )
0053 )
0054 
0055 process.p = cms.Path(process.WriteL1TPParametersWithPopCon)
0056 
0057 
0058