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

Constructor & Destructor Documentation

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

Definition at line 13 of file MatchByDRDPt.h.

13  :
14  deltaR_(cfg),
15  maxDPtRel_(cfg.getParameter<double>("maxDPtRel")) {}
T getParameter(std::string const &) const
reco::MatchByDR< T1, T2 > deltaR_
Definition: MatchByDRDPt.h:21

Member Function Documentation

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

Definition at line 16 of file MatchByDRDPt.h.

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

16  {
17  return fabs(t1.pt()-t2.pt())/t2.pt()<maxDPtRel_ &&
18  deltaR_(t1,t2);
19  }
auto const T2 &decltype(t1.eta()) t2
Definition: deltaR.h:18
reco::MatchByDR< T1, T2 > deltaR_
Definition: MatchByDRDPt.h:21

Member Data Documentation

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

Definition at line 21 of file MatchByDRDPt.h.

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

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

Definition at line 22 of file MatchByDRDPt.h.

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