Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:17

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("Write2DB")
0004 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0005 process.CondDBCommon.connect = 'sqlite_file:L1RPCHwConfig.db'
0006 
0007 process.MessageLogger = cms.Service("MessageLogger",
0008     cerr = cms.untracked.PSet(
0009         enable = cms.untracked.bool(False)
0010     ),
0011     cout = cms.untracked.PSet(
0012         default = cms.untracked.PSet(
0013             limit = cms.untracked.int32(0)
0014         ),
0015         enable = cms.untracked.bool(True)
0016     )
0017 )
0018 
0019 process.source = cms.Source("EmptyIOVSource",
0020     firstValue = cms.uint64(12505),
0021     lastValue = cms.uint64(12505),
0022     timetype = cms.string('runnumber'),
0023     interval = cms.uint64(1)
0024 )
0025 
0026 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0027     process.CondDBCommon,
0028     logconnect = cms.untracked.string('sqlite_file:L1RPCHwConfig_log.db'),
0029     toPut = cms.VPSet(cms.PSet(
0030         record = cms.string('L1RPCHwConfigRcd'),
0031         tag = cms.string('L1RPCHwConfig_v1')
0032     ))
0033 )
0034 
0035 process.WriteInDB = cms.EDFilter("L1RPCHwConfigDBWriter",
0036     SinceAppendMode = cms.bool(True),
0037     record = cms.string('L1RPCHwConfigRcd'),
0038     loggingOn = cms.untracked.bool(True),
0039     Source = cms.PSet(
0040         FirstBX = cms.untracked.int32(0),
0041         LastBX = cms.untracked.int32(0),
0042 #        DisabledCrates = cms.untracked.vint32(0,1,2,3,4,5),
0043         DisabledCrates = cms.untracked.vint32(),
0044         DisabledTowers = cms.untracked.vint32(),
0045         WriteDummy = cms.untracked.int32(1),
0046         Validate = cms.untracked.int32(1),
0047         OnlineAuthPath = cms.untracked.string('.'),
0048         OnlineConn = cms.untracked.string('oracle://cms_omds_lb/CMS_RPC_CONF')
0049     )
0050 )
0051 
0052 process.p = cms.Path(process.WriteInDB)
0053