Package org.jlab.clas.tracking.trackrep
Class Helix
java.lang.Object
org.jlab.clas.tracking.trackrep.Helix
- Author:
- ziegler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
getB()
double
double
getD0()
getHelixPointAtPlane
(double X1, double Y1, double X2, double Y2, double tolerance) getHelixPointAtR
(double r) getHelixPointAtZ
(double z) double
getLAtPlane
(double X1, double Y1, double X2, double Y2, double tolerance) double
getLAtR
(double r) double
getLAtZ
(double z) final double
getMomentumAtPlane
(double X1, double Y1, double X2, double Y2, double tolerance) getMomentumAtR
(double r) getMomentumAtZ
(double z) double
getOmega()
double
getPathLength
(double rMin, double rMax) Computes the path length between to points at radius rMin and rMax of the helix.double
getPhi
(double l) double
getPhi0()
double
getPt
(double B) double
getPx()
double
getPx
(double B, double l) double
getPy()
double
getPy
(double B, double l) double
getPz()
double
getPz
(double B) double
getR()
double
double
getTanL()
int
getUnits()
double
getX()
double
getX
(double l) double
getXb()
double
getXc()
double
getY()
double
getY
(double l) double
getYb()
double
getYc()
double
getZ()
double
getZ
(double l) double
getZ0()
void
reset
(double d0, double phi0, double omega, double z0, double tanL, double B) void
setR
(double _R) toString()
final void
update()
-
Field Details
-
LIGHTVEL
public static final double LIGHTVEL- See Also:
-
-
Constructor Details
-
Helix
public Helix() -
Helix
public Helix(double d0, double phi0, double omega, double z0, double tanL, int turningSign, double B, double xb, double yb, Units unit) -
Helix
public Helix(double x0, double y0, double z0, double px0, double py0, double pz0, int q, double B, double xb, double yb, Units unit)
-
-
Method Details
-
getUnits
-
getLightVelocity
public final double getLightVelocity() -
reset
public void reset(double d0, double phi0, double omega, double z0, double tanL, double B) -
update
public final void update() -
getB
public double getB() -
getD0
public double getD0() -
getPhi0
public double getPhi0() -
getCosphi0
public double getCosphi0() -
getSinphi0
public double getSinphi0() -
getOmega
public double getOmega() -
getZ0
public double getZ0() -
getTanL
public double getTanL() -
getTurningSign
public int getTurningSign() -
getR
public double getR() -
setR
public void setR(double _R) -
getXc
public double getXc() -
getYc
public double getYc() -
getXb
public double getXb() -
getYb
public double getYb() -
getPhi
public double getPhi(double l) -
getPt
public double getPt(double B) -
getX
public double getX(double l) -
getY
public double getY(double l) -
getZ
public double getZ(double l) -
getPx
public double getPx(double B, double l) -
getPy
public double getPy(double B, double l) -
getPz
public double getPz(double B) -
getX
public double getX() -
getY
public double getY() -
getZ
public double getZ() -
getPx
public double getPx() -
getPy
public double getPy() -
getPz
public double getPz() -
getLAtPlane
public double getLAtPlane(double X1, double Y1, double X2, double Y2, double tolerance) -
getHelixPointAtPlane
-
getMomentumAtPlane
-
getLAtR
public double getLAtR(double r) -
getHelixPointAtR
-
getMomentumAtR
-
getLAtZ
public double getLAtZ(double z) -
getHelixPointAtZ
-
getMomentumAtZ
-
getPathLength
public double getPathLength(double rMin, double rMax) Computes the path length between to points at radius rMin and rMax of the helix.- Parameters:
rMin
- the radius of the point from which to measure.rMax
- the radius of the point to which to measure. helix parametrization is X(l) = xc - s*R*sin(phi0+omega*l) Y(l) = yc + s*R*cos(phi0+omega*l) Z(l) = z0 - l*tanL d^2 = (dX/dl)^2 + (dY/dl)^2 + (dZ/dl)^2 pathlength = integral of d(l) from l(rMin) to l(rMax) pathlength = sqrt(R^2omega^2+tanL^2)*(l(rMax)-l(rMin))
-
toString
-