00001 /* \class LargestEtCaloJetSelector 00002 * 00003 * selects the N calo-jets with largest Et 00004 * 00005 * \author: Luca Lista, INFN 00006 * 00007 */ 00008 #include "FWCore/Framework/interface/MakerMacros.h" 00009 #include "PhysicsTools/UtilAlgos/interface/ObjectSelector.h" 00010 #include "PhysicsTools/UtilAlgos/interface/SortCollectionSelector.h" 00011 #include "DataFormats/JetReco/interface/CaloJet.h" 00012 #include "PhysicsTools/Utilities/interface/EtComparator.h" 00013 00014 typedef ObjectSelector< 00015 SortCollectionSelector< 00016 reco::CaloJetCollection, 00017 GreaterByEt<reco::CaloJet> 00018 > 00019 > LargestEtCaloJetSelector; 00020 00021 DEFINE_FWK_MODULE( LargestEtCaloJetSelector );