1 import FWCore.ParameterSet.Config
as cms
3 process = cms.Process(
"TestProcess")
4 process.load(
"SimGeneral.HepPDTESSource.pythiapdt_cfi")
6 from Configuration.StandardSequences.VtxSmeared
import VtxSmeared
8 process.load(VtxSmeared[
'NoSmear'])
10 process.load(
"GeneratorInterface.Core.generatorSmeared_cfi")
12 process.load(
"Configuration.EventContent.EventContent_cff")
14 process.maxEvents = cms.untracked.PSet(
15 input = cms.untracked.int32(10000)
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)
23 process.source = cms.Source(
"EmptySource",
24 firstRun = cms.untracked.uint32(1),
25 firstEvent = cms.untracked.uint32(1)
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)
38 AddAntiParticle = cms.bool(
False),
39 Verbosity = cms.untracked.int32(0)
42 process.o1 = cms.OutputModule(
"PoolOutputModule",
43 process.FEVTSIMEventContent,
44 fileName = cms.untracked.string(
'single_neutrino_random.root')
47 process.p1 = cms.Path(process.generator*process.VtxSmeared*process.generatorSmeared)
48 process.outpath = cms.EndPath(process.o1)