CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
reco::MatchByDR< T1, T2 > Class Template Reference

#include <MatchByDR.h>

Public Member Functions

 MatchByDR (const edm::ParameterSet &cfg)
 
bool operator() (const T1 &t1, const T2 &t2) const
 

Private Attributes

DeltaR< T1, T2 > deltaR_
 
double maxDR_
 

Detailed Description

template<typename T1, typename T2>
class reco::MatchByDR< T1, T2 >

Definition at line 12 of file MatchByDR.h.

Constructor & Destructor Documentation

template<typename T1 , typename T2 >
reco::MatchByDR< T1, T2 >::MatchByDR ( const edm::ParameterSet cfg)
inline

Definition at line 14 of file MatchByDR.h.

14 : maxDR_(cfg.getParameter<double>("maxDeltaR")) {}
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
double maxDR_
Definition: MatchByDR.h:19

Member Function Documentation

template<typename T1 , typename T2 >
bool reco::MatchByDR< T1, T2 >::operator() ( const T1 &  t1,
const T2 &  t2 
) const
inline

Definition at line 15 of file MatchByDR.h.

References reco::MatchByDR< T1, T2 >::deltaR_, and reco::MatchByDR< T1, T2 >::maxDR_.

15 { return deltaR_(t1, t2) < maxDR_; }
double maxDR_
Definition: MatchByDR.h:19
DeltaR< T1, T2 > deltaR_
Definition: MatchByDR.h:18

Member Data Documentation

template<typename T1 , typename T2 >
DeltaR<T1, T2> reco::MatchByDR< T1, T2 >::deltaR_
private

Definition at line 18 of file MatchByDR.h.

Referenced by reco::MatchByDR< T1, T2 >::operator()().

template<typename T1 , typename T2 >
double reco::MatchByDR< T1, T2 >::maxDR_
private

Definition at line 19 of file MatchByDR.h.

Referenced by reco::MatchByDR< T1, T2 >::operator()().