CMS 3D CMS Logo

MassRangeSelector Struct Reference

#include <PhysicsTools/Utilities/interface/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.

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

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


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


The documentation for this struct was generated from the following file:
Generated on Tue Jun 9 18:27:58 2009 for CMSSW by  doxygen 1.5.4