File indexing completed on 2024-04-06 12:32:28
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("GEN")
0004
0005
0006 process.load("SimGeneral.HepPDTESSource.pdt_cfi")
0007
0008 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0009 moduleSeeds = cms.PSet(
0010 generator = cms.untracked.uint32(456789)
0011 ),
0012 sourceSeed = cms.untracked.uint32(54321)
0013 )
0014
0015 process.maxEvents = cms.untracked.PSet(
0016 input = cms.untracked.int32(2000)
0017 )
0018
0019 process.source = cms.Source("EmptySource")
0020
0021 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0022 PGunParameters = cms.PSet(
0023 PartID = cms.vint32(211),
0024 MinEta = cms.double(0.3045),
0025 MaxEta = cms.double(0.3045),
0026 MinPhi = cms.double(0.3054),
0027 MaxPhi = cms.double(0.3054),
0028 MinE = cms.double(100.0),
0029 MaxE = cms.double(100.0)
0030 ),
0031 AddAntiParticle = cms.bool(False),
0032 psethack = cms.string('single pion 100GeV on barrel'),
0033 Verbosity = cms.untracked.int32(0),
0034 firstRun = cms.untracked.uint32(1)
0035 )
0036
0037 process.GEN = cms.OutputModule("PoolOutputModule",
0038 fileName = cms.untracked.string('mc_pi+100_etaphi44.root')
0039 )
0040
0041 process.p1 = cms.Path(process.generator)
0042 process.p2 = cms.EndPath(process.GEN)
0043