CMS 3D CMS Logo

deltaEtSorter< T, U > Class Template Reference

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

List of all members.

Public Member Functions

 deltaEtSorter (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 deltaEtSorter< T, U >

Definition at line 111 of file PFBenchmarkAlgo.h.


Constructor & Destructor Documentation

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

Definition at line 114 of file PFBenchmarkAlgo.h.

References deltaEtSorter< T, U >::cref.

00114 { cref = Ref; }


Member Function Documentation

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

Definition at line 115 of file PFBenchmarkAlgo.h.

References deltaEtSorter< T, U >::cref, and PFBenchmarkAlgo::deltaEt().

00115                                                   {
00116     return fabs(PFBenchmarkAlgo::deltaEt(cref,&c1)) < fabs(PFBenchmarkAlgo::deltaEt(cref,&c2));
00117   }


Member Data Documentation

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

Definition at line 121 of file PFBenchmarkAlgo.h.

Referenced by deltaEtSorter< T, U >::deltaEtSorter(), and deltaEtSorter< 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