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_prep/CMS_COND_CSC"
0007 
0008 # Database output service
0009 
0010 import FWCore.ParameterSet.Config as cms
0011 
0012 process = cms.Process("ProcessOne")
0013 #PopCon config
0014 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0015 process.CondDBCommon.connect = 'sqlite_file:CSCBadChambers_15April2011.db'
0016 process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb'
0017 #process.CondDBCommon.DBParameters.messageLevel = cms.untracked.int32(3)
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:CSCBadChamberslog_15April2011.db'),
0040     toPut = cms.VPSet(cms.PSet(
0041         record = cms.string('CSCBadChambersRcd'),
0042         tag = cms.string('CSCBadChambers_nineBad_FiveLiveME42_15April2011')
0043     ))
0044 )
0045 
0046 process.WriteBadChambersWithPopCon = cms.EDAnalyzer("CSCBadChambersPopConAnalyzer",
0047     SinceAppendMode = cms.bool(True),
0048     record = cms.string('CSCBadChambersRcd'),
0049     loggingOn = cms.untracked.bool(True),
0050     Source = cms.PSet(
0051 
0052     )
0053 )
0054 
0055 process.p = cms.Path(process.WriteBadChambersWithPopCon)
0056 
0057 
0058