Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #!/usr/bin/env cmsRun
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 process = cms.Process("LHE")
0005 
0006 process.source = cms.Source("AlpgenSource",
0007                             fileNames = cms.untracked.vstring('file:w2j'),
0008                             writeAlpgenWgtFile = cms.untracked.bool(False),
0009                             writeAlpgenParFile = cms.untracked.bool(False),
0010                             writeExtraHeader = cms.untracked.bool(True),
0011                             extraHeaderFileName = cms.untracked.string('w2j.hepml'),
0012                             extraHeaderName = cms.untracked.string('hepml')
0013                             )
0014 
0015 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(100))
0016 
0017 process.load("FWCore.MessageService.MessageLogger_cfi")
0018 
0019 process.writer = cms.EDAnalyzer("LHEWriter")
0020 
0021 process.load("Configuration.EventContent.EventContent_cff")
0022 
0023 process.LHE = cms.OutputModule("PoolOutputModule",
0024                                        process.FEVTSIMEventContent,
0025                                        fileName = cms.untracked.string('testSource.root')
0026                               )
0027 
0028 process.outpath = cms.EndPath(process.writer + process.LHE)