CMS 3D CMS Logo

Functions
TotemT2RecHit.cc File Reference
#include "DataFormats/TotemReco/interface/TotemT2RecHit.h"

Go to the source code of this file.

Functions

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

Function Documentation

◆ operator<()

bool operator< ( const TotemT2RecHit lhs,
const TotemT2RecHit rhs 
)

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 }
float timeUnc() const
Definition: TotemT2RecHit.h:23
float time() const
Definition: TotemT2RecHit.h:21
float toT() const
Definition: TotemT2RecHit.h:25