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 39 of file GenericOverlapFinder.h.

Constructor & Destructor Documentation

◆ OverlapByDeltaR()

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

Definition at line 41 of file GenericOverlapFinder.h.

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

Member Function Documentation

◆ operator()()

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

Definition at line 43 of file GenericOverlapFinder.h.

43  {
44  return deltaR2(t1, t2) * scale_;
45  }

References HLTMuonOfflineAnalyzer_cfi::deltaR2, scale_, RandomServiceHelper::t1, and RandomServiceHelper::t2.

Member Data Documentation

◆ scale_

double pat::OverlapByDeltaR::scale_
private

Definition at line 48 of file GenericOverlapFinder.h.

Referenced by operator()().

RandomServiceHelper.t2
t2
Definition: RandomServiceHelper.py:257
RandomServiceHelper.t1
t1
Definition: RandomServiceHelper.py:256
PbPb_ZMuSkimMuonDPG_cff.deltaR
deltaR
Definition: PbPb_ZMuSkimMuonDPG_cff.py:63
pat::OverlapByDeltaR::scale_
double scale_
Definition: GenericOverlapFinder.h:48
HLTMuonOfflineAnalyzer_cfi.deltaR2
deltaR2
Definition: HLTMuonOfflineAnalyzer_cfi.py:105