Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #!/usr/bin/env cmsRun
0002 import FWCore.ParameterSet.Config as cms
0003 import sys
0004 
0005 process = cms.Process("LHE")
0006 
0007 #find the path to the config file
0008 path = "/".join(sys.argv[1].split('/')[0:-1])
0009 if not path:
0010     path = '.'
0011 
0012 process.source = cms.Source("LHESource",
0013     fileNames = cms.untracked.vstring('file:'+path+'/ttbar.lhe','file:'+path+'/ttbar_nonMergeable.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.threshold = 'INFO'
0026 process.MessageLogger.cerr = cms.untracked.PSet( threshold = cms.untracked.string('INFO') )
0027 
0028 process.LHE = cms.OutputModule("PoolOutputModule",
0029     dataset = cms.untracked.PSet(dataTier = cms.untracked.string('LHE')),
0030     fileName = cms.untracked.string('lhe_noMerge.root')
0031 )
0032 
0033 process.lhedump = cms.EDAnalyzer("DummyLHEAnalyzer",
0034                                  src = cms.InputTag("source"),
0035                                  dumpHeader = cms.untracked.bool(True)
0036                                  )
0037 
0038 process.p = cms.Path(process.lhedump)
0039 process.outpath = cms.EndPath(process.LHE)
0040