Class StateVec

java.lang.Object
org.jlab.rec.cvt.trajectory.StateVec
All Implemented Interfaces:
Comparable<StateVec>

public class StateVec extends Object implements Comparable<StateVec>
A StateVec describes a cross measurement in the CVT. It is characterized by a point in the lab coordinate system at each module plane and by unit tangent vectors to the track at the state-vec point.
Author:
ziegler
  • Constructor Details

    • StateVec

      public StateVec()
      Instantiates a new vec.
    • StateVec

      public StateVec(double x, double y, double z, double ux, double uy, double uz)
      Instantiates a new stateVec
      Parameters:
      y - the _y
      x - the _x
      z - the _z
      ux - the x-component of the tangent to the helix at point (x,y,z)
      uy - the y-component of the tangent to the helix at point (x,y,z)
      uz - the z-component of the tangent to the helix at point (x,y,z)
    • StateVec

      public StateVec(StateVec v)
      Instantiates a new stateVec
      Parameters:
      v - the v
    • StateVec

      public StateVec(int id, AKFitter.HitOnTrack traj, DetectorType type)
    • StateVec

      public StateVec(int id, Point3D pos, Vector3D mom, Surface surface, double path)
  • Method Details

    • getID

      public int getID()
    • setID

      public final void setID(int _ID)
    • getP

      public double getP()
    • setP

      public final void setP(double _p)
    • getPath

      public double getPath()
    • setPath

      public final void setPath(double _Path)
    • getDx

      public double getDx()
    • setDx

      public final void setDx(double _dx)
    • getEdge

      public double getEdge()
    • setEdge

      public void setEdge(double _edge)
    • getSurfaceDetector

      public int getSurfaceDetector()
    • setSurfaceDetector

      public final void setSurfaceDetector(int _SurfaceDetector)
    • getSurfaceLayer

      public int getSurfaceLayer()
    • setSurfaceLayer

      public final void setSurfaceLayer(int _SurfaceLayer)
    • getSurfaceSector

      public int getSurfaceSector()
    • setSurfaceSector

      public final void setSurfaceSector(int _SurfaceSector)
    • getTrkPhiAtSurface

      public double getTrkPhiAtSurface()
    • getSurfaceComponent

      public int getSurfaceComponent()
      Returns:
      the _SurfaceComponent
    • setSurfaceComponent

      public void setSurfaceComponent(int _SurfaceComponent)
      Parameters:
      _SurfaceComponent - the _SurfaceComponent to set
    • setTrkPhiAtSurface

      public final void setTrkPhiAtSurface(double _TrkPhiAtSurface)
    • getTrkThetaAtSurface

      public double getTrkThetaAtSurface()
    • setTrkThetaAtSurface

      public final void setTrkThetaAtSurface(double _TrkThetaAtSurface)
    • getTrkToModuleAngle

      public double getTrkToModuleAngle()
    • setTrkToModuleAngle

      public void setTrkToModuleAngle(double _TrkToModuleAngle)
    • getCalcCentroidStrip

      public double getCalcCentroidStrip()
    • setCalcCentroidStrip

      public void setCalcCentroidStrip(double _CalcCentroidStrip)
    • getSerialversionuid

      public static long getSerialversionuid()
    • set

      public void set(StateVec V)
      Sets the.
      Parameters:
      V - the v
    • getPlaneIdx

      public int getPlaneIdx()
      Returns:
      the wire plane index in the series of planes used in the trajectory
    • setPlaneIdx

      public void setPlaneIdx(int _planeIdx)
      Sets the wire plane index in the series of planes used in the trajectory
      Parameters:
      _planeIdx - wire plane index in the series of planes used in the trajectory
    • set

      public final void set(double x, double y, double z, double ux, double uy, double uz)
      Sets the stateVec
      Parameters:
      y - the _y
      x - the _x
      z - the _z
      ux - the x-component of the tangent to the helix at point (x,y,z)
      uy - the y-component of the tangent to the helix at point (x,y,z)
      uz - the z-component of the tangent to the helix at point (x,y,z)
    • 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
    • ux

      public double ux()
      Description of ux().
      Returns:
      the ux component
    • uy

      public double uy()
      Description of uy().
      Returns:
      the uy component
    • uz

      public double uz()
      Description of uz().
      Returns:
      the uz component
    • compareTo

      public int compareTo(StateVec arg)
      Specified by:
      compareTo in interface Comparable<StateVec>
    • toString

      public String toString()
      Overrides:
      toString in class Object