import FWCore.ParameterSet.Config as cms generator = cms.EDProducer("FlatRandomPtGunProducer", PGunParameters = cms.PSet( MaxPt = cms.double(30.01), MinPt = cms.double(29.99), PartID = cms.vint32(111), MaxEta = cms.double(3), MaxPhi = cms.double(3.14159265359), MinEta = cms.double(-3), MinPhi = cms.double(-3.14159265359) ## in radians ), Verbosity = cms.untracked.int32(0), ## set to 1 (or greater) for printouts psethack = cms.string('single pi 0 pt 30'), AddAntiParticle = cms.bool(False), firstRun = cms.untracked.uint32(1) )