CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
lessPixel Struct Reference
Inheritance diagram for lessPixel:

Public Member Functions

bool operator() (SiPixelCluster::Pixel a, SiPixelCluster::Pixel b)
 

Detailed Description

Definition at line 79 of file ClusterShape.cc.

Member Function Documentation

bool lessPixel::operator() ( SiPixelCluster::Pixel  a,
SiPixelCluster::Pixel  b 
)
inline

Definition at line 82 of file ClusterShape.cc.

References SiPixelCluster::Pixel::x, and SiPixelCluster::Pixel::y.

84  {
85  if(a.x < b.x) return true;
86  if(a.x > b.x) return false;
87 
88  if(a.y < b.y) return true;
89  if(a.y > b.y) return false;
90 
91  return false;
92  }