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.
1 import FWCore.ParameterSet.Config as cms
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.load("IOMC.RandomEngine.IOMC_cff")
13 process.RandomNumberGeneratorService.generator.initialSeed = 456789
14 
15 process.source = cms.Source("EmptySource",
16  firstRun = cms.untracked.uint32(1),
17  firstEvent = cms.untracked.uint32(1)
18 )
19 
20 process.generator = cms.EDProducer("FlatRandomEGunProducer",
21  PGunParameters = cms.PSet(
22  PartID = cms.vint32(14),
23  MinEta = cms.double(-5.5),
24  MaxEta = cms.double(5.5),
25  MinPhi = cms.double(-3.14159265359),
26  MaxPhi = cms.double(3.14159265359),
27  MinE = cms.double(10.0),
28  MaxE = cms.double(10.0)
29  ),
30  AddAntiParticle = cms.bool(False),
31  Verbosity = cms.untracked.int32(0)
32 )
33 
34 process.o1 = cms.OutputModule("PoolOutputModule",
35  process.FEVTSIMEventContent,
36  fileName = cms.untracked.string('single_neutrino_random.root')
37 )
38 
39 process.p1 = cms.Path(process.generator)
40 process.outpath = cms.EndPath(process.o1)
41