CMS 3D CMS Logo

List of all members | Public Member Functions
pat::DuplicatedElectronRemover::BestEoverP Struct Reference

#include <DuplicatedElectronRemover.h>

Public Member Functions

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

Detailed Description

Definition at line 32 of file DuplicatedElectronRemover.h.

Member Function Documentation

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

Definition at line 34 of file DuplicatedElectronRemover.h.

References pat::DuplicatedElectronRemover::duplicatesToRemove(), and genericTrackCleaner_cfi::electrons.

34  {
35  float diff1 = fabs(t1.eSuperClusterOverP()-1);
36  float diff2 = fabs(t2.eSuperClusterOverP()-1);
37  return diff1 <= diff2;
38  }
auto const T2 &decltype(t1.eta()) t2
Definition: deltaR.h:16