CMS 3D CMS Logo

Public Member Functions | Public Attributes

muonisolation::NominalEfficiencyThresholds::locless Struct Reference

compare two locations More...

List of all members.

Public Member Functions

bool operator() (const ThresholdLocation &l1, const ThresholdLocation &l2) const

Public Attributes

EtaBounds etabounds

Detailed Description

compare two locations

Definition at line 48 of file NominalEfficiencyThresholds.h.


Member Function Documentation

bool NominalEfficiencyThresholds::locless::operator() ( const ThresholdLocation l1,
const ThresholdLocation l2 
) const

Definition at line 56 of file NominalEfficiencyThresholds.cc.

References abs, muonisolation::NominalEfficiencyThresholds::ThresholdLocation::cone, and muonisolation::NominalEfficiencyThresholds::ThresholdLocation::eta.

{
  int itow1 = abs(etabounds.towerFromEta(l1.eta));
  int itow2 = abs(etabounds.towerFromEta(l2.eta));
  if (itow1 < itow2) return true;
  if (itow1 == itow2 && l1.cone< l2.cone) return true;
  return false;
}

Member Data Documentation

Definition at line 51 of file NominalEfficiencyThresholds.h.