CMS 3D CMS Logo

TotemT2RecHit.cc
Go to the documentation of this file.
1 /****************************************************************************
2  *
3  * This is a part of TOTEM offline software.
4  * Author:
5  * Laurent Forthomme
6  *
7  ****************************************************************************/
8 
10 
11 TotemT2RecHit::TotemT2RecHit(const GlobalPoint& centre, float time, float time_unc, float tot)
12  : centre_(centre), time_(time), time_unc_(time_unc), tot_(tot) {}
13 
14 bool operator<(const TotemT2RecHit& lhs, const TotemT2RecHit& rhs) {
15  if (lhs.time() < rhs.time())
16  return true;
17  if (lhs.time() > rhs.time())
18  return false;
19  if (lhs.toT() < rhs.toT())
20  return true;
21  if (lhs.toT() > rhs.toT())
22  return false;
23  if (lhs.timeUnc() < rhs.timeUnc())
24  return true;
25  if (lhs.timeUnc() > rhs.timeUnc())
26  return false;
27  return false;
28 }
bool operator<(const TotemT2RecHit &lhs, const TotemT2RecHit &rhs)
TotemT2RecHit()=default
float timeUnc() const
Definition: TotemT2RecHit.h:23
float time() const
Definition: TotemT2RecHit.h:21
float toT() const
Definition: TotemT2RecHit.h:25