CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
deltaEtSorter< T, U > Class Template Reference

#include <PFBenchmarkAlgo.h>

Public Member Functions

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

Private Attributes

const Tcref
 

Detailed Description

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

Definition at line 107 of file PFBenchmarkAlgo.h.

Constructor & Destructor Documentation

◆ deltaEtSorter()

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

Definition at line 109 of file PFBenchmarkAlgo.h.

109 { cref = Ref; }

References deltaEtSorter< T, U >::cref.

Member Function Documentation

◆ operator()()

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

Definition at line 110 of file PFBenchmarkAlgo.h.

110  {
111  return fabs(PFBenchmarkAlgo::deltaEt(cref, &c1)) < fabs(PFBenchmarkAlgo::deltaEt(cref, &c2));
112  }

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

Member Data Documentation

◆ cref

template<typename T , typename U >
const T* deltaEtSorter< T, U >::cref
private
PFBenchmarkAlgo::deltaEt
static double deltaEt(const T *, const U *)
Definition: PFBenchmarkAlgo.h:120
deltaEtSorter::cref
const T * cref
Definition: PFBenchmarkAlgo.h:115
alignmentValidation.c1
c1
do drawing
Definition: alignmentValidation.py:1025
reco::JetExtendedAssociation::Ref
edm::Ref< Container > Ref
Definition: JetExtendedAssociation.h:32