CMS 3D CMS Logo

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

Constructor & Destructor Documentation

◆ MatchByDEta()

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

Definition at line 13 of file MatchByDEta.h.

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

Member Function Documentation

◆ operator()()

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.

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

References reco::MatchByDEta< T1, T2 >::maxDEta_, RandomServiceHelper::t1, and RandomServiceHelper::t2.

Member Data Documentation

◆ maxDEta_

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

Definition at line 17 of file MatchByDEta.h.

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

RandomServiceHelper.t2
t2
Definition: RandomServiceHelper.py:257
RandomServiceHelper.t1
t1
Definition: RandomServiceHelper.py:256
reco::MatchByDEta::maxDEta_
double maxDEta_
Definition: MatchByDEta.h:17
looper.cfg
cfg
Definition: looper.py:297