CMS 3D CMS Logo

TotemT2Digi.cc
Go to the documentation of this file.
2 
3 TotemT2Digi::TotemT2Digi(unsigned char geo, unsigned char id, unsigned char marker, unsigned short le, unsigned short te)
4  : geo_id_(geo), channel_id_(id), marker_(marker), lead_edge_(le), trail_edge_(te) {}
5 
6 bool operator<(const TotemT2Digi& lhs, const TotemT2Digi& rhs) {
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 }
bool operator<(const TotemT2Digi &lhs, const TotemT2Digi &rhs)
Definition: TotemT2Digi.cc:6
TotemT2Digi()=default
unsigned short trailingEdge() const
Definition: TotemT2Digi.h:20
unsigned short leadingEdge() const
Definition: TotemT2Digi.h:18