Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:51:50

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0005 
0006 process.CondDBCommon.connect = 'sqlite_file:testconf.db'
0007 process.CondDBCommon.DBParameters.authenticationPath = '.'
0008 
0009 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0010     process.CondDBCommon,
0011     logconnect = cms.untracked.string('sqlite_file:log.db'),
0012     toPut = cms.VPSet(
0013     cms.PSet(
0014         record = cms.string('DTCCBConfigRcd'),
0015         tag = cms.string('conf_test'),
0016         timetype = cms.untracked.string('runnumber')
0017     ),
0018     cms.PSet(
0019         record = cms.string('keyedConfBricks'),
0020         tag = cms.string('DT_keyedConfBricks_V01'),
0021         timetype = cms.untracked.string('hash'),
0022         withWrapper = cms.untracked.bool(True),
0023         outOfOrder = cms.untracked.bool(True)
0024     ),
0025     cms.PSet(
0026         record = cms.string('keyedConfListIOV'),
0027         tag = cms.string('DT_keyedConfListIOV_V01'),
0028         timetype = cms.untracked.string('runnumber'),
0029         withWrapper = cms.untracked.bool(True),
0030         outOfOrder = cms.untracked.bool(False)
0031     )
0032     )
0033 )
0034 
0035 process.source = cms.Source("EmptyIOVSource",
0036     timetype   = cms.string('runnumber'),
0037     firstValue = cms.uint64(1),
0038     lastValue  = cms.uint64(1),
0039     interval   = cms.uint64(1)
0040 )
0041 
0042 process.essource = cms.ESSource("PoolDBESSource",
0043     process.CondDBCommon,
0044     DumpStat=cms.untracked.bool(True),                           
0045     toGet = cms.VPSet(
0046     cms.PSet(
0047     record = cms.string('DTKeyedConfigListRcd'),
0048     tag = cms.string('DT_keyedConfListIOV_V01')
0049     ),
0050     cms.PSet(
0051     record = cms.string('DTKeyedConfigContainerRcd'),
0052     tag = cms.string('DT_keyedConfBricks_V01')
0053     )
0054     )
0055 )
0056 
0057 process.conf_o2o = cms.EDAnalyzer("DTKeyedConfigPopConAnalyzer",
0058     name = cms.untracked.string('DTCCBConfig'),
0059     Source = cms.PSet(
0060         DBParameters = cms.PSet(
0061             messageLevel = cms.untracked.int32(0),
0062             authenticationPath = cms.untracked.string('.')
0063         ),
0064         onlineDB = cms.string('sqlite_file:dummy_online.db'),
0065         minBrick = cms.untracked.int32(0),
0066         maxBrick = cms.untracked.int32(40),
0067         minRun = cms.untracked.int32(99),
0068         maxRun = cms.untracked.int32(50000),
0069         tag = cms.string('conf_test'),
0070         container = cms.string('keyedConfBricks'),
0071         onlineAuthentication = cms.string('.')
0072     ),
0073     SinceAppendMode = cms.bool(True),
0074     record = cms.string('DTCCBConfigRcd'),
0075     loggingOn = cms.untracked.bool(True),
0076     debug = cms.bool(False)
0077 )
0078 
0079 process.p = cms.Path(process.conf_o2o)
0080