File indexing completed on 2024-07-03 04:17:54
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
0017 process.source = cms.Source("PoolSource",
0018 fileNames = cms.untracked.vstring(
0019
0020 '/store/mc/RunIISummer20UL18MiniAODv2/TTTo2L2Nu_TuneCP5_13TeV-powheg-pythia8/MINIAODSIM/106X_upgrade2018_realistic_v16_L1v1-v1/00000/04A0B676-D63A-6D41-B47F-F4CF8CBE7DB8.root'
0021 ),
0022 )
0023
0024 process.options = cms.untracked.PSet()
0025
0026 process.genParticles2HepMC.genParticles = cms.InputTag("mergedGenParticles")
0027 process.rivetAnalyzer.HepMCCollection = cms.InputTag("genParticles2HepMC:unsmeared")
0028
0029 process.rivetAnalyzer.AnalysisNames = cms.vstring('MC_TTBAR', 'CMS_2018_I1662081')
0030 process.rivetAnalyzer.OutputFile = cms.string('mcfile.yoda')
0031 process.rivetAnalyzer.useLHEweights = True
0032
0033 process.p = cms.Path(process.mergedGenParticles*process.genParticles2HepMC*process.rivetAnalyzer)