CMS 3D CMS Logo

FunctionMinSelector.h

Go to the documentation of this file.
00001 #ifndef Utilities_FunctionMinSelector_h
00002 #define Utilities_FunctionMinSelector_h
00003 /* \class FunctionMinSelector
00004  *
00005  * \author Luca Lista, INFN
00006  *
00007  * $Id: FunctionMinSelector.h,v 1.1 2007/08/03 09:38:38 llista Exp $
00008  */
00009 
00010 template<typename F>
00011 struct FunctionMinSelector {
00012   explicit FunctionMinSelector( double minCut ) :
00013     minCut_( minCut ) { }
00014   bool operator()( const typename F::type & t ) const {
00015     return f( t ) >= minCut_;
00016   }
00017 private:
00018   F f;
00019   double minCut_;
00020 };
00021 
00022 #endif

Generated on Tue Jun 9 17:42:42 2009 for CMSSW by  doxygen 1.5.4