CMS 3D CMS Logo

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

Definition at line 32 of file PhysObjectMatcher.h.

33  : distance_(reco::modules::make<D>(cfg)), c1_(c1), c2_(c2) {}

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
p2
double p2[4]
Definition: TauolaWrapper.h:90
reco::helper::LessByMatchDistance::c1_
const C1 & c1_
Definition: PhysObjectMatcher.h:40
reco::helper::LessByMatchDistance::distance_
D distance_
Definition: PhysObjectMatcher.h:39
alignmentValidation.c1
c1
do drawing
Definition: alignmentValidation.py:1025
p1
double p1[4]
Definition: TauolaWrapper.h:89
looper.cfg
cfg
Definition: looper.py:296
reco::helper::LessByMatchDistance::c2_
const C2 & c2_
Definition: PhysObjectMatcher.h:41