#include <TangentCircle.h>
Public Member Functions | |
int | charge (float magz) |
double | curvatureError () |
GlobalVector | directionAtVertex () |
Return the direction at the vertex. More... | |
GlobalPoint | innerPoint () const |
bool | isValid () const |
GlobalPoint | outerPoint () const |
double | rho () const |
TangentCircle () | |
TangentCircle (const GlobalVector &direction, const GlobalPoint &innerPoint, const GlobalPoint &outerPoint) | |
TangentCircle (const GlobalPoint &outerPoint, const GlobalPoint &innerPoint, const GlobalPoint &vertexPoint) | |
Copy of FastCircle. More... | |
TangentCircle (const TangentCircle &primCircle, const GlobalPoint &outerPoint, const GlobalPoint &innerPoint) | |
Calculate the parameters of a circle which pass by 2 points (innerPoint and outerPoint) and which is tangent to primCircle. More... | |
double | vertexError () const |
GlobalPoint | vertexPoint () const |
double | x0 () const |
double | y0 () const |
Private Member Functions | |
int | chargeLocally (float magz, GlobalVector v) const |
GlobalVector | direction (const GlobalPoint &point) const |
GlobalPoint | getPosition (const TangentCircle &circle, const GlobalPoint &initalPosition, double theta, int direction) const |
double | isTangent (const TangentCircle &primCircle, const TangentCircle &secCircle) const |
Private Attributes | |
int | theCharge |
GlobalVector | theDirectionAtVertex |
GlobalPoint | theInnerPoint |
GlobalPoint | theOuterPoint |
double | theRho |
double | theVertexError |
GlobalPoint | theVertexPoint |
double | theX0 |
double | theY0 |
bool | valid |
Definition at line 7 of file TangentCircle.h.
|
inline |
Definition at line 14 of file TangentCircle.h.
TangentCircle::TangentCircle | ( | const GlobalVector & | direction, |
const GlobalPoint & | innerPoint, | ||
const GlobalPoint & | outerPoint | ||
) |
Calculate the circle from 2 points on the circle (the vertex=innerPoint and the outerPoint) and the tangent direction at the inner point
Definition at line 7 of file TangentCircle.cc.
References funct::cos(), cuy::denominator, direction(), PV3DBase< T, PVType, FrameType >::mag(), mag(), PV3DBase< T, PVType, FrameType >::perp2(), PI, funct::sin(), theCharge, theDirectionAtVertex, theInnerPoint, theOuterPoint, theRho, theVertexError, theX0, theY0, valid, PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().
TangentCircle::TangentCircle | ( | const GlobalPoint & | outerPoint, |
const GlobalPoint & | innerPoint, | ||
const GlobalPoint & | vertexPoint | ||
) |
Copy of FastCircle.
Definition at line 36 of file TangentCircle.cc.
References FastCircle::isValid(), PV3DBase< T, PVType, FrameType >::perp2(), FastCircle::rho(), theCharge, theDirectionAtVertex, theInnerPoint, theOuterPoint, theRho, theVertexError, theX0, theY0, valid, FastCircle::x0(), and FastCircle::y0().
TangentCircle::TangentCircle | ( | const TangentCircle & | primCircle, |
const GlobalPoint & | outerPoint, | ||
const GlobalPoint & | innerPoint | ||
) |
Calculate the parameters of a circle which pass by 2 points (innerPoint and outerPoint) and which is tangent to primCircle.
Definition at line 49 of file TangentCircle.cc.
References dir, getPosition(), i, innerPoint(), isTangent(), LogDebug, mag(), outerPoint(), PV3DBase< T, PVType, FrameType >::perp2(), rho(), alignCSCRings::s, theCharge, theDirectionAtVertex, theInnerPoint, theOuterPoint, theRho, theta(), theVertexError, theVertexPoint, theX0, theY0, valid, vertexPoint(), PV3DBase< T, PVType, FrameType >::x(), x0(), PV3DBase< T, PVType, FrameType >::y(), and y0().
int TangentCircle::charge | ( | float | magz | ) |
Definition at line 180 of file TangentCircle.cc.
References chargeLocally(), directionAtVertex(), F(), LogDebug, theCharge, theVertexPoint, theX0, theY0, findQualityFiles::v, PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().
Referenced by TangentHelix::charge().
|
private |
Definition at line 203 of file TangentCircle.cc.
References theOuterPoint, theVertexPoint, PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().
Referenced by charge().
double TangentCircle::curvatureError | ( | ) |
Definition at line 167 of file TangentCircle.cc.
References directionAtVertex(), mag(), rho(), theInnerPoint, theOuterPoint, theVertexError, and theVertexPoint.
Referenced by TangentHelix::curvatureError().
|
private |
Definition at line 118 of file TangentCircle.cc.
References diffTreeTool::diff, dir, LogDebug, mag(), theInnerPoint, theOuterPoint, theX0, theY0, PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().
Referenced by directionAtVertex(), and TangentCircle().
GlobalVector TangentCircle::directionAtVertex | ( | ) |
Return the direction at the vertex.
Definition at line 139 of file TangentCircle.cc.
References direction(), theDirectionAtVertex, theVertexPoint, and PV3DBase< T, PVType, FrameType >::x().
Referenced by charge(), curvatureError(), and TangentHelix::directionAtVertex().
|
private |
Definition at line 145 of file TangentCircle.cc.
References alpha, beta, funct::cos(), prof2calltree::l, PI, rho(), funct::sin(), PV3DBase< T, PVType, FrameType >::x(), x0(), PV3DBase< T, PVType, FrameType >::y(), and y0().
Referenced by TangentCircle().
|
inline |
Definition at line 40 of file TangentCircle.h.
References theInnerPoint.
Referenced by TangentCircle().
|
private |
Definition at line 107 of file TangentCircle.cc.
References min, rho(), x0(), and y0().
Referenced by TangentCircle().
|
inline |
|
inline |
Definition at line 38 of file TangentCircle.h.
References theOuterPoint.
Referenced by TangentCircle().
|
inline |
Definition at line 36 of file TangentCircle.h.
References theRho.
Referenced by curvatureError(), getPosition(), isTangent(), TangentHelix::rho(), and TangentCircle().
|
inline |
Definition at line 44 of file TangentCircle.h.
References theVertexError.
Referenced by TangentHelix::vertexError().
|
inline |
Definition at line 42 of file TangentCircle.h.
References theVertexPoint.
Referenced by TangentCircle(), and TangentHelix::TangentHelix().
|
inline |
Definition at line 32 of file TangentCircle.h.
References theX0.
Referenced by getPosition(), isTangent(), and TangentCircle().
|
inline |
Definition at line 34 of file TangentCircle.h.
References theY0.
Referenced by getPosition(), isTangent(), and TangentCircle().
|
private |
Definition at line 66 of file TangentCircle.h.
Referenced by charge(), and TangentCircle().
|
private |
Definition at line 57 of file TangentCircle.h.
Referenced by directionAtVertex(), and TangentCircle().
|
private |
Definition at line 53 of file TangentCircle.h.
Referenced by curvatureError(), direction(), innerPoint(), and TangentCircle().
|
private |
Definition at line 54 of file TangentCircle.h.
Referenced by chargeLocally(), curvatureError(), direction(), outerPoint(), and TangentCircle().
|
private |
Signed radius of the circle (=q*R)
Definition at line 61 of file TangentCircle.h.
Referenced by rho(), and TangentCircle().
|
private |
the error on the vertex position along the direction of the circle at this point
Definition at line 63 of file TangentCircle.h.
Referenced by curvatureError(), TangentCircle(), and vertexError().
|
private |
Definition at line 55 of file TangentCircle.h.
Referenced by charge(), chargeLocally(), curvatureError(), directionAtVertex(), TangentCircle(), and vertexPoint().
|
private |
x center of the circle
Definition at line 59 of file TangentCircle.h.
Referenced by charge(), direction(), TangentCircle(), and x0().
|
private |
y center of the circle
Definition at line 60 of file TangentCircle.h.
Referenced by charge(), direction(), TangentCircle(), and y0().
|
private |
Definition at line 65 of file TangentCircle.h.
Referenced by TangentCircle().