CMS 3D CMS Logo

pion100GeV_HB_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 process = cms.Process("GEN")
4 # this will run plig-in energy-flat random particle gun
5 # and puts particles (HepMCPRoduct) into edm::Event
6 process.load("SimGeneral.HepPDTESSource.pdt_cfi")
7 
8 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
9  moduleSeeds = cms.PSet(
10  generator = cms.untracked.uint32(456789)
11  ),
12  sourceSeed = cms.untracked.uint32(54321)
13 )
14 
15 process.maxEvents = cms.untracked.PSet(
16  input = cms.untracked.int32(2000)
17 )
18 
19 process.source = cms.Source("EmptySource")
20 
21 process.generator = cms.EDProducer("FlatRandomEGunProducer",
22  PGunParameters = cms.PSet(
23  PartID = cms.vint32(211),
24  MinEta = cms.double(0.3045),
25  MaxEta = cms.double(0.3045),
26  MinPhi = cms.double(0.3054),
27  MaxPhi = cms.double(0.3054),
28  MinE = cms.double(100.0),
29  MaxE = cms.double(100.0)
30  ),
31  AddAntiParticle = cms.bool(False),
32  psethack = cms.string('single pion 100GeV on barrel'),
33  Verbosity = cms.untracked.int32(0),
34  firstRun = cms.untracked.uint32(1)
35 )
36 
37 process.GEN = cms.OutputModule("PoolOutputModule",
38  fileName = cms.untracked.string('mc_pi+100_etaphi44.root')
39 )
40 
41 process.p1 = cms.Path(process.generator)
42 process.p2 = cms.EndPath(process.GEN)
43