CMS 3D CMS Logo

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 #process.load("IOMC.EventVertexGenerators.VtxSmearedFlat_cfi")
6 from Configuration.StandardSequences.VtxSmeared import VtxSmeared
7 #process.load(VtxSmeared['Flat'])
8 process.load(VtxSmeared['NoSmear'])
9 
10 process.load("GeneratorInterface.Core.generatorSmeared_cfi")
11 
12 process.load("Configuration.EventContent.EventContent_cff")
13 
14 process.maxEvents = cms.untracked.PSet(
15  input = cms.untracked.int32(10000)
16 )
17 
18 process.load("IOMC.RandomEngine.IOMC_cff")
19 process.RandomNumberGeneratorService.generator.initialSeed = 456789
20 process.RandomNumberGeneratorService.VtxSmeared.engineName = cms.untracked.string('HepJamesRandom')
21 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = cms.untracked.uint32(98765432)
22 
23 process.source = cms.Source("EmptySource",
24  firstRun = cms.untracked.uint32(1),
25  firstEvent = cms.untracked.uint32(1)
26 )
27 
28 process.generator = cms.EDProducer("FlatRandomEGunProducer",
29  PGunParameters = cms.PSet(
30  PartID = cms.vint32(14),
31  MinEta = cms.double(-5.5),
32  MaxEta = cms.double(5.5),
33  MinPhi = cms.double(-3.14159265359),
34  MaxPhi = cms.double(3.14159265359),
35  MinE = cms.double(10.0),
36  MaxE = cms.double(10.0)
37  ),
38  AddAntiParticle = cms.bool(False),
39  Verbosity = cms.untracked.int32(0)
40 )
41 
42 process.o1 = cms.OutputModule("PoolOutputModule",
43  process.FEVTSIMEventContent,
44  fileName = cms.untracked.string('single_neutrino_random.root')
45 )
46 
47 process.p1 = cms.Path(process.generator*process.VtxSmeared*process.generatorSmeared)
48 process.outpath = cms.EndPath(process.o1)
49