File indexing completed on 2024-04-06 12:13:59
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("PROD")
0004
0005 process.load("Configuration.StandardSequences.SimulationRandomNumberGeneratorSeeds_cff")
0006
0007
0008
0009 process.source = cms.Source("LHESource",
0010 fileNames = cms.untracked.vstring('file:ttbar.lhe')
0011 )
0012
0013 process.generator = cms.EDFilter("Pythia8HepMC3HadronizerFilter",
0014 maxEventsToPrint = cms.untracked.int32(1),
0015 pythiaPylistVerbosity = cms.untracked.int32(1),
0016 filterEfficiency = cms.untracked.double(1.0),
0017 pythiaHepMCVerbosity = cms.untracked.bool(True),
0018 comEnergy = cms.double(7000.),
0019
0020 PythiaParameters = cms.PSet(
0021 pythia8_example03 = cms.vstring(''),
0022 parameterSets = cms.vstring('pythia8_example03')
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('pythia8hmc3ex3.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)