CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FlatPtMuonGun_cfi.py
Go to the documentation of this file.
2 
3 source = cms.Source("EmptySource")
4 
5 generator = cms.EDProducer("FlatRandomPtGunProducer",
6  firstRun = cms.untracked.uint32(1),
7  PGunParameters = cms.PSet(
8  PartID = cms.vint32(13),
9  # you can request more than 1 particle
10  # PartID = cms.vint32(211,11,-13),
11  MinPt = cms.double(10.0),
12  MaxPt = cms.double(10.0),
13  MinEta = cms.double(-3.0),
14  MaxEta = cms.double(3.0),
15  MinPhi = cms.double(-3.14159265359), ## it must be in radians
16  MaxPhi = cms.double(3.14159265359),
17  ),
18  AddAntiParticle = cms.bool(False), # back-to-back particles
19  Verbosity = cms.untracked.int32(0) ## for printouts, set it to 1 (or greater)
20 )
21 
22 ProductionFilterSequence = cms.Sequence(generator)