CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
TotemRPUVPattern.cc File Reference
#include "DataFormats/CTPPSReco/interface/TotemRPUVPattern.h"

Go to the source code of this file.

Functions

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

Function Documentation

bool operator< ( const TotemRPUVPattern l,
const TotemRPUVPattern r 
)

Definition at line 13 of file TotemRPUVPattern.cc.

References TotemRPUVPattern::a_, TotemRPUVPattern::b_, TotemRPUVPattern::fittable_, TotemRPUVPattern::projection_, and TotemRPUVPattern::w_.

13  {
14  if (l.projection_ < r.projection_)
15  return true;
16  if (l.projection_ > r.projection_)
17  return false;
18 
19  if (l.a_ < r.a_)
20  return true;
21  if (l.a_ > r.a_)
22  return false;
23 
24  if (l.b_ < r.b_)
25  return true;
26  if (l.b_ > r.b_)
27  return false;
28 
29  if (l.w_ < r.w_)
30  return true;
31  if (l.w_ > r.w_)
32  return false;
33 
34  if (l.fittable_ < r.fittable_)
35  return true;
36  if (l.fittable_ > r.fittable_)
37  return false;
38 
39  return false;
40 }
double w_
weight
bool fittable_
whether this pattern is worth including in track fits
ProjectionType projection_
projection
double b_
intercept in mm
double a_
slope in rad