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 
0008 #process.source = cms.Source("EmptySource")
0009 process.source = cms.Source("LHESource",
0010     fileNames = cms.untracked.vstring('file:ttbar.lhe')
0011 )
0012 
0013 process.generator = cms.EDFilter("Pythia8HadronizerFilter",
0014     maxEventsToPrint = cms.untracked.int32(1),
0015     pythiaPylistVerbosity = cms.untracked.int32(1),
0016     filterEfficiency = cms.untracked.double(1.0),
0017     pythiaHepMCVerbosity = cms.untracked.bool(False),
0018     comEnergy = cms.double(7000.),
0019     #LHEInputFileName = cms.untracked.string('ttbar.lhe'),
0020     PythiaParameters = cms.PSet(
0021         pythia8_example03 = cms.vstring(''),
0022         parameterSets = cms.vstring('pythia8_example03')
0023     )
0024 )
0025 
0026 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0027 process.MessageLogger = cms.Service("MessageLogger",
0028     cerr = cms.untracked.PSet(
0029         enable = cms.untracked.bool(False)
0030     ),
0031     cout = cms.untracked.PSet(
0032         default = cms.untracked.PSet(
0033             limit = cms.untracked.int32(2)
0034         ),
0035         enable = cms.untracked.bool(True)
0036     )
0037 )
0038 
0039 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0040     generator = cms.PSet(
0041         initialSeed = cms.untracked.uint32(123456789),
0042     )
0043 )
0044 
0045 process.maxEvents = cms.untracked.PSet(
0046     input = cms.untracked.int32(10)
0047 )
0048 
0049 process.GEN = cms.OutputModule("PoolOutputModule",
0050     fileName = cms.untracked.string('pythia8ex3.root')
0051 )
0052 
0053 process.p = cms.Path(process.generator)
0054 process.outpath = cms.EndPath(process.GEN)
0055 
0056 process.schedule = cms.Schedule(process.p, process.outpath)
0057