CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
List of all members | Public Member Functions | Private Attributes
reco::helper::LessByMatchDistance< D, C1, C2 > Class Template Reference

Default class for ranking matches: sorting by smaller distance. More...

#include <PhysObjectMatcher.h>

Public Member Functions

 LessByMatchDistance (const edm::ParameterSet &cfg, const C1 &c1, const C2 &c2)
 
bool operator() (const std::pair< size_t, size_t > &p1, const std::pair< size_t, size_t > &p2) const
 

Private Attributes

const C1 & c1_
 
const C2 & c2_
 
distance_
 

Detailed Description

template<typename D, typename C1, typename C2>
class reco::helper::LessByMatchDistance< D, C1, C2 >

Default class for ranking matches: sorting by smaller distance.

Definition at line 30 of file PhysObjectMatcher.h.

Constructor & Destructor Documentation

◆ LessByMatchDistance()

template<typename D, typename C1, typename C2>
reco::helper::LessByMatchDistance< D, C1, C2 >::LessByMatchDistance ( const edm::ParameterSet cfg,
const C1 &  c1,
const C2 &  c2 
)
inline

Member Function Documentation

◆ operator()()

template<typename D, typename C1, typename C2>
bool reco::helper::LessByMatchDistance< D, C1, C2 >::operator() ( const std::pair< size_t, size_t > &  p1,
const std::pair< size_t, size_t > &  p2 
) const
inline

Member Data Documentation

◆ c1_

template<typename D, typename C1, typename C2>
const C1& reco::helper::LessByMatchDistance< D, C1, C2 >::c1_
private

◆ c2_

template<typename D, typename C1, typename C2>
const C2& reco::helper::LessByMatchDistance< D, C1, C2 >::c2_
private

◆ distance_

template<typename D, typename C1, typename C2>
D reco::helper::LessByMatchDistance< D, C1, C2 >::distance_
private