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 
0015 process.MessageLogger = cms.Service("MessageLogger",
0016     cerr = cms.untracked.PSet(
0017         enable = cms.untracked.bool(False)
0018     ),
0019     cout = cms.untracked.PSet(
0020         default = cms.untracked.PSet(
0021             limit = cms.untracked.int32(0)
0022         ),
0023         enable = cms.untracked.bool(True)
0024     )
0025 )
0026 
0027 process.source = cms.Source("EmptyIOVSource",
0028     firstValue = cms.uint64(1),
0029     lastValue = cms.uint64(1),
0030     timetype = cms.string('runnumber'),
0031     interval = cms.uint64(1)
0032 )
0033 
0034 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0035     process.CondDBCommon,
0036     logconnect = cms.untracked.string('sqlite_file:badStripslog.db'),
0037     toPut = cms.VPSet(cms.PSet(
0038         record = cms.string('CSCBadStripsRcd'),
0039         tag = cms.string('CSCBadStrips')
0040     ))
0041 )
0042 
0043 process.WriteGainsWithPopCon = cms.EDAnalyzer("CSCBadStripsPopConAnalyzer",
0044     SinceAppendMode = cms.bool(True),
0045     record = cms.string('CSCBadStripsRcd'),
0046     loggingOn = cms.untracked.bool(True),
0047     Source = cms.PSet(
0048 
0049     )
0050 )
0051 
0052 process.p = cms.Path(process.WriteGainsWithPopCon)
0053 process.CondDBCommon.connect = 'sqlite_file:BadStrips.db'
0054 
0055