Package org.jlab.rec.dc.trajectory
Class TrackVec
java.lang.Object
Jama.Matrix
org.jlab.rec.dc.trajectory.TrackVec
- All Implemented Interfaces:
Serializable
,Cloneable
public class TrackVec
extends Jama.Matrix
Describes a track pars in the DC.
- Author:
- ziegler
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
double
getZ()
double
px()
Description of x().double
py()
Description of py().double
pz()
Description of pz().double[]
rotateToSec
(int sector, double x, double y, int t) void
set
(double x, double y, double z, double px, double py, double pz) void
Sets the.void
setSector
(int _sector) void
setZ
(double z) double[]
tilt
(double X, double Z, int t) void
TransformToLabFrame
(int sector) double[]
TransformToLabFrame
(int sector, double x, double y, double z) void
double[]
TransformToTiltSectorFrame
(int sector, double x, double y, double z) double
x()
Description of x().double
y()
Description of y().double
z()
Description of z().Methods inherited from class Jama.Matrix
arrayLeftDivide, arrayLeftDivideEquals, arrayRightDivide, arrayRightDivideEquals, arrayTimes, arrayTimesEquals, chol, clone, cond, constructWithCopy, copy, det, eig, get, getArray, getArrayCopy, getColumnDimension, getColumnPackedCopy, getMatrix, getMatrix, getMatrix, getMatrix, getRowDimension, getRowPackedCopy, identity, inverse, lu, minus, minusEquals, norm1, norm2, normF, normInf, plus, plusEquals, print, print, print, print, qr, random, rank, read, set, setMatrix, setMatrix, setMatrix, setMatrix, solve, solveTranspose, svd, times, times, timesEquals, trace, transpose, uminus
-
Field Details
-
FrameRefId
public int FrameRefId
-
-
Constructor Details
-
TrackVec
public TrackVec()Instantiates a new vec. -
TrackVec
public TrackVec(double x, double y, double z, double px, double py, double pz) -
TrackVec
Instantiates a new vec- Parameters:
v
- the v
-
TrackVec
public TrackVec(double x, double y, double z, double px, double py, double pz, int sec) -
TrackVec
Instantiates a new vec- Parameters:
v
- the vsec
-
-
-
Method Details
-
set
Sets the.- Parameters:
V
- the v
-
getZ
public double getZ() -
setZ
public void setZ(double z) -
set
public void set(double x, double y, double z, double px, double py, double pz) -
x
public double x()Description of x().- Returns:
- the x component
-
y
public double y()Description of y().- Returns:
- the y component
-
z
public double z()Description of z().- Returns:
- the z component
-
px
public double px()Description of x().- Returns:
- the x component
-
py
public double py()Description of py().- Returns:
- the py component
-
pz
public double pz()Description of pz().- Returns:
- the pz component
-
TransformToLabFrame
public double[] TransformToLabFrame(int sector, double x, double y, double z) -
TransformToLabFrame
public void TransformToLabFrame(int sector) -
TransformToTiltSectorFrame
public double[] TransformToTiltSectorFrame(int sector, double x, double y, double z) -
TransformToTiltSectorFrame
public void TransformToTiltSectorFrame() -
tilt
public double[] tilt(double X, double Z, int t) - Parameters:
X
-Z
-t
- <0 going to lab, >0 going to tilted system- Returns:
-
rotateToSec
public double[] rotateToSec(int sector, double x, double y, int t) - Parameters:
sector
-x
-y
-t
- >0 going from TSC to LAB- Returns:
-
getSector
public int getSector()- Returns:
- the _sector
-
setSector
public void setSector(int _sector) - Parameters:
_sector
- the _sector to set
-