CMS 3D CMS Logo

Public Member Functions | Private Attributes

MassRangeSelector Struct Reference

#include <MassRangeSelector.h>

List of all members.

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.

                                                      : 
    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_.

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

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()().