CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
muonisolation::NominalEfficiencyThresholds::locless Struct Reference

compare two locations More...

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 funct::abs(), muonisolation::NominalEfficiencyThresholds::ThresholdLocation::cone, and muonisolation::NominalEfficiencyThresholds::ThresholdLocation::eta.

58 {
59  int itow1 = abs(etabounds.towerFromEta(l1.eta));
60  int itow2 = abs(etabounds.towerFromEta(l2.eta));
61  if (itow1 < itow2) return true;
62  if (itow1 == itow2 && l1.cone< l2.cone) return true;
63  return false;
64 }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22

Member Data Documentation

EtaBounds muonisolation::NominalEfficiencyThresholds::locless::etabounds

Definition at line 51 of file NominalEfficiencyThresholds.h.