import FWCore.ParameterSet.Config as cms process = cms.Process("myprocess") process.load("CondCore.DBCommon.CondDBCommon_cfi") process.CondDBCommon.connect = 'sqlite_file:MuonPhysicsPerformance.db' process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) ) process.source = cms.Source("EmptySource") process.PoolDBOutputService = cms.Service("PoolDBOutputService", process.CondDBCommon, toPut = cms.VPSet(cms.PSet( record = cms.string('GLBMU_T'), tag = cms.string('GLBMU_T'), label = cms.string('GLBMU_T') ), cms.PSet( record = cms.string('GLBMU_WP'), tag = cms.string('GLBMU_WP'), label = cms.string('GLBMU_WP') )) ) process.mywriter = cms.EDFilter("PhysicsPerformanceDBWriterFromFile_WPandPayload", inputTxtFile = cms.untracked.string('globalMuon.txt'), RecordPayload = cms.untracked.string('GLBMU_T'), RecordWP = cms.untracked.string('GLBMU_WP') ) process.p = cms.Path(process.mywriter)