CMS 3D CMS Logo

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 38 of file TotemRPRecHit.h.

References TotemRPRecHit::position(), and TotemRPRecHit::sigma().

38  {
39  if (l.position() < r.position())
40  return true;
41  if (l.position() > r.position())
42  return false;
43 
44  if (l.sigma() < r.sigma())
45  return true;
46 
47  return false;
48 }
double sigma() const
Definition: TotemRPRecHit.h:25
double position() const
Definition: TotemRPRecHit.h:22