CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Public Attributes
btag::Matching< Delta >::Comparator< SortComparator > Struct Template Reference

Public Types

typedef Matching::index_type index_type
 

Public Member Functions

 Comparator (const SimpleMatrix< Delta > &matrix, SortComparator &sort)
 
bool operator() (index_type i1, index_type i2) const
 

Public Attributes

const SimpleMatrix< Delta > & matrix
 
SortComparator & sort
 

Detailed Description

template<typename Delta>
template<class SortComparator>
struct btag::Matching< Delta >::Comparator< SortComparator >

Definition at line 51 of file Matching.h.

Member Typedef Documentation

template<typename Delta>
template<class SortComparator>
typedef Matching::index_type btag::Matching< Delta >::Comparator< SortComparator >::index_type

Definition at line 52 of file Matching.h.

Constructor & Destructor Documentation

template<typename Delta>
template<class SortComparator>
btag::Matching< Delta >::Comparator< SortComparator >::Comparator ( const SimpleMatrix< Delta > &  matrix,
SortComparator< SortComparator > &  sort 
)
inline

Definition at line 54 of file Matching.h.

55  :
56  matrix(matrix), sort(sort) {}
const SimpleMatrix< Delta > & matrix
Definition: Matching.h:61
SortComparator & sort
Definition: Matching.h:62

Member Function Documentation

template<typename Delta>
template<class SortComparator>
bool btag::Matching< Delta >::Comparator< SortComparator >::operator() ( index_type  i1,
index_type  i2 
) const
inline

Definition at line 58 of file Matching.h.

References btag::Matching< Delta >::matrix, and jetUpdater_cfi::sort.

59  { return sort(matrix[i1], matrix[i2]); }
const SimpleMatrix< Delta > & matrix
Definition: Matching.h:61
SortComparator & sort
Definition: Matching.h:62

Member Data Documentation

template<typename Delta>
template<class SortComparator>
const SimpleMatrix<Delta>& btag::Matching< Delta >::Comparator< SortComparator >::matrix

Definition at line 61 of file Matching.h.

template<typename Delta>
template<class SortComparator>
SortComparator& btag::Matching< Delta >::Comparator< SortComparator >::sort

Definition at line 62 of file Matching.h.