Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:36:16

0001 #ifndef CommonTools_Utils_FunctionMinSelector_h
0002 #define CommonTools_Utils_FunctionMinSelector_h
0003 /* \class FunctionMinSelector
0004  *
0005  * \author Luca Lista, INFN
0006  *
0007  * $Id: FunctionMinSelector.h,v 1.1 2009/02/24 14:40:26 llista Exp $
0008  */
0009 
0010 template <typename F>
0011 struct FunctionMinSelector {
0012   explicit FunctionMinSelector(double minCut) : minCut_(minCut) {}
0013   bool operator()(const typename F::type& t) const { return f(t) >= minCut_; }
0014 
0015 private:
0016   F f;
0017   double minCut_;
0018 };
0019 
0020 #endif