CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes | Friends
TotemRPUVPattern Class Reference

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...

#include <TotemRPUVPattern.h>

Public Types

enum  ProjectionType { projInvalid, projU, projV }
 

Public Member Functions

double a () const
 
void addHit (edm::det_id_type detId, const TotemRPRecHit &hit)
 
double b () const
 
bool fittable () const
 
const edm::DetSetVector< TotemRPRecHit > & hits () const
 
ProjectionType projection () const
 
void setA (double a)
 
void setB (double b)
 
void setFittable (bool fittable)
 
void setProjection (ProjectionType type)
 
void setW (double w)
 
 TotemRPUVPattern ()
 
double w () const
 

Private Attributes

double a_
 slope in rad More...
 
double b_
 intercept in mm More...
 
bool fittable_
 whether this pattern is worth including in track fits More...
 
edm::DetSetVector< TotemRPRecHithits_
 hits associated with the pattern More...
 
ProjectionType projection_
 projection More...
 
double w_
 weight More...
 

Friends

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

Detailed Description

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.

Definition at line 22 of file TotemRPUVPattern.h.

Member Enumeration Documentation

◆ ProjectionType

Enumerator
projInvalid 
projU 
projV 

Definition at line 29 of file TotemRPUVPattern.h.

29 { return projection_; }

Constructor & Destructor Documentation

◆ TotemRPUVPattern()

TotemRPUVPattern::TotemRPUVPattern ( )
inline

Definition at line 31 of file TotemRPUVPattern.h.

32 { return a_; }

References a_.

Member Function Documentation

◆ a()

double TotemRPUVPattern::a ( ) const
inline

Definition at line 36 of file TotemRPUVPattern.h.

36 { b_ = b; }

References b(), and b_.

Referenced by projection().

◆ addHit()

void TotemRPUVPattern::addHit ( edm::det_id_type  detId,
const TotemRPRecHit hit 
)
inline

Definition at line 48 of file TotemRPUVPattern.h.

◆ b()

double TotemRPUVPattern::b ( ) const
inline

Definition at line 39 of file TotemRPUVPattern.h.

39 { w_ = w; }

References w(), and w_.

Referenced by a().

◆ fittable()

bool TotemRPUVPattern::fittable ( ) const
inline

Definition at line 45 of file TotemRPUVPattern.h.

Referenced by w().

◆ hits()

const edm::DetSetVector<TotemRPRecHit>& TotemRPUVPattern::hits ( ) const
inline

Definition at line 50 of file TotemRPUVPattern.h.

◆ projection()

ProjectionType TotemRPUVPattern::projection ( ) const
inline

Definition at line 33 of file TotemRPUVPattern.h.

33 { a_ = a; }

References a(), and a_.

◆ setA()

void TotemRPUVPattern::setA ( double  a)
inline

Definition at line 37 of file TotemRPUVPattern.h.

38 { return w_; }

References w_.

◆ setB()

void TotemRPUVPattern::setB ( double  b)
inline

Definition at line 40 of file TotemRPUVPattern.h.

41 { return fittable_; }

References fittable_.

◆ setFittable()

void TotemRPUVPattern::setFittable ( bool  fittable)
inline

Definition at line 46 of file TotemRPUVPattern.h.

46 { return hits_; }

References hits_.

◆ setProjection()

void TotemRPUVPattern::setProjection ( ProjectionType  type)
inline

Definition at line 34 of file TotemRPUVPattern.h.

35 { return b_; }

References b_.

◆ setW()

void TotemRPUVPattern::setW ( double  w)
inline

◆ w()

double TotemRPUVPattern::w ( ) const
inline

Definition at line 42 of file TotemRPUVPattern.h.

42 { fittable_ = fittable; }

References fittable(), and fittable_.

Referenced by b().

Friends And Related Function Documentation

◆ operator<

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

Definition at line 12 of file TotemRPUVPattern.cc.

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;

Member Data Documentation

◆ a_

double TotemRPUVPattern::a_
private

slope in rad

Definition at line 56 of file TotemRPUVPattern.h.

Referenced by projection(), and TotemRPUVPattern().

◆ b_

double TotemRPUVPattern::b_
private

intercept in mm

Definition at line 57 of file TotemRPUVPattern.h.

Referenced by a(), and setProjection().

◆ fittable_

bool TotemRPUVPattern::fittable_
private

whether this pattern is worth including in track fits

Definition at line 59 of file TotemRPUVPattern.h.

Referenced by setB(), and w().

◆ hits_

edm::DetSetVector<TotemRPRecHit> TotemRPUVPattern::hits_
private

hits associated with the pattern

Definition at line 61 of file TotemRPUVPattern.h.

Referenced by setFittable(), and setW().

◆ projection_

ProjectionType TotemRPUVPattern::projection_
private

projection

Definition at line 55 of file TotemRPUVPattern.h.

◆ w_

double TotemRPUVPattern::w_
private

weight

Definition at line 58 of file TotemRPUVPattern.h.

Referenced by b(), and setA().

TotemRPUVPattern::w_
double w_
weight
Definition: TotemRPUVPattern.h:58
TotemRPUVPattern::a
double a() const
Definition: TotemRPUVPattern.h:36
TotemRPUVPattern::b_
double b_
intercept in mm
Definition: TotemRPUVPattern.h:57
TotemRPUVPattern::a_
double a_
slope in rad
Definition: TotemRPUVPattern.h:56
TotemRPUVPattern::b
double b() const
Definition: TotemRPUVPattern.h:39
TotemRPUVPattern::fittable
bool fittable() const
Definition: TotemRPUVPattern.h:45
TotemRPUVPattern::projection_
ProjectionType projection_
projection
Definition: TotemRPUVPattern.h:55
cmsLHEtoEOSManager.l
l
Definition: cmsLHEtoEOSManager.py:204
alignCSCRings.r
r
Definition: alignCSCRings.py:93
TotemRPUVPattern::ProjectionType
ProjectionType
Definition: TotemRPUVPattern.h:29
TotemRPUVPattern::fittable_
bool fittable_
whether this pattern is worth including in track fits
Definition: TotemRPUVPattern.h:59
TotemRPUVPattern::w
double w() const
Definition: TotemRPUVPattern.h:42
TotemRPUVPattern::hits_
edm::DetSetVector< TotemRPRecHit > hits_
hits associated with the pattern
Definition: TotemRPUVPattern.h:61