File indexing completed on 2024-04-06 12:13:59
0001 import FWCore.ParameterSet.Config as cms
0002
0003 from Configuration.Generator.Pythia8CommonSettings_cfi import *
0004
0005 process = cms.Process("TEST")
0006
0007 process.load("FWCore.Framework.test.cmsExceptionsFatal_cff")
0008 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0009
0010 process.source = cms.Source("EmptySource")
0011
0012 process.generator = cms.EDFilter("Pythia8MassGun",
0013 maxEventsToPrint = cms.untracked.int32(100),
0014 pythiaPylistVerbosity = cms.untracked.int32(1),
0015 pythiaHepMCVerbosity = cms.untracked.bool(True),
0016
0017 PGunParameters = cms.PSet(
0018 ParticleID = cms.vint32(999999),
0019
0020 MinM = cms.double(8.0),
0021 MaxM = cms.double(15.0),
0022
0023 MinP = cms.double(20.0),
0024 MaxP = cms.double(20.0),
0025 MomMode = cms.int32(1),
0026 MinPt = cms.double(20.0),
0027 MaxPt = cms.double(20.0),
0028 MinPhi = cms.double(-3.14159265359),
0029 MaxPhi = cms.double(3.14159265359),
0030 MinEta = cms.double(-2.4),
0031 MaxEta = cms.double(2.4)
0032 ),
0033 PythiaParameters = cms.PSet(
0034
0035 pythia8CommonSettingsBlock,
0036
0037 processParameters = cms.vstring(
0038 '999999:all = GeneralResonance void 1 0 0 500. 1. 0. 0. 0.',
0039 '999999:oneChannel = 1 1.00 101 15 -15 15 -15',
0040 'Main:timesAllowErrors = 10000',
0041 '15:onMode = off',
0042 '15:onIfAll = 211 211 211',
0043 '15:onIfAll = 211 211 321',
0044 '15:onIfAll = 211 321 321',
0045 '15:onIfAll = 321 321 321',
0046 '15:onIfAll = 321 321 321',
0047 ),
0048
0049 parameterSets = cms.vstring(
0050 'processParameters',
0051 'pythia8CommonSettings')
0052 )
0053 )
0054
0055 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0056 process.MessageLogger = cms.Service("MessageLogger",
0057 cerr = cms.untracked.PSet(
0058 enable = cms.untracked.bool(False)
0059 ),
0060 cout = cms.untracked.PSet(
0061 default = cms.untracked.PSet(
0062 limit = cms.untracked.int32(2)
0063 ),
0064 enable = cms.untracked.bool(True)
0065 )
0066 )
0067
0068 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0069 generator = cms.PSet(
0070 initialSeed = cms.untracked.uint32(123456789),
0071 engineName = cms.untracked.string('HepJamesRandom')
0072 )
0073 )
0074
0075 process.maxEvents = cms.untracked.PSet(
0076 input = cms.untracked.int32(100)
0077 )
0078
0079 process.GEN = cms.OutputModule("PoolOutputModule",
0080 fileName = cms.untracked.string('Py8JetGun.root')
0081 )
0082
0083
0084 process.p = cms.Path(process.generator)
0085 process.outpath = cms.EndPath(process.GEN)
0086
0087 process.schedule = cms.Schedule(process.p, process.outpath)
0088