JetUtils.cc
Go to the documentation of this file.
00001 #include "Rivet/Tools/JetUtils.hh" 00002 #include "Rivet/Tools/Cuts.hh" 00003 00004 namespace Rivet { 00005 00006 00007 Jets& ifilter_select(Jets& jets, const Cut& c) { 00008 if (c == Cuts::OPEN) return jets; 00009 // return ifilter_select(jets, *c); 00010 return ifilter_select(jets, [&](const Jet& j){return c->accept(j);}); 00011 } 00012 00013 00014 Jets& ifilter_discard(Jets& jets, const Cut& c) { 00015 if (c == Cuts::OPEN) { jets.clear(); return jets; } 00016 // return ifilter_discard(jets, *c); 00017 return ifilter_discard(jets, [&](const Jet& j){return c->accept(j);}); 00018 } 00019 00020 00021 } Generated on Tue Dec 13 2016 16:32:38 for The Rivet MC analysis system by ![]() |