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 108 of file CTPPSDiamondLocalTrack.h.

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

109 {
110  // start to sort by temporal coordinate
111  if ( lhs.getT() < rhs.getT() ) return true;
112  if ( lhs.getT() > rhs.getT() ) return false;
113  // then sort by x-position
114  return ( lhs.getX0() < rhs.getX0() );
115 }