Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:52:22

0001 mport FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("Write2DB")
0004 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0005 process.CondDBCommon.connect = 'sqlite_file:RPCEMap.db'
0006 
0007 process.MessageLogger = cms.Service("MessageLogger",
0008     cout = cms.untracked.PSet(
0009         default = cms.untracked.PSet(
0010             limit = cms.untracked.int32(0)
0011         )
0012     ),
0013     destinations = cms.untracked.vstring('cout')
0014 )
0015 
0016 process.source = cms.Source("EmptyIOVSource",
0017     lastValue = cms.uint64(1),
0018     timetype = cms.string('runnumber'),
0019     firstValue = cms.uint64(1),
0020     interval = cms.uint64(1)
0021 )
0022 
0023 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0024     process.CondDBCommon,
0025     logconnect = cms.untracked.string('sqlite_file:RPCEMap_log.db'),
0026     toPut = cms.VPSet(cms.PSet(
0027         record = cms.string('RPCEMapRcd'),
0028         tag = cms.string('RPCEMap_v2')
0029     ))
0030 )
0031 
0032 process.WriteInDB = cms.EDFilter("RPCEMapDBWriter",
0033     SinceAppendMode = cms.bool(True),
0034     record = cms.string('RPCEMapRcd'),
0035     loggingOn = cms.untracked.bool(False),
0036     Source = cms.PSet(
0037         OnlineAuthPath = cms.untracked.string('.'),
0038         Validate = cms.untracked.int32(0),
0039         OnlineConn = cms.untracked.string('oracle://cms_omds_lb/CMS_RPC_CONF')
0040     )
0041 )
0042 
0043 process.p = cms.Path(process.WriteInDB)
0044