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 TypeMethodDescriptionint
double
double
getDx()
double
getEdge()
int
getID()
double
getP()
double
getPath()
int
static long
int
int
int
int
double
double
double
final void
set
(double x, double y, double z, double ux, double uy, double uz) Sets the stateVecvoid
Sets the.void
setCalcCentroidStrip
(double _CalcCentroidStrip) final void
setDx
(double _dx) void
setEdge
(double _edge) final void
setID
(int _ID) final void
setP
(double _p) final void
setPath
(double _Path) void
setPlaneIdx
(int _planeIdx) Sets the wire plane index in the series of planes used in the trajectoryvoid
setSurfaceComponent
(int _SurfaceComponent) final void
setSurfaceDetector
(int _SurfaceDetector) final void
setSurfaceLayer
(int _SurfaceLayer) final void
setSurfaceSector
(int _SurfaceSector) final void
setTrkPhiAtSurface
(double _TrkPhiAtSurface) final void
setTrkThetaAtSurface
(double _TrkThetaAtSurface) void
setTrkToModuleAngle
(double _TrkToModuleAngle) toString()
double
ux()
Description of ux().double
uy()
Description of uy().double
uz()
Description of uz().double
x()
Description of x().double
y()
Description of y().double
z()
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:
compareTo
in interfaceComparable<StateVec>
-
toString
-