CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
pat::OverlapByDeltaR Struct Reference

#include <GenericOverlapFinder.h>

Public Member Functions

template<typename T1 , typename T2 >
double operator() (const T1 &t1, const T2 &t2) const
 
 OverlapByDeltaR (double deltaR)
 

Private Attributes

double scale_
 

Detailed Description

Distance with deltaR metrics and a fixed maximum for the overlap deltaR dist(x,y) = deltaR2(x,y) / deltaR2cut;

Definition at line 38 of file GenericOverlapFinder.h.

Constructor & Destructor Documentation

pat::OverlapByDeltaR::OverlapByDeltaR ( double  deltaR)
inline

Definition at line 40 of file GenericOverlapFinder.h.

40 : scale_(1.0/(deltaR*deltaR)) {}
double deltaR(double eta1, double eta2, double phi1, double phi2)
Definition: TreeUtility.cc:17

Member Function Documentation

template<typename T1 , typename T2 >
double pat::OverlapByDeltaR::operator() ( const T1 &  t1,
const T2 &  t2 
) const
inline

Definition at line 42 of file GenericOverlapFinder.h.

References reco::deltaR2().

42  {
43  return deltaR2(t1,t2) * scale_;
44  }
auto const T2 &decltype(t1.eta()) t2
Definition: deltaR.h:16
T1 deltaR2(T1 eta1, T2 phi1, T3 eta2, T4 phi2)
Definition: deltaR.h:36

Member Data Documentation

double pat::OverlapByDeltaR::scale_
private

Definition at line 46 of file GenericOverlapFinder.h.