CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
DeltaRMinPairSelector Struct Reference

#include <DeltaRMinPairSelector.h>

Public Member Functions

 DeltaRMinPairSelector (double deltaRMin)
 
template<typename T1 , typename T2 >
bool operator() (const T1 &t1, const T2 &t2) const
 

Private Attributes

double deltaRMin2_
 

Detailed Description

Definition at line 11 of file DeltaRMinPairSelector.h.

Constructor & Destructor Documentation

DeltaRMinPairSelector::DeltaRMinPairSelector ( double  deltaRMin)
inline

Definition at line 12 of file DeltaRMinPairSelector.h.

12 : deltaRMin2_(deltaRMin * deltaRMin) {}

Member Function Documentation

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

Definition at line 14 of file DeltaRMinPairSelector.h.

References reco::deltaR2(), and deltaRMin2_.

14  {
15  return deltaR2(t1, t2) > deltaRMin2_;
16  }
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
Definition: deltaR.h:16

Member Data Documentation

double DeltaRMinPairSelector::deltaRMin2_
private

Definition at line 19 of file DeltaRMinPairSelector.h.

Referenced by operator()().