Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Generator.PythiaUESettings_cfi import *
0004 
0005 process = cms.Process("TEST")
0006 process.load("FWCore.Framework.test.cmsExceptionsFatal_cff")
0007 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0008 #process.load("SimGeneral.HepPDTESSource.pdt_cfi")
0009 
0010 process.load("Configuration.StandardSequences.Services_cff")
0011 
0012 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0013     generator = cms.PSet(
0014         initialSeed = cms.untracked.uint32(123456789),
0015         engineName = cms.untracked.string('HepJamesRandom')
0016     )
0017 )
0018 
0019 process.randomEngineStateProducer = cms.EDProducer("RandomEngineStateProducer")
0020 
0021 # The following three lines reduce the clutter of repeated printouts
0022 # of the same exception message.
0023 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0024 
0025 
0026 
0027 
0028 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(50))
0029 
0030 process.source = cms.Source("LHESource",
0031     fileNames = cms.untracked.vstring('file:ttbar_5flavours_xqcut20_10TeV.lhe')
0032 )
0033 
0034 process.generator = cms.EDFilter("Pythia6HadronizerFilter",
0035     pythiaHepMCVerbosity = cms.untracked.bool(True),
0036     maxEventsToPrint = cms.untracked.int32(0),
0037     pythiaPylistVerbosity = cms.untracked.int32(1),
0038     comEnergy = cms.double(10000.0),
0039     PythiaParameters = cms.PSet(
0040         pythiaUESettingsBlock,
0041         processParameters = cms.vstring('MSEL=0         ! User defined processes', 
0042                         'PMAS(5,1)=4.4   ! b quark mass',
0043                         'PMAS(6,1)=172.4 ! t quark mass',
0044             'MSTJ(1)=1       ! Fragmentation/hadronization on or off',
0045             'MSTP(61)=1      ! Parton showering on or off'),
0046         # This is a vector of ParameterSet names to be read, in this order
0047         parameterSets = cms.vstring('pythiaUESettings', 
0048             'processParameters')
0049     )
0050 )
0051 
0052 process.GEN = cms.OutputModule("PoolOutputModule",
0053     fileName = cms.untracked.string('TestTTbar.root')
0054 )
0055 
0056 process.p = cms.Path(process.generator)
0057 process.p1 = cms.Path(process.randomEngineStateProducer)
0058 process.outpath = cms.EndPath(process.GEN)
0059 
0060 process.schedule = cms.Schedule(process.p, process.p1, process.outpath)