CMS 3D CMS Logo

FastCircle.h
Go to the documentation of this file.
1 #ifndef TR_FastCircle_H_
2 #define TR_FastCircle_H_
6 
33 class FastCircle {
34 
35 public:
36 
37  FastCircle(const GlobalPoint& outerHit,
38  const GlobalPoint& middleHit,
39  const GlobalPoint& aVertex);
40 
41  FastCircle(const GlobalPoint& outerHit,
42  const GlobalPoint& middleHit,
43  const GlobalPoint& aVertex,
44  double norm);
45 
47 
48  // all returned values have dimensions of cm
49  // parameters of the circle (circle is valid)
50  double x0() const {return theX0;}
51 
52  double y0() const {return theY0;}
53 
54  double rho() const {return theRho;}
55 
56  bool isValid() const {return theValid;}
57 
58  // parameters of the straight line
59  // (if circle is invalid only these are available)
60  double n1() const {return theN1;}
61 
62  double n2() const {return theN2;}
63 
64  double c() const {return theC;}
65 
66  GlobalPoint const & outerPoint() const { return theOuterPoint;}
67  GlobalPoint const & innerPoint() const { return theInnerPoint;}
68  GlobalPoint const & vertexPoint() const { return theVertexPoint;}
69 
70 
71 private:
72 
76  double theNorm;
77 
78  double theX0;
79  double theY0;
80  double theRho;
81 
82  double theN1;
83  double theN2;
84  double theC;
85 
86  bool theValid;
87 
89 
90 };
91 
92 #endif //TR_Circle_H_
double theNorm
Definition: FastCircle.h:76
#define dso_hidden
double x0() const
Definition: FastCircle.h:50
void createCircleParameters()
Definition: FastCircle.cc:62
FastCircle(const GlobalPoint &outerHit, const GlobalPoint &middleHit, const GlobalPoint &aVertex)
Definition: FastCircle.cc:4
double n2() const
Definition: FastCircle.h:62
double rho() const
Definition: FastCircle.h:54
bool theValid
Definition: FastCircle.h:86
GlobalPoint const & outerPoint() const
Definition: FastCircle.h:66
bool isValid() const
Definition: FastCircle.h:56
double theY0
Definition: FastCircle.h:79
double theC
Definition: FastCircle.h:84
double n1() const
Definition: FastCircle.h:60
double c() const
Definition: FastCircle.h:64
double theN2
Definition: FastCircle.h:83
double theX0
Definition: FastCircle.h:78
GlobalPoint theInnerPoint
Definition: FastCircle.h:74
double theRho
Definition: FastCircle.h:80
GlobalPoint const & innerPoint() const
Definition: FastCircle.h:67
GlobalPoint theOuterPoint
Definition: FastCircle.h:73
double y0() const
Definition: FastCircle.h:52
GlobalPoint theVertexPoint
Definition: FastCircle.h:75
double theN1
Definition: FastCircle.h:82
GlobalPoint const & vertexPoint() const
Definition: FastCircle.h:68