diff --git a/GeneratorInterface/RivetInterface/interface/RivetAnalysis.h b/GeneratorInterface/RivetInterface/interface/RivetAnalysis.h index 7dfc7609c4bd0..50d2ff395de6b 100644 --- a/GeneratorInterface/RivetInterface/interface/RivetAnalysis.h +++ b/GeneratorInterface/RivetInterface/interface/RivetAnalysis.h @@ -33,6 +33,7 @@ namespace Rivet { bool _usePromptFinalStates; bool _excludePromptLeptonsFromJetClustering; bool _excludeNeutrinosFromJetClustering; + bool _doJetClustering; double _particleMinPt, _particleMaxEta; double _lepConeSize, _lepMinPt, _lepMaxEta; @@ -51,6 +52,7 @@ namespace Rivet { _usePromptFinalStates(pset.getParameter("usePromptFinalStates")), _excludePromptLeptonsFromJetClustering(pset.getParameter("excludePromptLeptonsFromJetClustering")), _excludeNeutrinosFromJetClustering(pset.getParameter("excludeNeutrinosFromJetClustering")), + _doJetClustering(pset.getParameter("doJetClustering")), _particleMinPt(pset.getParameter("particleMinPt")), _particleMaxEta(pset.getParameter("particleMaxEta")), @@ -194,8 +196,10 @@ namespace Rivet { _photons.push_back(photon); } - _jets = apply(event, "Jets").jetsByPt(jet_cut); - _fatjets = apply(event, "FatJets").jetsByPt(fatjet_cut); + if (_doJetClustering) { + _jets = apply(event, "Jets").jetsByPt(jet_cut); + _fatjets = apply(event, "FatJets").jetsByPt(fatjet_cut); + } _neutrinos = apply(event, "Neutrinos").particlesByPt(); _met = apply(event, "MET").missingMomentum().p3(); diff --git a/GeneratorInterface/RivetInterface/python/particleLevel_cfi.py b/GeneratorInterface/RivetInterface/python/particleLevel_cfi.py index 7d441f009e909..587c10417ff7b 100644 --- a/GeneratorInterface/RivetInterface/python/particleLevel_cfi.py +++ b/GeneratorInterface/RivetInterface/python/particleLevel_cfi.py @@ -6,6 +6,7 @@ usePromptFinalStates = cms.bool(True), # for leptons, photons, neutrinos excludePromptLeptonsFromJetClustering = cms.bool(True), excludeNeutrinosFromJetClustering = cms.bool(True), + doJetClustering = cms.bool(True), particleMinPt = cms.double(0.), particleMaxEta = cms.double(5.), # HF range. Maximum 6.0 on MiniAOD