Package org.jlab.rec.cvt.trajectory
Class StateVec
java.lang.Object
org.jlab.rec.cvt.trajectory.StateVec
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionStateVec()Instantiates a new vec.StateVec(double x, double y, double z, double ux, double uy, double uz) Instantiates a new stateVecStateVec(int id, AKFitter.HitOnTrack traj, DetectorType type) Instantiates a new stateVec -
Method Summary
Modifier and TypeMethodDescriptionintdoubledoublegetDx()doublegetEdge()intgetID()doublegetP()doublegetPath()intstatic longintintintintdoubledoubledoublefinal voidset(double x, double y, double z, double ux, double uy, double uz) Sets the stateVecvoidSets the.voidsetCalcCentroidStrip(double _CalcCentroidStrip) final voidsetDx(double _dx) voidsetEdge(double _edge) final voidsetID(int _ID) final voidsetP(double _p) final voidsetPath(double _Path) voidsetPlaneIdx(int _planeIdx) Sets the wire plane index in the series of planes used in the trajectoryvoidsetSurfaceComponent(int _SurfaceComponent) final voidsetSurfaceDetector(int _SurfaceDetector) final voidsetSurfaceLayer(int _SurfaceLayer) final voidsetSurfaceSector(int _SurfaceSector) final voidsetTrkPhiAtSurface(double _TrkPhiAtSurface) final voidsetTrkThetaAtSurface(double _TrkThetaAtSurface) voidsetTrkToModuleAngle(double _TrkToModuleAngle) toString()doubleux()Description of ux().doubleuy()Description of uy().doubleuz()Description of uz().doublex()Description of x().doubley()Description of y().doublez()Description of z().
-
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 _yx- the _xz- the _zux- 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
Instantiates a new stateVec- Parameters:
v- the v
-
StateVec
-
StateVec
-
-
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
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 _yx- the _xz- the _zux- 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
- Specified by:
compareToin interfaceComparable<StateVec>
-
toString
-