CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
genfragment_ptgun_cfg.py
Go to the documentation of this file.
1 
2 import FWCore.ParameterSet.Config as cms
3 
4 generator = cms.EDProducer("FlatRandomPtGunProducer",
5  PGunParameters = cms.PSet(
6  PartID = cms.vint32(15),
7  MinPhi = cms.double(-3.14159265359),
8  MaxPhi = cms.double(3.14159265359), ## in radians
9  MinEta = cms.double(-2.0),
10  MaxEta = cms.double(2.0),
11  MinPt = cms.double(1.), # in GeV
12  MaxPt = cms.double(20.0)
13  ),
14  Verbosity = cms.untracked.int32(0), ## set to 1 (or greater) for printouts
15  AddAntiParticle = cms.bool(True),
16  )