CMS 3D CMS Logo

TangentCircle.h
Go to the documentation of this file.
1 #ifndef _TangentCircle_H_
2 #define _TangentCircle_H_
3 
6 
7 class TangentCircle {
8  // TODO : for speed-up :
9  // typedef Point2DBase< float, GlobalTag> Global2DPoint;
10  // typedef Vector2DBase< float, GlobalTag> Global2DVector;
11 
12 public:
14  : theInnerPoint(),
15  theOuterPoint(),
18  theX0(0),
19  theY0(0),
20  theRho(0),
21  theVertexError(0),
22  valid(false),
23  theCharge(0) {}
24 
28 
31 
33  TangentCircle(const TangentCircle& primCircle, const GlobalPoint& outerPoint, const GlobalPoint& innerPoint);
34 
37 
38  double x0() const { return theX0; }
39 
40  double y0() const { return theY0; }
41 
42  double rho() const { return theRho; }
43 
44  GlobalPoint outerPoint() const { return theOuterPoint; }
45 
46  GlobalPoint innerPoint() const { return theInnerPoint; }
47 
49 
50  double vertexError() const { return theVertexError; }
51 
52  double curvatureError();
53 
54  int charge(float magz);
55 
56 private:
60 
62 
63  double theX0;
64  double theY0;
65  double theRho;
67  double theVertexError;
69  bool valid;
70  int theCharge;
71 
72  double isTangent(const TangentCircle& primCircle, const TangentCircle& secCircle) const;
74  const GlobalPoint& initalPosition,
75  double theta,
76  int direction) const;
77  int chargeLocally(float magz, GlobalVector v) const;
79 };
80 
81 #endif
Vector3DBase
Definition: Vector3DBase.h:8
funct::false
false
Definition: Factorize.h:29
TangentCircle::theOuterPoint
GlobalPoint theOuterPoint
Definition: TangentCircle.h:58
TangentCircle::curvatureError
double curvatureError()
Definition: TangentCircle.cc:193
findQualityFiles.v
v
Definition: findQualityFiles.py:179
TangentCircle::vertexError
double vertexError() const
Definition: TangentCircle.h:50
TangentCircle::isTangent
double isTangent(const TangentCircle &primCircle, const TangentCircle &secCircle) const
Definition: TangentCircle.cc:114
TangentCircle::getPosition
GlobalPoint getPosition(const TangentCircle &circle, const GlobalPoint &initalPosition, double theta, int direction) const
Definition: TangentCircle.cc:153
TangentCircle::theCharge
int theCharge
Definition: TangentCircle.h:70
theta
Geom::Theta< T > theta() const
Definition: Basic3DVectorLD.h:150
Point3DBase< float, GlobalTag >
TangentCircle::valid
bool valid
Definition: TangentCircle.h:69
TangentCircle::TangentCircle
TangentCircle()
Definition: TangentCircle.h:13
TangentCircle::x0
double x0() const
Definition: TangentCircle.h:38
TangentCircle
Definition: TangentCircle.h:7
TangentCircle::theX0
double theX0
Definition: TangentCircle.h:63
TangentCircle::y0
double y0() const
Definition: TangentCircle.h:40
TangentCircle::direction
GlobalVector direction(const GlobalPoint &point) const
Definition: TangentCircle.cc:125
TangentCircle::theRho
double theRho
Definition: TangentCircle.h:65
TangentCircle::vertexPoint
GlobalPoint vertexPoint() const
Definition: TangentCircle.h:48
TangentCircle::charge
int charge(float magz)
Definition: TangentCircle.cc:205
TangentCircle::theDirectionAtVertex
GlobalVector theDirectionAtVertex
Definition: TangentCircle.h:61
TangentCircle::innerPoint
GlobalPoint innerPoint() const
Definition: TangentCircle.h:46
TangentCircle::rho
double rho() const
Definition: TangentCircle.h:42
TangentCircle::outerPoint
GlobalPoint outerPoint() const
Definition: TangentCircle.h:44
GlobalVector.h
TangentCircle::directionAtVertex
GlobalVector directionAtVertex()
Return the direction at the vertex.
Definition: TangentCircle.cc:147
TangentCircle::theY0
double theY0
Definition: TangentCircle.h:64
TangentCircle::theInnerPoint
GlobalPoint theInnerPoint
Definition: TangentCircle.h:57
point
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5
TangentCircle::theVertexPoint
GlobalPoint theVertexPoint
Definition: TangentCircle.h:59
TangentCircle::theVertexError
double theVertexError
Definition: TangentCircle.h:67
TangentCircle::chargeLocally
int chargeLocally(float magz, GlobalVector v) const
Definition: TangentCircle.cc:231
FastCircle.h