import FWCore.ParameterSet.Config as cms generator = cms.EDProducer("FlatRandomPtGunProducer", PGunParameters = cms.PSet( MaxPt = cms.double(10.01), MinPt = cms.double(9.99), PartID = cms.vint32(13), MinEta = cms.double(-2.5), MaxEta = cms.double(2.5), MinPhi = cms.double(-3.14159265359), MaxPhi = cms.double(3.14159265359) ), Verbosity = cms.untracked.int32(0), psethack = cms.string('single mu minus pt 10'), AddAntiParticle = cms.bool(False), firstRun = cms.untracked.uint32(1) )