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("RERUN")
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     restoreStateLabel = cms.untracked.string('randomEngineStateProducer')
0018 )
0019 
0020 ## process.randomEngineStateProducer = cms.EDProducer("RandomEngineStateProducer")
0021 
0022 # The following three lines reduce the clutter of repeated printouts
0023 # of the same exception message.
0024 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0025 
0026 
0027 
0028 
0029 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(5))
0030 
0031 process.source = cms.Source("PoolSource",
0032     fileNames = cms.untracked.vstring('file:TestTTbar.root'),
0033     skipEvents = cms.untracked.uint32(3)
0034 )
0035 
0036 process.generator = cms.EDFilter("Pythia6HadronizerFilter",
0037     pythiaHepMCVerbosity = cms.untracked.bool(True),
0038     maxEventsToPrint = cms.untracked.int32(5),
0039     pythiaPylistVerbosity = cms.untracked.int32(1),
0040     comEnergy = cms.double(10000.0),
0041     PythiaParameters = cms.PSet(
0042         pythiaUESettingsBlock,
0043         processParameters = cms.vstring('MSEL=0         ! User defined processes', 
0044                         'PMAS(5,1)=4.4   ! b quark mass',
0045                         'PMAS(6,1)=172.4 ! t quark mass',
0046             'MSTJ(1)=1       ! Fragmentation/hadronization on or off',
0047             'MSTP(61)=1      ! Parton showering on or off'),
0048         # This is a vector of ParameterSet names to be read, in this order
0049         parameterSets = cms.vstring('pythiaUESettings', 
0050             'processParameters')
0051     )
0052 )
0053 
0054 process.GEN = cms.OutputModule("PoolOutputModule",
0055     fileName = cms.untracked.string('TestTTbar_redo.root')
0056 )
0057 
0058 process.p = cms.Path(process.generator)
0059 ## process.p1 = cms.Path(process.randomEngineStateProducer)
0060 process.outpath = cms.EndPath(process.GEN)
0061 
0062 ## process.schedule = cms.Schedule(process.p, process.p1, process.outpath)
0063 process.schedule = cms.Schedule(process.p, process.outpath)