CMS 3D CMS Logo

Classes | Functions
CTPPSDiamondLocalTrack.h File Reference
#include "DataFormats/Math/interface/Point3D.h"
#include "DataFormats/CTPPSReco/interface/CTPPSDiamondRecHit.h"

Go to the source code of this file.

Classes

class  CTPPSDiamondLocalTrack
 

Functions

bool operator< (const CTPPSDiamondLocalTrack &lhs, const CTPPSDiamondLocalTrack &rhs)
 

Function Documentation

bool operator< ( const CTPPSDiamondLocalTrack lhs,
const CTPPSDiamondLocalTrack rhs 
)
inline

Definition at line 92 of file CTPPSDiamondLocalTrack.h.

References CTPPSDiamondLocalTrack::getT(), and CTPPSDiamondLocalTrack::getX0().

93 {
94  // start to sort by temporal coordinate
95  if ( lhs.getT() < rhs.getT() ) return true;
96  if ( lhs.getT() > rhs.getT() ) return false;
97  // then sort by x-position
98  return ( lhs.getX0() < rhs.getX0() );
99 }