00001 import FWCore.ParameterSet.Config as cms
00002
00003 process = cms.Process("GEN")
00004
00005
00006 process.load("SimGeneral.HepPDTESSource.pdt_cfi")
00007
00008 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
00009 sourceSeed = cms.untracked.uint32(54321)
00010 )
00011
00012 process.maxEvents = cms.untracked.PSet(
00013 input = cms.untracked.int32(2000)
00014 )
00015 process.source = cms.Source("FlatRandomEGunSource",
00016 PGunParameters = cms.untracked.PSet(
00017
00018 PartID = cms.untracked.vint32(211),
00019 MaxEta = cms.untracked.double(0.3045),
00020 MaxPhi = cms.untracked.double(0.3054),
00021 MinEta = cms.untracked.double(0.3045),
00022 MinE = cms.untracked.double(100.0),
00023 MinPhi = cms.untracked.double(0.3054),
00024
00025 MaxE = cms.untracked.double(100.0)
00026 ),
00027 Verbosity = cms.untracked.int32(0),
00028
00029 psethack = cms.string('single pion 100GeV on barrel'),
00030 firstRun = cms.untracked.uint32(1)
00031 )
00032
00033 process.GEN = cms.OutputModule("PoolOutputModule",
00034 fileName = cms.untracked.string('mc_pi+100_etaphi44.root')
00035 )
00036
00037 process.p = cms.EndPath(process.GEN)
00038