Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 process = cms.Process("LHE")
0005 
0006 process.load("IOMC.RandomEngine.IOMC_cff")
0007 process.load("FWCore.MessageService.MessageLogger_cfi")
0008 process.load('Configuration.EventContent.EventContent_cff')
0009 
0010 process.source = cms.Source("EmptySource",
0011     firstLuminosityBlock = cms.untracked.uint32(23456),
0012     numberEventsInLuminosityBlock = cms.untracked.uint32(10)
0013 )                            
0014 
0015 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(50) )
0016 
0017 process.load("GeneratorInterface/LHEInterface/ExternalLHEProducer_cfi")
0018 process.externalLHEProducer.nEvents = process.maxEvents.input.value()
0019 
0020 process.out = cms.OutputModule("PoolOutputModule",
0021     splitLevel = cms.untracked.int32(0),
0022     eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
0023     outputCommands = process.LHEEventContent.outputCommands,
0024     fileName = cms.untracked.string('lheOutputFile.root'),
0025     dataset = cms.untracked.PSet(
0026         filterName = cms.untracked.string(''),
0027         dataTier = cms.untracked.string('LHE')
0028     )
0029 )
0030 
0031 process.p = cms.Path(process.externalLHEProducer)
0032 
0033 process.e = cms.EndPath(process.out)