public class DistSurface extends RootFindLinear
Modifier and Type | Field and Description |
---|---|
private double |
_b |
private double |
_clam |
private boolean |
_dca |
private double |
_phi |
private double |
_phib |
private double |
_phid |
private double |
_r |
private double |
_slam |
private double |
_smax |
private double |
_smin |
private Surface |
_srf |
private double |
_tlam |
private double |
_wc |
private double |
_x |
private double |
_y |
private double |
_z |
INVALID_FUNCTION_CALL, INVALID_LIMITS, OK, OUT_OF_RANGE, TOO_MANY_ITERATIONS
Constructor and Description |
---|
DistSurface(double x,
double y,
double z,
double phid,
double tlam,
double wc,
Surface srf)
Creates a new instance of DistSurface using the initial track parameters and the destination surface.
|
DistSurface(double x,
double y,
double z,
double phid,
double tlam,
double wc,
Surface srf,
double smin,
double smax)
Creates a new instance of DistSurface using the initial track parameters and the destination surface.
|
Modifier and Type | Method and Description |
---|---|
double |
derivative(double s)
Calculate derivative wrt s of function calculated by method evaluate.
|
StatusDouble |
distance()
Find distance to the destination surface.
|
StatusDouble |
distanceToCylinder()
Return distance to cylinder surface.
|
StatusDouble |
distanceToStraightDca()
Find distance to straight dca surface.
|
StatusDouble |
distanceToTiltedDca()
Find distance to tilted dca surface.
|
StatusDouble |
evaluate(double s)
Evaluate function whose zero gives distance to tilted dca surface.
|
String |
toString()
String representation of this object.
|
solve
private double _x
private double _y
private double _z
private double _phid
private double _tlam
private double _wc
private Surface _srf
private double _smin
private double _smax
private boolean _dca
private double _r
private double _phi
private double _slam
private double _clam
private double _b
private double _phib
public DistSurface(double x, double y, double z, double phid, double tlam, double wc, Surface srf)
x
- track x positiony
- track y positionz
- track z positionphid
- Azimuth (phi) of track momentum vector.tlam
- Latitude (tangent(lambda) of track momentum vector.wc
- Parametric cyclotron frequency (rad/cm).srf
- Destination surface.public DistSurface(double x, double y, double z, double phid, double tlam, double wc, Surface srf, double smin, double smax)
x
- track x positiony
- track y positionz
- track z positionphid
- Azimuth (phi) of track momentum vector.tlam
- Latitude (tangent(lambda) of track momentum vector.wc
- Parametric cyclotron frequency (rad/cm).srf
- Destination surface.smin
- Minimum allowed distance.smax
- Maximum allowed distance.public StatusDouble distance()
public StatusDouble evaluate(double s)
s
- Distance parameter.public double derivative(double s)
s
- Distance parameter.public StatusDouble distanceToStraightDca()
public StatusDouble distanceToTiltedDca()
public StatusDouble distanceToCylinder()
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.