#include <MatchByDEta.h>
Public Member Functions | |
MatchByDEta (const edm::ParameterSet &cfg) | |
bool | operator() (const T1 &t1, const T2 &t2) const |
Private Attributes | |
double | maxDEta_ |
Definition at line 10 of file MatchByDEta.h.
reco::MatchByDEta< T1, T2 >::MatchByDEta | ( | const edm::ParameterSet & | cfg | ) | [inline] |
Definition at line 12 of file MatchByDEta.h.
: maxDEta_(cfg.getParameter<double>("maxDeltaEta")) {}
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_; }
double reco::MatchByDEta< T1, T2 >::maxDEta_ [private] |
Definition at line 18 of file MatchByDEta.h.
Referenced by reco::MatchByDEta< T1, T2 >::operator()().