# Using DIRE plugin import FWCore.ParameterSet.Config as cms process = cms.Process("PROD") process.load("Configuration.StandardSequences.SimulationRandomNumberGeneratorSeeds_cff") process.source = cms.Source("EmptySource") process.generator = cms.EDFilter("Pythia8GeneratorFilter", maxEventsToPrint = cms.untracked.int32(1), pythiaPylistVerbosity = cms.untracked.int32(1), filterEfficiency = cms.untracked.double(1.0), pythiaHepMCVerbosity = cms.untracked.bool(False), comEnergy = cms.double(91.188), ElectronPositronInitialState = cms.PSet(), PythiaParameters = cms.PSet( pythia8_example13 = cms.vstring('WeakSingleBoson:ffbar2gmZ = on', '23:onMode = off', '23:onIfAny = 1 2 3 4 5', 'PDF:lepton = off', 'SpaceShower:QEDshowerByL = off', 'HadronLevel:all = on', 'PartonShowers:model = 3'), parameterSets = cms.vstring('pythia8_example13') ) ) process.load("FWCore.MessageLogger.MessageLogger_cfi") process.MessageLogger = cms.Service("MessageLogger", cerr = cms.untracked.PSet( enable = cms.untracked.bool(False) ), cout = cms.untracked.PSet( default = cms.untracked.PSet( limit = cms.untracked.int32(2) ), enable = cms.untracked.bool(True) ) ) process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService", generator = cms.PSet( initialSeed = cms.untracked.uint32(123456789), ) ) process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(100) ) process.GEN = cms.OutputModule("PoolOutputModule", fileName = cms.untracked.string('pythia8ex13.root') ) process.p = cms.Path(process.generator) process.outpath = cms.EndPath(process.GEN) process.schedule = cms.Schedule(process.p, process.outpath)