File indexing completed on 2024-04-06 12:05:18
0001 #include "DataFormats/TotemReco/interface/TotemT2Digi.h"
0002
0003 TotemT2Digi::TotemT2Digi(
0004 unsigned short id, unsigned char marker, unsigned short le, unsigned short te, unsigned char status)
0005 : id_(id), marker_(marker), lead_edge_(le), trail_edge_(te), status_(status) {}
0006
0007 bool operator<(const TotemT2Digi& lhs, const TotemT2Digi& rhs) {
0008 if (lhs.leadingEdge() < rhs.leadingEdge())
0009 return true;
0010 if (lhs.leadingEdge() > rhs.leadingEdge())
0011 return false;
0012 if (lhs.trailingEdge() < rhs.trailingEdge())
0013 return true;
0014 if (lhs.trailingEdge() > rhs.trailingEdge())
0015 return false;
0016 return false;
0017 }