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
EtaRangeSelector Struct Reference

#include <EtaRangeSelector.h>

Public Member Functions

 EtaRangeSelector (double etaMin, double etaMax)
 
template<typename T >
bool operator() (const T &t) const
 

Private Attributes

double etaMax_
 
double etaMin_
 

Detailed Description

Definition at line 10 of file EtaRangeSelector.h.

Constructor & Destructor Documentation

EtaRangeSelector::EtaRangeSelector ( double  etaMin,
double  etaMax 
)
inline

Definition at line 11 of file EtaRangeSelector.h.

11  :
12  etaMin_( etaMin ), etaMax_( etaMax ) { }

Member Function Documentation

template<typename T >
bool EtaRangeSelector::operator() ( const T t) const
inline

Definition at line 14 of file EtaRangeSelector.h.

References eta(), etaMax_, and etaMin_.

14  {
15  double eta = t.eta();
16  return ( eta >= etaMin_ && eta <= etaMax_ );
17  }
T eta() const

Member Data Documentation

double EtaRangeSelector::etaMax_
private

Definition at line 19 of file EtaRangeSelector.h.

Referenced by operator()().

double EtaRangeSelector::etaMin_
private

Definition at line 19 of file EtaRangeSelector.h.

Referenced by operator()().