Package org.jlab.rec.fmt.cross
Class Cross
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Cross>
,Iterable<Cluster>
,Collection<Cluster>
,List<Cluster>
,RandomAccess
The crosses are objects used to find tracks and are characterized by a 3-D
point and a direction unit vector.
- Author:
- ziegler
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Sorts crosses by azimuth angle valuesfindCrosses
(List<Cluster> clusters) Deprecated.getDir()
int
getIndex()
getPoint()
int
static long
int
void
void
setCluster1
(Cluster seg1) Set the first cluster (corresponding to the first superlayer in a region)void
setCluster2
(Cluster seg2) Set the second Cluster (corresponding to the second superlayer in a region)void
Sets the cross parameters: the position and direction unit vectorvoid
Sets the cross unit direction vectorvoid
Sets the cross unit direction vectorvoid
setIndex
(int index) Sets the cross IDvoid
Sets the cross 3-D pointvoid
setPointErr
(Point3D _PointErr) Sets a 3-dimensional error on the 3-D pointvoid
setRegion
(int _Region) Sets the regionvoid
setTrackIndex
(int _AssociatedTrackID) 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, toString
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
-
Cross
public Cross(int region, int index) - Parameters:
region
- the region (1...3)index
-
-
-
Method Details
-
getRegion
public int getRegion()- Returns:
- the region of the cross
-
setRegion
public void setRegion(int _Region) Sets the region- Parameters:
_Region
- the region of the cross
-
getIndex
public int getIndex()- Returns:
- the id of the cross
-
setIndex
public void setIndex(int index) Sets the cross ID- Parameters:
index
-
-
getPoint
- Returns:
- a 3-D point characterizing the position of the cross in the tilted coordinate system.
-
setPoint
Sets the cross 3-D point- Parameters:
_Point
- a 3-D point characterizing the position of the cross in the tilted coordinate system.
-
getPointErr
- Returns:
- a 3-dimensional error on the 3-D point characterizing the position of the cross in the tilted coordinate system.
-
setPointErr
Sets a 3-dimensional error on the 3-D point- Parameters:
_PointErr
- a 3-dimensional error on the 3-D point characterizing the position of the cross in the tilted coordinate system.
-
getDir
- Returns:
- the cross unit direction vector
-
setDir
Sets the cross unit direction vector- Parameters:
_Dir
- the cross unit direction vector
-
getDirErr
- Returns:
- the cross unit direction vector
-
setDirErr
Sets the cross unit direction vector- Parameters:
_DirErr
- the cross unit direction vector
-
getSerialversionuid
public static long getSerialversionuid()- Returns:
- serialVersionUID
-
compareTo
Sorts crosses by azimuth angle values- Specified by:
compareTo
in interfaceComparable<Cross>
-
setCluster1
Set the first cluster (corresponding to the first superlayer in a region)- Parameters:
seg1
- the Cluster (in the first superlayer) which is used to make a cross
-
setCluster2
Set the second Cluster (corresponding to the second superlayer in a region)- Parameters:
seg2
- the Cluster (in the second superlayer) which is used to make a cross
-
getCluster1
- Returns:
- he Cluster (in the first superlayer) which is used to make a cross
-
getCluster2
- Returns:
- the Cluster (in the second superlayer) which is used to make a cross
-
setCrossParams
public void setCrossParams()Sets the cross parameters: the position and direction unit vector -
getTrackIndex
public int getTrackIndex() -
setTrackIndex
public void setTrackIndex(int _AssociatedTrackID) -
setAssociatedElementsIDs
public void setAssociatedElementsIDs() -
printInfo
- Returns:
- the track info.
-
findCrosses
Deprecated.
-