CMS 3D CMS Logo

Classes | Functions
TotemT2RecHit.h File Reference
#include "DataFormats/GeometryVector/interface/GlobalPoint.h"

Go to the source code of this file.

Classes

class  TotemT2RecHit
 

Functions

bool operator< (const TotemT2RecHit &, const TotemT2RecHit &)
 

Function Documentation

◆ operator<()

bool operator< ( const TotemT2RecHit ,
const TotemT2RecHit  
)

Definition at line 14 of file TotemT2RecHit.cc.

References TotemT2RecHit::time(), TotemT2RecHit::timeUnc(), and TotemT2RecHit::toT().

14  {
15  if (lhs.time() < rhs.time())
16  return true;
17  if (lhs.time() > rhs.time())
18  return false;
19  if (lhs.toT() < rhs.toT())
20  return true;
21  if (lhs.toT() > rhs.toT())
22  return false;
23  if (lhs.timeUnc() < rhs.timeUnc())
24  return true;
25  if (lhs.timeUnc() > rhs.timeUnc())
26  return false;
27  return false;
28 }