CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/FastSimulation/Configuration/python/FlatPtMuonGun_cfi.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 source = cms.Source("EmptySource")
00004 
00005 generator = cms.EDProducer("FlatRandomPtGunProducer",
00006     firstRun = cms.untracked.uint32(1),
00007     PGunParameters = cms.PSet(
00008         PartID = cms.vint32(13),
00009         # you can request more than 1 particle
00010         # PartID = cms.vint32(211,11,-13),
00011         MinPt = cms.double(10.0),
00012         MaxPt = cms.double(10.0),
00013         MinEta = cms.double(-3.0),
00014         MaxEta = cms.double(3.0),
00015         MinPhi = cms.double(-3.14159265359), ## it must be in radians
00016         MaxPhi = cms.double(3.14159265359),
00017     ),
00018     AddAntiParticle = cms.bool(False), # back-to-back particles
00019     Verbosity = cms.untracked.int32(0) ## for printouts, set it to 1 (or greater)   
00020 )
00021 
00022 ProductionFilterSequence = cms.Sequence(generator)