CMS 3D CMS Logo

deltaRSorter< T, U > Class Template Reference

#include <RecoParticleFlow/Benchmark/interface/PFBenchmarkAlgo.h>

List of all members.

Public Member Functions

 deltaRSorter (const T *Ref)
bool operator() (const U &c1, const U &c2) const

Private Attributes

const T * cref


Detailed Description

template<typename T, typename U>
class deltaRSorter< T, U >

Definition at line 96 of file PFBenchmarkAlgo.h.


Constructor & Destructor Documentation

template<typename T, typename U>
deltaRSorter< T, U >::deltaRSorter ( const T *  Ref  )  [inline]

Definition at line 99 of file PFBenchmarkAlgo.h.

References deltaRSorter< T, U >::cref.

00099 { cref = Ref; }


Member Function Documentation

template<typename T, typename U>
bool deltaRSorter< T, U >::operator() ( const U &  c1,
const U &  c2 
) const [inline]

Definition at line 100 of file PFBenchmarkAlgo.h.

References deltaRSorter< T, U >::cref, and PFBenchmarkAlgo::deltaR().

00100                                                   {
00101     return PFBenchmarkAlgo::deltaR(cref,&c1) < PFBenchmarkAlgo::deltaR(cref,&c2);
00102   }


Member Data Documentation

template<typename T, typename U>
const T* deltaRSorter< T, U >::cref [private]

Definition at line 106 of file PFBenchmarkAlgo.h.

Referenced by deltaRSorter< T, U >::deltaRSorter(), and deltaRSorter< T, U >::operator()().


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