File indexing completed on 2023-03-17 11:05:01
0001
0002
0003 import FWCore.ParameterSet.Config as cms
0004
0005 process = cms.Process("PROD")
0006
0007 process.load("Configuration.StandardSequences.SimulationRandomNumberGeneratorSeeds_cff")
0008
0009 process.source = cms.Source("EmptySource")
0010
0011 process.generator = cms.EDFilter("Pythia8GeneratorFilter",
0012 maxEventsToPrint = cms.untracked.int32(1),
0013 pythiaPylistVerbosity = cms.untracked.int32(1),
0014 filterEfficiency = cms.untracked.double(1.0),
0015 pythiaHepMCVerbosity = cms.untracked.bool(False),
0016 comEnergy = cms.double(7000.),
0017 PythiaParameters = cms.PSet(
0018 pythia8_example05 = cms.vstring('SoftQCD:nonDiffractive = on',
0019 'SoftQCD:singleDiffractive = on',
0020 'SoftQCD:doubleDiffractive = on',
0021 'Tune:pp 2'),
0022 parameterSets = cms.vstring('pythia8_example05')
0023 )
0024 )
0025
0026 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0027 process.MessageLogger = cms.Service("MessageLogger",
0028 cerr = cms.untracked.PSet(
0029 enable = cms.untracked.bool(False)
0030 ),
0031 cout = cms.untracked.PSet(
0032 default = cms.untracked.PSet(
0033 limit = cms.untracked.int32(2)
0034 ),
0035 enable = cms.untracked.bool(True)
0036 )
0037 )
0038
0039 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0040 generator = cms.PSet(
0041 initialSeed = cms.untracked.uint32(123456789),
0042 )
0043 )
0044
0045 process.maxEvents = cms.untracked.PSet(
0046 input = cms.untracked.int32(10)
0047 )
0048
0049 process.GEN = cms.OutputModule("PoolOutputModule",
0050 fileName = cms.untracked.string('pythia8ex5.root')
0051 )
0052
0053 process.p = cms.Path(process.generator)
0054 process.outpath = cms.EndPath(process.GEN)
0055
0056 process.schedule = cms.Schedule(process.p, process.outpath)
0057