CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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.

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