Package org.jlab.rec.cvt.track
Class Track
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Track>
,Iterable<Cross>
,Collection<Cross>
,List<Cross>
,RandomAccess
A class representing track candidates in the CVT. 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 Summary
Fields inherited from class org.jlab.rec.cvt.trajectory.Trajectory
isFinal
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
betterThan
(Track o) Compare this track quality with the given track based on NDF and Chi2static void
checkForOverlaps
(List<Track> tracks, String msg) int
boolean
containsCross
(Cross cross) boolean
void
findTrajectory
(Swim swimmer, List<Surface> outer) double
getChi2()
double
int
int
getNDF()
double
getP()
double
int
getPID()
double
getPt()
double
getPz()
int
getQ()
double
int
getSeed()
static long
int
int
double[][]
int
hashCode()
boolean
isGood()
Check if track passes basic quality cutsboolean
overlapWith
(Track o) Check track overlaps with the given track an overlaps is detected if the tracks share at least two crossesstatic void
removeOverlappingTracks
(List<Track> tracks) final void
setChi2
(double _Chi2) void
setKFIterations
(int iter) final void
setKFTrajectories
(Map<Integer, AKFitter.HitOnTrack> trajectory) final void
setNDF
(int _NDF) void
setP
(double _P) Sets the total momentum valuevoid
setPathToCTOF
(double _pathLength) void
setPID
(int _PID) void
setPt
(double _Pt) final void
setPXYZ()
Sets the track helical track parameters P, Pt, Pzvoid
setPz
(double _Pz) void
setQ
(int _Q) Sets the chargevoid
setSecondaryChi2
(double secondaryChi2) void
setSecondaryHelix
(Helix secondaryHelix) void
setSecondaryNDF
(int secondaryNDF) final void
void
setStatus
(int passKFFlag) void
setTempId
(int _tempId) void
setTrackCovMat
(double[][] trackCovMat) void
setTrackDirAtCTOF
(Vector3D _TrackDirAtCTOFRadious) void
setTrackPosAtCTOF
(Point3D _TrackPointAtCTOFRadius) toString()
void
update_Clusters
(int trackId) void
update_Crosses
(int trackId, double xb, double yb) Updates the crosses positions based on trajectories or helixMethods inherited from class org.jlab.rec.cvt.trajectory.Trajectory
getBMTIntersections, getHelix, getId, getRay, getSVTIntersections, getSVTSector, getTrajectory, setBMTIntersections, setHelix, setId, setRay, setSVTIntersections, setSVTSector, setTrajectory
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, 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
-
Constructor Details
-
Track
-
Track
-
Track
-
Track
-
-
Method Details
-
getQ
public int getQ()- Returns:
- the charge
-
setQ
public void setQ(int _Q) Sets the charge- Parameters:
_Q
- the charge
-
getPt
public double getPt() -
setPt
public void setPt(double _Pt) -
getPz
public double getPz() -
setPz
public void setPz(double _Pz) -
getSerialversionuid
public static long getSerialversionuid() -
getP
public double getP()- Returns:
- the total momentum value
-
setP
public void setP(double _P) Sets the total momentum value- Parameters:
_P
- the total momentum value
-
getSecondaryHelix
-
setSecondaryHelix
-
getSecondaryChi2
public double getSecondaryChi2() -
setSecondaryChi2
public void setSecondaryChi2(double secondaryChi2) -
getSecondaryNDF
public int getSecondaryNDF() -
setSecondaryNDF
public void setSecondaryNDF(int secondaryNDF) -
getSeed
-
setSeed
-
setPXYZ
public final void setPXYZ()Sets the track helical track parameters P, Pt, Pz -
update_Crosses
public void update_Crosses(int trackId, double xb, double yb) Updates the crosses positions based on trajectories or helix- Parameters:
trackId
-
-
update_Clusters
public void update_Clusters(int trackId) -
containsCross
- Parameters:
cross
- the cross- Returns:
- a boolean to indicate if a cross belongs to the track
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<Track>
-
isGood
public boolean isGood()Check if track passes basic quality cuts- Returns:
-
betterThan
Compare this track quality with the given track based on NDF and Chi2- Parameters:
o
- the other track- Returns:
- true if this track quality is better than the given track
-
overlapWith
Check track overlaps with the given track an overlaps is detected if the tracks share at least two crosses- Parameters:
o
- the other track- Returns:
- true if this track overlaps with the given track, false otherwise
-
getTrackPosAtCTOF
-
setTrackPosAtCTOF
-
getTrackDirAtCTOF
-
setTrackDirAtCTOF
-
getPathToCTOF
public double getPathToCTOF() -
setPathToCTOF
public void setPathToCTOF(double _pathLength) -
getPID
public int getPID() -
setPID
public void setPID(int _PID) -
getNDF
public int getNDF() -
setNDF
public final void setNDF(int _NDF) -
getChi2
public double getChi2() -
setChi2
public final void setChi2(double _Chi2) -
getChi2Prob
public double getChi2Prob() -
getKFIterations
public int getKFIterations() -
setKFIterations
public void setKFIterations(int iter) -
getKFTrajectories
-
setKFTrajectories
-
getStatus
public int getStatus() -
setStatus
public void setStatus(int passKFFlag) -
getTrackCovMat
public double[][] getTrackCovMat()- Returns:
- the trackCovMat
-
setTrackCovMat
public void setTrackCovMat(double[][] trackCovMat) - Parameters:
trackCovMat
- the trackCovMat to set
-
findTrajectory
-
getTempId
public int getTempId() -
setTempId
public void setTempId(int _tempId) -
removeOverlappingTracks
-
checkForOverlaps
-
toString
- Overrides:
toString
in classAbstractCollection<Cross>
-