CMS 3D CMS Logo

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

Go to the source code of this file.

Functions

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

Function Documentation

◆ operator<()

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

Definition at line 6 of file TotemT2Digi.cc.

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

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