Package org.jlab.rec.dc.track
Class Track
- All Implemented Interfaces:
- Serializable,- Cloneable,- Comparable<Track>,- Iterable<Cross>,- Collection<Cross>,- List<Cross>,- RandomAccess
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:
- 
Nested Class SummaryNested classes/interfaces inherited from class org.jlab.rec.dc.trajectory.TrajectoryTrajectory.TrajectoryStateVec
- 
Field SummaryFieldsFields inherited from class java.util.AbstractListmodCount
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanintorg.jlab.jnp.matrix.Matrixdoubleintintintget_Id()intdoubledoubleget_P()intget_Q()intdoubleget_Vtx0()intbooleanbooleanisGood()booleanvoidBasic track infovoidset_AssociatedHBTrack(Track _trk) voidset_CovMat(org.jlab.jnp.matrix.Matrix _CovMat) voidset_FitChi2(double fitChisq) voidset_FitConvergenceStatus(int fitConvergenceStatus) voidset_FitNDF(int _FitNDF) voidset_Id(int _Id) voidset_ListOfHBSegments(List<Segment> _listOfHBSegments) voidset_MissingSuperlayer(int missingSuperlayer) voidset_NDFDAF(double _NDFDAF) voidset_P(double _P) Sets the total momentum valuevoidset_pAtOrig(Vector3D pOrig) voidvoidset_PostRegion3CrossPoint(Point3D point) voidvoidset_PreRegion1CrossPoint(Point3D point) voidset_Q(int _Q) Sets the chargevoidset_Region1TrackP(Point3D _Region1TrackP) voidset_Region1TrackX(Point3D _Region1TrackX) voidset_StateVecAtReg1MiddlePlane(StateVec _StateVecAtReg1MiddlePlane) voidset_Status_crossCombo(int _Status) voidset_TotPathLen(double totPathLen) voidset_TrackingInfoString(String trking) Method to assign a string indicated if the stage of tracking is hit-based or time-basedvoidvoidsetFinalStateVec(StateVec finalStateVec) voidsetHitsOnTrack(List<FittedHit> fhits) voidsetIsAITrack(boolean isAITrack) voidsetSingleSuperlayer(Segment _singleSuperlayer) Methods inherited from class org.jlab.rec.dc.trajectory.TrajectorycalcTrajectory, getA, getId, getIntegralBdl, getPathLength, getSector, getStateVecs, getTrajectory, setA, setId, setIntegralBdl, setPathLength, setSector, setStateVecs, toStringMethods inherited from class java.util.ArrayListadd, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollectioncontainsAllMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.CollectionparallelStream, stream, toArrayMethods inherited from interface java.util.ListcontainsAll
- 
Field Details- 
fit_Successfulpublic boolean fit_Successful
 
- 
- 
Constructor Details- 
Trackpublic Track()
 
- 
- 
Method Details- 
getFinalStateVec- Returns:
- the finalStateVec
 
- 
setFinalStateVec- Parameters:
- finalStateVec- the finalStateVec to set
 
- 
get_MissingSuperlayerpublic int get_MissingSuperlayer()- Returns:
- missing superlayer of the track
 
- 
set_MissingSuperlayerpublic void set_MissingSuperlayer(int missingSuperlayer) - Parameters:
- missingSuperlayer- track missing superlayer
 
- 
getSingleSuperlayer- Returns:
- the _singleSuperlayer
 
- 
setSingleSuperlayer- Parameters:
- _singleSuperlayer- the _singleSuperlayer to set
 
- 
setIsAITrackpublic void setIsAITrack(boolean isAITrack) 
- 
getIsAITrackpublic boolean getIsAITrack()
- 
getBitStatuspublic int getBitStatus()
- 
get_Status_crossCombopublic int get_Status_crossCombo()
- 
set_Status_crossCombopublic void set_Status_crossCombo(int _Status) 
- 
get_Idpublic int get_Id()- Returns:
- id of the track
 
- 
set_Idpublic void set_Id(int _Id) - Parameters:
- _Id- track id
 
- 
get_Qpublic int get_Q()- Returns:
- the charge
 
- 
set_Qpublic void set_Q(int _Q) Sets the charge- Parameters:
- _Q- the charge
 
- 
get_Ppublic double get_P()- Returns:
- the total momentum value
 
- 
set_Ppublic void set_P(double _P) Sets the total momentum value- Parameters:
- _P- the total momentum value
 
- 
get_PostRegion3CrossPoint- Returns:
- point along track trajectory between the last layer of region 3 and the TOF panel 1b
 
- 
set_PostRegion3CrossPoint- Parameters:
- point- a point along track trajectory between the last layer of region 3 and the TOF panel 1b
 
- 
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- 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- Returns:
- point along track trajectory at the HTCC surface sphere
 
- 
set_PreRegion1CrossPoint- Parameters:
- point- a point along track trajectory at the HTCC surface sphere
 
- 
get_PreRegion1CrossDir- Returns:
- unit direction vector of the track at a point along track trajectory at the HTCC surface sphere
 
- 
set_PreRegion1CrossDir- Parameters:
- dir- unit direction vector of the track at a point along track trajectory at the HTCC surface sphere
 
- 
get_Region1TrackX- Returns:
- track position at region 1
 
- 
set_Region1TrackX- Parameters:
- _Region1TrackX- track position at region 1
 
- 
get_Region1TrackP- Returns:
- track momentum at region 1
 
- 
set_Region1TrackP- Parameters:
- _Region1TrackP- track momentum at region 1
 
- 
set_TotPathLenpublic void set_TotPathLen(double totPathLen) - Parameters:
- totPathLen- total pathlength of track from vertex to last reference point on trajectory (cm)
 
- 
get_TotPathLenpublic double get_TotPathLen()- Returns:
- total pathlength of track from vertex to last reference point on trajectory (cm)
 
- 
set_Vtx0- Parameters:
- trakOrig- track vertex position at the distance of closest approach to the beam axis (0,0)
 
- 
get_Vtx0- Returns:
- track vertex position at the distance of closest approach to the beam axis (0,0)
 
- 
set_pAtOrig- Parameters:
- pOrig- track 3-momentum at the distance of closest approach to the beam axis (0,0)
 
- 
get_pAtOrig- Returns:
- track 3-momentum at the distance of closest approach to the beam axis (0,0)
 
- 
set_TrackingInfoStringMethod to assign a string indicated if the stage of tracking is hit-based or time-based- Parameters:
- trking-
 
- 
get_TrackingInfoString- Returns:
- a string indicated if the stage of tracking is hit-based or time-based
 
- 
set_FitChi2public void set_FitChi2(double fitChisq) - Parameters:
- fitChisq- Kalman fit chi^2
 
- 
get_FitChi2public double get_FitChi2()- Returns:
- Kalman fit chi^2
 
- 
get_FitNDFpublic int get_FitNDF()- Returns:
- Kalman fit NDF
 
- 
set_FitNDFpublic void set_FitNDF(int _FitNDF) - Parameters:
- _FitNDF- Kalman fit NDF
 
- 
get_NDFDAFpublic double get_NDFDAF()- Returns:
- Kalman fit NDF weighted DAF
 
- 
set_NDFDAFpublic void set_NDFDAF(double _NDFDAF) - Parameters:
- _NDFDAF- Kalman fit NDF weighted by DAF
 
- 
get_CovMatpublic org.jlab.jnp.matrix.Matrix get_CovMat()- Returns:
- Kalman fit covariance matrix
 
- 
set_CovMatpublic void set_CovMat(org.jlab.jnp.matrix.Matrix _CovMat) - Parameters:
- _CovMat- Kalman fit covariance matrix
 
- 
set_FitConvergenceStatuspublic void set_FitConvergenceStatus(int fitConvergenceStatus) - Parameters:
- fitConvergenceStatus- fit convergence status 0 if OK, 1 if the fit exits before converging
 
- 
get_FitConvergenceStatuspublic int get_FitConvergenceStatus()- Returns:
- fit convergence status (0 if OK, 1 if the fit exits before converging)
 
- 
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- Parameters:
- _StateVecAtReg1MiddlePlane- the state vector in the tilted sector coordinate system at the mid-plane between the 2 superlayers in region 1
 
- 
set_AssociatedHBTrack- Parameters:
- _trk- associated track for Hit-Based tracking
 
- 
get_AssociatedHBTrack- Returns:
- track associated with the hit for Hit-Based tracking
 
- 
get_ListOfHBSegments
- 
set_ListOfHBSegments
- 
setHitsOnTrack
- 
getHitsOnTrack
- 
overlaps
- 
bestChi2
- 
isGoodpublic boolean isGood()
- 
printInfopublic void printInfo()Basic track info
- 
compareTo- Specified by:
- compareToin interface- Comparable<Track>
 
 
-