CMS 3D CMS Logo

pat::OverlapByDeltaR Struct Reference

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

#include <PhysicsTools/PatUtils/interface/GenericOverlapFinder.h>

List of all members.

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.

00040 :  scale_(1.0/(deltaR*deltaR)) {}


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 deltaR2(), and scale_.

00042                                                                 {
00043                 return deltaR2(t1,t2) * scale_;
00044             }


Member Data Documentation

double pat::OverlapByDeltaR::scale_ [private]

Definition at line 46 of file GenericOverlapFinder.h.

Referenced by operator()().


The documentation for this struct was generated from the following file:
Generated on Tue Jun 9 18:49:42 2009 for CMSSW by  doxygen 1.5.4