test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
TotemRPUVPattern.h File Reference
#include "DataFormats/Common/interface/DetSet.h"
#include "DataFormats/Common/interface/DetSetVector.h"
#include "DataFormats/CTPPSReco/interface/TotemRPRecHit.h"

Go to the source code of this file.

Classes

class  TotemRPUVPattern
 A linear pattern in U or V projection. The intercept b is taken at the middle of a RP: (geometry->GetRPDevice(RPId)->translation().z()) The global coordinate system is used (wrt. the beam). This is the same convention as for the 1-RP track fits. More...
 

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