#ifndef RecoAlgos_PtMinSelector_h #define RecoAlgos_PtMinSelector_h /* \class PtMinSelector * * \author Luca Lista, INFN * * $Id: PtMinSelector.h,v 1.2 2006/07/25 17:21:31 llista Exp $ */ #include "FWCore/ParameterSet/interface/ParameterSet.h" template struct PtMinSelector { PtMinSelector( double ptMin ) : ptMin_( ptMin ) { } PtMinSelector( const edm::ParameterSet & cfg ) : ptMin_( cfg.template getParameter( "ptMin" ) ) { } bool operator()( const T & t ) const { return t.pt() > ptMin_; } private: double ptMin_; }; #endif