CMS 3D CMS Logo

Public Member Functions

lessPixel Struct Reference

Inheritance diagram for lessPixel:
binary_function

List of all members.

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.

  {
    if(a.x < b.x) return true;
    if(a.x > b.x) return false;

    if(a.y < b.y) return true;
    if(a.y > b.y) return false;

    return false;
  }