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() (const SiPixelCluster::Pixel &a, const SiPixelCluster::Pixel &b) const
 

Detailed Description

Definition at line 79 of file ClusterShape.cc.

Member Function Documentation

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

Definition at line 82 of file ClusterShape.cc.

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

84  {
85  // slightly faster by avoiding branches
86  return (a.x < b.x) | ((a.x == b.x) & (a.y < b.y));
87  }