test
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
MassRangeSelector Struct Reference

#include <MassRangeSelector.h>

Public Member Functions

 MassRangeSelector (double massMin, double massMax)
 
template<typename T >
bool operator() (const T &t) const
 

Private Attributes

double massMax_
 
double massMin_
 

Detailed Description

Definition at line 10 of file MassRangeSelector.h.

Constructor & Destructor Documentation

MassRangeSelector::MassRangeSelector ( double  massMin,
double  massMax 
)
inline

Definition at line 11 of file MassRangeSelector.h.

11  :
12  massMin_( massMin ), massMax_( massMax ) { }

Member Function Documentation

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

Definition at line 14 of file MassRangeSelector.h.

References massMax_, and massMin_.

14  {
15  double mass = t.mass();
16  return ( mass >= massMin_ && mass <= massMax_ );
17  }

Member Data Documentation

double MassRangeSelector::massMax_
private

Definition at line 20 of file MassRangeSelector.h.

Referenced by operator()().

double MassRangeSelector::massMin_
private

Definition at line 20 of file MassRangeSelector.h.

Referenced by operator()().