Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #Using evtgen 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(13000.),
0017     useEvtGenPlugin = cms.PSet(),
0018     #evtgenDecFile = cms.string("mydecfile"),
0019     #evtgenPdlFile = cms.string("mypdlfile"),
0020     evtgenUserFile = cms.vstring('GeneratorInterface/Pythia8Interface/test/evtgen_userfile.dec'),
0021     PythiaParameters = cms.PSet(
0022         pythia8_example11 = cms.vstring('HardQCD:hardbbbar = on'),
0023         parameterSets = cms.vstring('pythia8_example11')
0024     )
0025 )
0026 
0027 # in order to use lhapdf PDF add a line like this to pythia8_example02:
0028 # 'PDF:pSet = LHAPDF5:MRST2004nlo.LHpdf'
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(10)
0051 )
0052 
0053 process.GEN = cms.OutputModule("PoolOutputModule",
0054     fileName = cms.untracked.string('pythia8ex11.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)