CMS 3D CMS Logo

Public Member Functions | Private Attributes

reco::MatchByDEta< T1, T2 > Class Template Reference

#include <MatchByDEta.h>

List of all members.

Public Member Functions

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

Private Attributes

double maxDEta_

Detailed Description

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

Definition at line 10 of file MatchByDEta.h.


Constructor & Destructor Documentation

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

Definition at line 12 of file MatchByDEta.h.

                                             :
      maxDEta_(cfg.getParameter<double>("maxDeltaEta")) {}

Member Function Documentation

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

Definition at line 14 of file MatchByDEta.h.

References reco::MatchByDEta< T1, T2 >::maxDEta_.

                                                       {
      return fabs(t1.eta()-t2.eta()) < maxDEta_;
    }

Member Data Documentation

template<typename T1 , typename T2 >
double reco::MatchByDEta< T1, T2 >::maxDEta_ [private]

Definition at line 18 of file MatchByDEta.h.

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