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
    Modifier and Type
    Field
    Description
    int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Instantiates a new vec.
    TrackVec(double x, double y, double z, double px, double py, double pz)
     
    TrackVec(double x, double y, double z, double px, double py, double pz, int sec)
     
    Instantiates a new vec
    TrackVec(TrackVec v, int sec)
    Instantiates a new vec
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    double
     
    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

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public TrackVec(TrackVec v)
      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

      public TrackVec(TrackVec v, int sec)
      Instantiates a new vec
      Parameters:
      v - the v
      sec -
  • Method Details

    • set

      public void set(TrackVec V)
      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