CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
FunctionMinSelector< F > Struct Template Reference

#include <FunctionMinSelector.h>

Public Member Functions

 FunctionMinSelector (double minCut)
 
bool operator() (const typename F::type &t) const
 

Private Attributes

F f
 
double minCut_
 

Detailed Description

template<typename F>
struct FunctionMinSelector< F >

Definition at line 11 of file FunctionMinSelector.h.

Constructor & Destructor Documentation

template<typename F >
FunctionMinSelector< F >::FunctionMinSelector ( double  minCut)
inlineexplicit

Definition at line 12 of file FunctionMinSelector.h.

12  :
13  minCut_( minCut ) { }

Member Function Documentation

template<typename F >
bool FunctionMinSelector< F >::operator() ( const typename F::type t) const
inline

Definition at line 14 of file FunctionMinSelector.h.

References FunctionMinSelector< F >::f, and FunctionMinSelector< F >::minCut_.

14  {
15  return f( t ) >= minCut_;
16  }

Member Data Documentation

template<typename F >
F FunctionMinSelector< F >::f
private
template<typename F >
double FunctionMinSelector< F >::minCut_
private

Definition at line 19 of file FunctionMinSelector.h.

Referenced by FunctionMinSelector< F >::operator()().