Class Track

All Implemented Interfaces:
Serializable, Cloneable, Comparable<Track>, Iterable<Cross>, Collection<Cross>, List<Cross>, RandomAccess

public class Track extends Trajectory implements Comparable<Track>
A class representing track candidates in the DC. A track has a trajectory represented by an ensemble of geometrical state vectors along its path, a charge and a momentum
Author:
ziegler
See Also:
  • Field Details

    • fit_Successful

      public boolean fit_Successful
  • Constructor Details

    • Track

      public Track()
  • Method Details

    • getFinalStateVec

      public StateVec getFinalStateVec()
      Returns:
      the finalStateVec
    • setFinalStateVec

      public void setFinalStateVec(StateVec finalStateVec)
      Parameters:
      finalStateVec - the finalStateVec to set
    • get_MissingSuperlayer

      public int get_MissingSuperlayer()
      Returns:
      missing superlayer of the track
    • set_MissingSuperlayer

      public void set_MissingSuperlayer(int missingSuperlayer)
      Parameters:
      missingSuperlayer - track missing superlayer
    • getSingleSuperlayer

      public Segment getSingleSuperlayer()
      Returns:
      the _singleSuperlayer
    • setSingleSuperlayer

      public void setSingleSuperlayer(Segment _singleSuperlayer)
      Parameters:
      _singleSuperlayer - the _singleSuperlayer to set
    • setIsAITrack

      public void setIsAITrack(boolean isAITrack)
    • getIsAITrack

      public boolean getIsAITrack()
    • getBitStatus

      public int getBitStatus()
    • get_Status_crossCombo

      public int get_Status_crossCombo()
    • set_Status_crossCombo

      public void set_Status_crossCombo(int _Status)
    • get_Id

      public int get_Id()
      Returns:
      id of the track
    • set_Id

      public void set_Id(int _Id)
      Parameters:
      _Id - track id
    • get_Q

      public int get_Q()
      Returns:
      the charge
    • set_Q

      public void set_Q(int _Q)
      Sets the charge
      Parameters:
      _Q - the charge
    • get_P

      public double get_P()
      Returns:
      the total momentum value
    • set_P

      public void set_P(double _P)
      Sets the total momentum value
      Parameters:
      _P - the total momentum value
    • get_PostRegion3CrossPoint

      public Point3D get_PostRegion3CrossPoint()
      Returns:
      point along track trajectory between the last layer of region 3 and the TOF panel 1b
    • set_PostRegion3CrossPoint

      public void set_PostRegion3CrossPoint(Point3D point)
      Parameters:
      point - a point along track trajectory between the last layer of region 3 and the TOF panel 1b
    • get_PostRegion3CrossDir

      public Point3D get_PostRegion3CrossDir()
      Returns:
      unit direction vector of the track at a point along track trajectory between the last layer of region 3 and the TOF panel 1b
    • set_PostRegion3CrossDir

      public void set_PostRegion3CrossDir(Point3D dir)
      Parameters:
      dir - unit direction vector of the track at a point along track trajectory between the last layer of region 3 and the TOF panel 1b
    • get_PreRegion1CrossPoint

      public Point3D get_PreRegion1CrossPoint()
      Returns:
      point along track trajectory at the HTCC surface sphere
    • set_PreRegion1CrossPoint

      public void set_PreRegion1CrossPoint(Point3D point)
      Parameters:
      point - a point along track trajectory at the HTCC surface sphere
    • get_PreRegion1CrossDir

      public Point3D get_PreRegion1CrossDir()
      Returns:
      unit direction vector of the track at a point along track trajectory at the HTCC surface sphere
    • set_PreRegion1CrossDir

      public void set_PreRegion1CrossDir(Point3D dir)
      Parameters:
      dir - unit direction vector of the track at a point along track trajectory at the HTCC surface sphere
    • get_Region1TrackX

      public Point3D get_Region1TrackX()
      Returns:
      track position at region 1
    • set_Region1TrackX

      public void set_Region1TrackX(Point3D _Region1TrackX)
      Parameters:
      _Region1TrackX - track position at region 1
    • get_Region1TrackP

      public Point3D get_Region1TrackP()
      Returns:
      track momentum at region 1
    • set_Region1TrackP

      public void set_Region1TrackP(Point3D _Region1TrackP)
      Parameters:
      _Region1TrackP - track momentum at region 1
    • set_TotPathLen

      public void set_TotPathLen(double totPathLen)
      Parameters:
      totPathLen - total pathlength of track from vertex to last reference point on trajectory (cm)
    • get_TotPathLen

      public double get_TotPathLen()
      Returns:
      total pathlength of track from vertex to last reference point on trajectory (cm)
    • set_Vtx0

      public void set_Vtx0(Point3D trakOrig)
      Parameters:
      trakOrig - track vertex position at the distance of closest approach to the beam axis (0,0)
    • get_Vtx0

      public Point3D get_Vtx0()
      Returns:
      track vertex position at the distance of closest approach to the beam axis (0,0)
    • set_pAtOrig

      public void set_pAtOrig(Vector3D pOrig)
      Parameters:
      pOrig - track 3-momentum at the distance of closest approach to the beam axis (0,0)
    • get_pAtOrig

      public Vector3D get_pAtOrig()
      Returns:
      track 3-momentum at the distance of closest approach to the beam axis (0,0)
    • set_TrackingInfoString

      public void set_TrackingInfoString(String trking)
      Method to assign a string indicated if the stage of tracking is hit-based or time-based
      Parameters:
      trking -
    • get_TrackingInfoString

      public String get_TrackingInfoString()
      Returns:
      a string indicated if the stage of tracking is hit-based or time-based
    • set_FitChi2

      public void set_FitChi2(double fitChisq)
      Parameters:
      fitChisq - Kalman fit chi^2
    • get_FitChi2

      public double get_FitChi2()
      Returns:
      Kalman fit chi^2
    • get_FitNDF

      public int get_FitNDF()
      Returns:
      Kalman fit NDF
    • set_FitNDF

      public void set_FitNDF(int _FitNDF)
      Parameters:
      _FitNDF - Kalman fit NDF
    • get_NDFDAF

      public double get_NDFDAF()
      Returns:
      Kalman fit NDF weighted DAF
    • set_NDFDAF

      public void set_NDFDAF(double _NDFDAF)
      Parameters:
      _NDFDAF - Kalman fit NDF weighted by DAF
    • get_CovMat

      public org.jlab.jnp.matrix.Matrix get_CovMat()
      Returns:
      Kalman fit covariance matrix
    • set_CovMat

      public void set_CovMat(org.jlab.jnp.matrix.Matrix _CovMat)
      Parameters:
      _CovMat - Kalman fit covariance matrix
    • set_FitConvergenceStatus

      public void set_FitConvergenceStatus(int fitConvergenceStatus)
      Parameters:
      fitConvergenceStatus - fit convergence status 0 if OK, 1 if the fit exits before converging
    • get_FitConvergenceStatus

      public int get_FitConvergenceStatus()
      Returns:
      fit convergence status (0 if OK, 1 if the fit exits before converging)
    • get_StateVecAtReg1MiddlePlane

      public StateVec get_StateVecAtReg1MiddlePlane()
      Returns:
      the state vector in the tilted sector coordinate system at the mid-plane between the 2 superlayers in region 1
    • set_StateVecAtReg1MiddlePlane

      public void set_StateVecAtReg1MiddlePlane(StateVec _StateVecAtReg1MiddlePlane)
      Parameters:
      _StateVecAtReg1MiddlePlane - the state vector in the tilted sector coordinate system at the mid-plane between the 2 superlayers in region 1
    • set_AssociatedHBTrack

      public void set_AssociatedHBTrack(Track _trk)
      Parameters:
      _trk - associated track for Hit-Based tracking
    • get_AssociatedHBTrack

      public Track get_AssociatedHBTrack()
      Returns:
      track associated with the hit for Hit-Based tracking
    • get_ListOfHBSegments

      public List<Segment> get_ListOfHBSegments()
    • set_ListOfHBSegments

      public void set_ListOfHBSegments(List<Segment> _listOfHBSegments)
    • setHitsOnTrack

      public void setHitsOnTrack(List<FittedHit> fhits)
    • getHitsOnTrack

      public List<FittedHit> getHitsOnTrack()
    • overlaps

      public boolean overlaps(Track o)
    • bestChi2

      public boolean bestChi2(Track o)
    • isGood

      public boolean isGood()
    • printInfo

      public void printInfo()
      Basic track info
    • compareTo

      public int compareTo(Track arg)
      Specified by:
      compareTo in interface Comparable<Track>