Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
import FWCore.ParameterSet.Config as cms

process = cms.Process("TEST")
process.load("CondCore.CondDB.CondDB_cfi")
process.CondDB.connect = 'sqlite_file:ints.db'

process.source = cms.Source("EmptyIOVSource",
                            lastValue = cms.uint64(1),
                            timetype = cms.string('Run'),
                            firstValue = cms.uint64(1),
                            interval = cms.uint64(1)
                            )

process.PoolDBOutputService = cms.Service("PoolDBOutputService",
                                          process.CondDB,
                                          timetype = cms.untracked.string('Run'),
                                          outOfOrder = cms.untracked.bool(True),
                                          toPut = cms.VPSet( cms.PSet(record = cms.string('oneInt'),
                                                                      tag = cms.string('OneInt'),
                                                                      timetype = cms.untracked.string('Run'),
                                                                      outOfOrder = cms.untracked.bool(False)
                                                                      )
                                                             )
                                          )

process.mytest = cms.EDAnalyzer("writeInt",
                                Number=cms.int32(100000)
                                )

process.p = cms.Path(process.mytest)