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::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 13 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 15 of file MatchByDEta.h.

15 : maxDEta_(cfg.getParameter<double>("maxDeltaEta")) {}
T getParameter(std::string const &) const
Definition: ParameterSet.h:303

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 16 of file MatchByDEta.h.

References funct::abs(), and reco::MatchByDEta< T1, T2 >::maxDEta_.

16 { return std::abs(t1.eta() - t2.eta()) < maxDEta_; }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22

Member Data Documentation

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

Definition at line 19 of file MatchByDEta.h.

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