test
CMS 3D CMS Logo

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

#include <MatchByDEta.h>

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.

12  :
13  maxDEta_(cfg.getParameter<double>("maxDeltaEta")) {}
T getParameter(std::string const &) const

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_.

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

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()().