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

#include <PhiRangeSelector.h>

Public Member Functions

template<typename T >
bool operator() (const T &t) const
 
 PhiRangeSelector (double phiMin, double phiMax)
 

Private Attributes

double phiMax_
 
double phiMin_
 

Detailed Description

Definition at line 7 of file PhiRangeSelector.h.

Constructor & Destructor Documentation

PhiRangeSelector::PhiRangeSelector ( double  phiMin,
double  phiMax 
)
inline

Definition at line 8 of file PhiRangeSelector.h.

8  :
9  phiMin_( phiMin ), phiMax_( phiMax ) { }

Member Function Documentation

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

Definition at line 11 of file PhiRangeSelector.h.

References phi, phiMax_, and phiMin_.

11  {
12  double phi = t.phi();
13  return ( phi >= phiMin_ && phi <= phiMax_ );
14  }

Member Data Documentation

double PhiRangeSelector::phiMax_
private

Definition at line 16 of file PhiRangeSelector.h.

Referenced by operator()().

double PhiRangeSelector::phiMin_
private

Definition at line 16 of file PhiRangeSelector.h.

Referenced by operator()().