CMS 3D CMS Logo

DeltaRMinPairSelector Struct Reference

#include <PhysicsTools/Utilities/interface/DeltaRMinPairSelector.h>

List of all members.

Public Member Functions

 DeltaRMinPairSelector (double deltaRMin)
template<typename T1, typename T2>
bool operator() (const T1 &t1, const T2 &t2) const

Private Attributes

double deltaRMin2_


Detailed Description

Definition at line 11 of file DeltaRMinPairSelector.h.


Constructor & Destructor Documentation

DeltaRMinPairSelector::DeltaRMinPairSelector ( double  deltaRMin  )  [inline]

Definition at line 12 of file DeltaRMinPairSelector.h.

00012                                             : 
00013     deltaRMin2_( deltaRMin * deltaRMin ) { }


Member Function Documentation

template<typename T1, typename T2>
bool DeltaRMinPairSelector::operator() ( const T1 &  t1,
const T2 &  t2 
) const [inline]

Definition at line 15 of file DeltaRMinPairSelector.h.

References deltaR2(), and deltaRMin2_.

00015                                                         { 
00016     return deltaR2( t1, t2 ) > deltaRMin2_;
00017   }


Member Data Documentation

double DeltaRMinPairSelector::deltaRMin2_ [private]

Definition at line 20 of file DeltaRMinPairSelector.h.

Referenced by operator()().


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