CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
single_neutrino_cfg.py
Go to the documentation of this file.
2 
3 process = cms.Process("TestProcess")
4 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
5 
6 process.load("Configuration.EventContent.EventContent_cff")
7 
8 process.maxEvents = cms.untracked.PSet(
9  input = cms.untracked.int32(10000)
10 )
11 
12 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
13  moduleSeeds = cms.PSet(
14  generator = cms.untracked.uint32(456789)
15  )
16 )
17 
18 process.source = cms.Source("EmptySource",
19  firstRun = cms.untracked.uint32(1),
20  firstEvent = cms.untracked.uint32(1)
21 )
22 
23 process.generator = cms.EDProducer("FlatRandomEGunProducer",
24  PGunParameters = cms.PSet(
25  PartID = cms.vint32(14),
26  MinEta = cms.double(-5.5),
27  MaxEta = cms.double(5.5),
28  MinPhi = cms.double(-3.14159265359),
29  MaxPhi = cms.double(3.14159265359),
30  MinE = cms.double(10.0),
31  MaxE = cms.double(10.0)
32  ),
33  AddAntiParticle = cms.bool(False),
34  Verbosity = cms.untracked.int32(0)
35 )
36 
37 process.o1 = cms.OutputModule("PoolOutputModule",
38  process.FEVTSIMEventContent,
39  fileName = cms.untracked.string('single_neutrino_random.root')
40 )
41 
42 process.p1 = cms.Path(process.generator)
43 process.outpath = cms.EndPath(process.o1)
44