Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("PROD")
0004 
0005 process.load("Configuration.StandardSequences.SimulationRandomNumberGeneratorSeeds_cff")
0006 
0007 process.source = cms.Source("EmptySource")
0008 
0009 process.generator = cms.EDFilter("Pythia8GeneratorFilter",
0010     maxEventsToPrint = cms.untracked.int32(1),
0011     pythiaPylistVerbosity = cms.untracked.int32(1),
0012     filterEfficiency = cms.untracked.double(1.0),
0013     pythiaHepMCVerbosity = cms.untracked.bool(False),
0014     comEnergy = cms.double(8000.),
0015     PythiaParameters = cms.PSet(
0016         pythia8_example08 = cms.vstring('WeakBosonAndParton:qqbar2gmZg = on',
0017                                         'WeakBosonAndParton:qg2gmZq = on',
0018                                         'PhaseSpace:pTHatMin = 20.',
0019                                         '23:onMode = off',
0020                                         '23:onIfAny = 11 13 15'),
0021         parameterSets = cms.vstring('pythia8_example08')
0022     )
0023 )
0024 
0025 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0026 process.MessageLogger = cms.Service("MessageLogger",
0027     cerr = cms.untracked.PSet(
0028         enable = cms.untracked.bool(False)
0029     ),
0030     cout = cms.untracked.PSet(
0031         default = cms.untracked.PSet(
0032             limit = cms.untracked.int32(2)
0033         ),
0034         enable = cms.untracked.bool(True)
0035     )
0036 )
0037 
0038 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0039     generator = cms.PSet(
0040         initialSeed = cms.untracked.uint32(123456789),
0041     )
0042 )
0043 
0044 process.maxEvents = cms.untracked.PSet(
0045     input = cms.untracked.int32(1000)
0046 )
0047 
0048 process.GEN = cms.OutputModule("PoolOutputModule",
0049     fileName = cms.untracked.string('pythia8ex8.root')
0050 )
0051 
0052 process.p = cms.Path(process.generator)
0053 process.outpath = cms.EndPath(process.GEN)
0054 
0055 process.schedule = cms.Schedule(process.p, process.outpath)
0056