Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-08-08 03:11:28

0001 #include "DataFormats/TotemReco/interface/TotemT2Digi.h"
0002 
0003 TotemT2Digi::TotemT2Digi(unsigned char geo, unsigned char id, unsigned char marker, unsigned short le, unsigned short te)
0004     : geo_id_(geo), channel_id_(id), marker_(marker), lead_edge_(le), trail_edge_(te) {}
0005 
0006 bool operator<(const TotemT2Digi& lhs, const TotemT2Digi& rhs) {
0007   if (lhs.leadingEdge() < rhs.leadingEdge())
0008     return true;
0009   if (lhs.leadingEdge() > rhs.leadingEdge())
0010     return false;
0011   if (lhs.trailingEdge() < rhs.trailingEdge())
0012     return true;
0013   if (lhs.trailingEdge() > rhs.trailingEdge())
0014     return false;
0015   return false;
0016 }