Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #!/usr/bin/env cmsRun
0002 import FWCore.ParameterSet.Config as cms
0003 import sys
0004 
0005 #find the path to the config file
0006 path = "/".join(sys.argv[1].split('/')[0:-1])
0007 if not path:
0008     path = '.'
0009 
0010 process = cms.Process("LHE")
0011 
0012 process.source = cms.Source("LHESource",
0013     fileNames = cms.untracked.vstring('file:'+path+'/ttbar.lhe','file:'+path+'/ttbar_mergeable.lhe')
0014 )
0015 
0016 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(-1))
0017 
0018 process.configurationMetadata = cms.untracked.PSet(
0019     version = cms.untracked.string('alpha'),
0020     name = cms.untracked.string('LHEF input'),
0021     annotation = cms.untracked.string('ttbar')
0022 )
0023 
0024 process.load("FWCore.MessageService.MessageLogger_cfi")
0025 process.MessageLogger.cerr = cms.untracked.PSet( threshold = cms.untracked.string('INFO') )
0026 
0027 process.LHE = cms.OutputModule("PoolOutputModule",
0028     dataset = cms.untracked.PSet(dataTier = cms.untracked.string('LHE')),
0029     fileName = cms.untracked.string('lhe_merge.root')
0030 )
0031 
0032 process.lhedump = cms.EDAnalyzer("DummyLHEAnalyzer",
0033                                  src = cms.InputTag("source"),
0034                                  dumpHeader = cms.untracked.bool(True)
0035                                  )
0036 
0037 process.p = cms.Path(process.lhedump)
0038 process.outpath = cms.EndPath(process.LHE)