CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EtaRangeSelector.h
Go to the documentation of this file.
1 #ifndef RecoAlgos_EtaRangeSelector_h
2 #define RecoAlgos_EtaRangeSelector_h
3 /* \class EtaRangeSelector
4  *
5  * \author Luca Lista, INFN
6  *
7  * $Id: EtaRangeSelector.h,v 1.4 2007/06/18 18:33:53 llista Exp $
8  */
9 
11  EtaRangeSelector( double etaMin, double etaMax ) :
12  etaMin_( etaMin ), etaMax_( etaMax ) { }
13  template<typename T>
14  bool operator()( const T & t ) const {
15  double eta = t.eta();
16  return ( eta >= etaMin_ && eta <= etaMax_ );
17  }
18 private:
19  double etaMin_, etaMax_;
20 };
21 
22 #endif
EtaRangeSelector(double etaMin, double etaMax)
long double T
bool operator()(const T &t) const