CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Classes | Functions
TotemT2Digi.h File Reference

Go to the source code of this file.

Classes

class  TotemT2Digi
 

Functions

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

Function Documentation

◆ operator<()

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

Definition at line 7 of file TotemT2Digi.cc.

References TotemT2Digi::leadingEdge(), and TotemT2Digi::trailingEdge().

7  {
8  if (lhs.leadingEdge() < rhs.leadingEdge())
9  return true;
10  if (lhs.leadingEdge() > rhs.leadingEdge())
11  return false;
12  if (lhs.trailingEdge() < rhs.trailingEdge())
13  return true;
14  if (lhs.trailingEdge() > rhs.trailingEdge())
15  return false;
16  return false;
17 }
unsigned short trailingEdge() const
Definition: TotemT2Digi.h:20
unsigned short leadingEdge() const
Definition: TotemT2Digi.h:18