test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
TotemRPRecHit.h File Reference

Go to the source code of this file.

Classes

class  TotemRPRecHit
 Reconstructed hit in TOTEM RP. More...
 

Functions

bool operator< (const TotemRPRecHit &l, const TotemRPRecHit &r)
 

Function Documentation

bool operator< ( const TotemRPRecHit l,
const TotemRPRecHit r 
)
inline

Definition at line 41 of file TotemRPRecHit.h.

References TotemRPRecHit::getPosition(), and TotemRPRecHit::getSigma().

42 {
43  if (l.getPosition() < r.getPosition())
44  return true;
45  if (l.getPosition() > r.getPosition())
46  return false;
47 
48  if (l.getSigma() < r.getSigma())
49  return true;
50 
51  return false;
52 }
double getSigma() const
Definition: TotemRPRecHit.h:28
double getPosition() const
Definition: TotemRPRecHit.h:25