CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
reco::MatchByDRDPt< T1, T2 > Class Template Reference

#include <MatchByDRDPt.h>

Public Member Functions

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

Private Attributes

reco::MatchByDR< T1, T2 > deltaR_
 
double maxDPtRel_
 

Detailed Description

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

Definition at line 12 of file MatchByDRDPt.h.

Constructor & Destructor Documentation

◆ MatchByDRDPt()

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

Definition at line 14 of file MatchByDRDPt.h.

14 : deltaR_(cfg), maxDPtRel_(cfg.getParameter<double>("maxDPtRel")) {}

Member Function Documentation

◆ operator()()

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

Definition at line 15 of file MatchByDRDPt.h.

15  {
16  return fabs(t1.pt() - t2.pt()) / t2.pt() < maxDPtRel_ && deltaR_(t1, t2);
17  }

References reco::MatchByDRDPt< T1, T2 >::deltaR_, reco::MatchByDRDPt< T1, T2 >::maxDPtRel_, RandomServiceHelper::t1, and RandomServiceHelper::t2.

Member Data Documentation

◆ deltaR_

template<typename T1 , typename T2 >
reco::MatchByDR<T1, T2> reco::MatchByDRDPt< T1, T2 >::deltaR_
private

Definition at line 20 of file MatchByDRDPt.h.

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

◆ maxDPtRel_

template<typename T1 , typename T2 >
double reco::MatchByDRDPt< T1, T2 >::maxDPtRel_
private

Definition at line 21 of file MatchByDRDPt.h.

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

RandomServiceHelper.t2
t2
Definition: RandomServiceHelper.py:257
RandomServiceHelper.t1
t1
Definition: RandomServiceHelper.py:256
reco::MatchByDRDPt::deltaR_
reco::MatchByDR< T1, T2 > deltaR_
Definition: MatchByDRDPt.h:20
reco::MatchByDRDPt::maxDPtRel_
double maxDPtRel_
Definition: MatchByDRDPt.h:21
looper.cfg
cfg
Definition: looper.py:296