1 import FWCore.ParameterSet.Config
as cms
3 process = cms.Process(
"TestProcess")
4 process.load(
"SimGeneral.HepPDTESSource.pythiapdt_cfi")
6 process.load(
"Configuration.EventContent.EventContent_cff")
8 process.maxEvents = cms.untracked.PSet(
9 input = cms.untracked.int32(10000)
12 process.load(
"IOMC.RandomEngine.IOMC_cff")
13 process.RandomNumberGeneratorService.generator.initialSeed = 456789
15 process.source = cms.Source(
"EmptySource",
16 firstRun = cms.untracked.uint32(1),
17 firstEvent = cms.untracked.uint32(1)
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)
30 AddAntiParticle = cms.bool(
False),
31 Verbosity = cms.untracked.int32(0)
34 process.o1 = cms.OutputModule(
"PoolOutputModule",
35 process.FEVTSIMEventContent,
36 fileName = cms.untracked.string(
'single_neutrino_random.root')
39 process.p1 = cms.Path(process.generator)
40 process.outpath = cms.EndPath(process.o1)