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
import FWCore.ParameterSet.Config as cms

generator = cms.EDProducer("FlatRandomPtAndDxyGunProducer",
    PGunParameters = cms.PSet(
        PartID = cms.vint32(-13),
        MinPt  = cms.double(10.00),
        MaxPt  = cms.double(30.00),
        MinEta = cms.double(-2.9),
        MaxEta = cms.double(2.9),
        MinPhi = cms.double(-3.14159265359),
        MaxPhi = cms.double(3.14159265359),
        LxyMax = cms.double(1000.0),#make sure most muons generated before Muon system, Gauss distribution
        LzMax = cms.double(1000.0),#make sure most muons generated before Muon system, Gauss distribution
	ConeRadius = cms.double(1000.0),
	ConeH = cms.double(3000.0),
	DistanceToAPEX = cms.double(100.0),
        dxyMin = cms.double(0.0),
        dxyMax = cms.double(1000.0) # in mm
    ),
    Verbosity = cms.untracked.int32(0), ## set to 1 (or greater)  for printouts
    psethack = cms.string('displaced muon'),
    AddAntiParticle = cms.bool(True),
    firstRun = cms.untracked.uint32(1)
)