Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-29 01:21:29

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process('Rivet')
0004 
0005 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0006 process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(100)
0007 
0008 process.load("GeneratorInterface.RivetInterface.mergedGenParticles_cfi")
0009 process.load("GeneratorInterface.RivetInterface.genParticles2HepMC_cff")
0010 process.load("GeneratorInterface.RivetInterface.rivetAnalyzer_cfi")
0011 
0012 process.maxEvents = cms.untracked.PSet(
0013     input = cms.untracked.int32(10000)
0014 )
0015 
0016 # Input source
0017 process.source = cms.Source("PoolSource",
0018     fileNames = cms.untracked.vstring(
0019         '/store/mc/RunIIAutumn18MiniAOD/TTJets_SingleLeptFromTbar_TuneCP5_13TeV-madgraphMLM-pythia8/MINIAODSIM/102X_upgrade2018_realistic_v15-v1/00000/0126270E-DB20-FB42-A2B6-CE59183BEB12.root',
0020     ),
0021 )
0022 
0023 process.options = cms.untracked.PSet()
0024 
0025 process.genParticles2HepMC.genParticles = cms.InputTag("mergedGenParticles")
0026 process.rivetAnalyzer.HepMCCollection = cms.InputTag("genParticles2HepMC:unsmeared")
0027 
0028 process.rivetAnalyzer.AnalysisNames = cms.vstring('MC_TTBAR', 'CMS_2018_I1662081')
0029 process.rivetAnalyzer.OutputFile = cms.string('mcfile.yoda')
0030 process.rivetAnalyzer.useLHEweights = True
0031 
0032 process.p = cms.Path(process.mergedGenParticles*process.genParticles2HepMC*process.rivetAnalyzer)