Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:40:05

0001 /****************************************************************************
0002  *
0003  * This is a part of TOTEM offline software.
0004  * Author:
0005  *   Laurent Forthomme
0006  *
0007  ****************************************************************************/
0008 
0009 #include "DataFormats/TotemReco/interface/TotemT2RecHit.h"
0010 
0011 TotemT2RecHit::TotemT2RecHit(const GlobalPoint& centre, float time, float time_unc, float tot)
0012     : centre_(centre), time_(time), time_unc_(time_unc), tot_(tot) {}
0013 
0014 bool operator<(const TotemT2RecHit& lhs, const TotemT2RecHit& rhs) {
0015   if (lhs.time() < rhs.time())
0016     return true;
0017   if (lhs.time() > rhs.time())
0018     return false;
0019   if (lhs.toT() < rhs.toT())
0020     return true;
0021   if (lhs.toT() > rhs.toT())
0022     return false;
0023   if (lhs.timeUnc() < rhs.timeUnc())
0024     return true;
0025   if (lhs.timeUnc() > rhs.timeUnc())
0026     return false;
0027   return false;
0028 }