CMS 3D CMS Logo

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 47 of file NominalEfficiencyThresholds.h.

Member Function Documentation

◆ operator()()

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

Definition at line 55 of file NominalEfficiencyThresholds.cc.

References funct::abs(), muonisolation::NominalEfficiencyThresholds::ThresholdLocation::cone, and muonisolation::NominalEfficiencyThresholds::ThresholdLocation::eta.

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

Member Data Documentation

◆ etabounds

EtaBounds muonisolation::NominalEfficiencyThresholds::locless::etabounds

Definition at line 49 of file NominalEfficiencyThresholds.h.