Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:07:27

0001 # Using DIRE plugin
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(91.188),
0017     ElectronPositronInitialState = cms.PSet(),
0018     PythiaParameters = cms.PSet(
0019         pythia8_example13 = cms.vstring('WeakSingleBoson:ffbar2gmZ = on',
0020                                         '23:onMode = off',
0021                                         '23:onIfAny = 1 2 3 4 5',
0022                                         'PDF:lepton = off',
0023                                         'SpaceShower:QEDshowerByL = off',
0024                                         'HadronLevel:all = on',
0025                                         'PartonShowers:model = 3'),
0026         parameterSets = cms.vstring('pythia8_example13')
0027     )
0028 )
0029 
0030 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0031 process.MessageLogger = cms.Service("MessageLogger",
0032     cerr = cms.untracked.PSet(
0033         enable = cms.untracked.bool(False)
0034     ),
0035     cout = cms.untracked.PSet(
0036         default = cms.untracked.PSet(
0037             limit = cms.untracked.int32(2)
0038         ),
0039         enable = cms.untracked.bool(True)
0040     )
0041 )
0042 
0043 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0044     generator = cms.PSet(
0045         initialSeed = cms.untracked.uint32(123456789),
0046     )
0047 )
0048 
0049 process.maxEvents = cms.untracked.PSet(
0050     input = cms.untracked.int32(100)
0051 )
0052 
0053 process.GEN = cms.OutputModule("PoolOutputModule",
0054     fileName = cms.untracked.string('pythia8ex13.root')
0055 )
0056 
0057 process.p = cms.Path(process.generator)
0058 process.outpath = cms.EndPath(process.GEN)
0059 
0060 process.schedule = cms.Schedule(process.p, process.outpath)