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 Summary
Nested classes/interfaces inherited from class org.jlab.rec.dc.trajectory.Trajectory
Trajectory.TrajectoryStateVec
-
Field Summary
FieldsFields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
org.jlab.jnp.matrix.Matrix
double
int
int
int
get_Id()
int
double
double
get_P()
int
get_Q()
int
double
get_Vtx0()
int
boolean
boolean
isGood()
boolean
void
Basic track infovoid
set_AssociatedHBTrack
(Track _trk) void
set_CovMat
(org.jlab.jnp.matrix.Matrix _CovMat) void
set_FitChi2
(double fitChisq) void
set_FitConvergenceStatus
(int fitConvergenceStatus) void
set_FitNDF
(int _FitNDF) void
set_Id
(int _Id) void
set_ListOfHBSegments
(List<Segment> _listOfHBSegments) void
set_MissingSuperlayer
(int missingSuperlayer) void
set_NDFDAF
(double _NDFDAF) void
set_P
(double _P) Sets the total momentum valuevoid
set_pAtOrig
(Vector3D pOrig) void
void
set_PostRegion3CrossPoint
(Point3D point) void
void
set_PreRegion1CrossPoint
(Point3D point) void
set_Q
(int _Q) Sets the chargevoid
set_Region1TrackP
(Point3D _Region1TrackP) void
set_Region1TrackX
(Point3D _Region1TrackX) void
set_StateVecAtReg1MiddlePlane
(StateVec _StateVecAtReg1MiddlePlane) void
set_Status_crossCombo
(int _Status) void
set_TotPathLen
(double totPathLen) void
set_TrackingInfoString
(String trking) Method to assign a string indicated if the stage of tracking is hit-based or time-basedvoid
void
setFinalStateVec
(StateVec finalStateVec) void
setHitsOnTrack
(List<FittedHit> fhits) void
setIsAITrack
(boolean isAITrack) void
setSingleSuperlayer
(Segment _singleSuperlayer) Methods inherited from class org.jlab.rec.dc.trajectory.Trajectory
calcTrajectory, getA, getId, getIntegralBdl, getPathLength, getSector, getStateVecs, getTrajectory, setA, setId, setIntegralBdl, setPathLength, setSector, setStateVecs, toString
Methods inherited from class java.util.ArrayList
add, 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, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll
-
Field Details
-
fit_Successful
public boolean fit_Successful
-
-
Constructor Details
-
Track
public Track()
-
-
Method Details
-
getFinalStateVec
- Returns:
- the finalStateVec
-
setFinalStateVec
- 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
- Returns:
- the _singleSuperlayer
-
setSingleSuperlayer
- 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
- 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_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
- 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_TrackingInfoString
Method 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_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
- 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
-
isGood
public boolean isGood() -
printInfo
public void printInfo()Basic track info -
compareTo
- Specified by:
compareTo
in interfaceComparable<Track>
-