Package org.jlab.rec.cvt.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
FieldsFields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
ConstructorsConstructorDescriptionCross
(DetectorType detector, BMTType detectortype, int sector, int region, int crid) -
Method Summary
Modifier and TypeMethodDescriptionint
Sorts crossesboolean
int
getDir()
int
getId()
int
getPoint()
double
int
int
static long
int
getSVTCrossDerivative
(int icluster, Vector3D trackDir) Calculate the cross derivative for the translation of one strip useful for the error calculationgetSVTCrossError
(Vector3D trackDir) Calculate the cross position error from the two strips and the track directiongetSVTCrossPoint
(Vector3D trackDir) Calculate the cross point from the two strips and the track directiongetType()
double
getY()
double
getZ()
double
getZErr()
int
hashCode()
boolean
boolean
static void
void
reset()
void
setAssociatedTrackID
(int associatedTrackID) 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
setDetector
(DetectorType _Detector) void
Sets the cross unit direction vectorvoid
Sets the cross unit direction vectorvoid
setId
(int _Id) Sets the cross IDvoid
setMatchedCCross
(Cross _MatchedCCross) void
setMatchedZCross
(Cross _MatchedZCross) void
setOrderedRegion
(int _OrderedRegion) void
Sets the cross 3-D pointvoid
Sets the cross 3-D pointvoid
setPointErr
(Point3D _PointErr) Sets a 3-dimensional error on the 3-D pointvoid
setPointErr0
(Point3D _PointErr) Sets a 3-dimensional error on the 3-D pointvoid
setRegion
(int _Region) Sets the regionvoid
setSector
(int _Sector) Sets the sectorvoid
void
setusedInXYcand
(boolean _usedInXYcand) void
setusedInZRcand
(boolean _usedInZRcand) toString()
void
void
updateBMTCross
(Point3D trackPos, Vector3D trackDir) Sets the cross parameters: the position and direction unit vectorvoid
updateSVTCross
(Vector3D trackDir) Sets the cross parameters: the position and direction unit vectorMethods 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
-
Field Details
-
isInSeed
public boolean isInSeed
-
-
Constructor Details
-
Cross
- Parameters:
detector
- SVT or BMTdetectortype
- detector type for BMT, C or Z detectorsector
- the sector (1...)region
- the region (1...)crid
-
-
-
Method Details
-
is_usedInXYcand
public boolean is_usedInXYcand() -
setusedInXYcand
public void setusedInXYcand(boolean _usedInXYcand) -
is_usedInZRcand
public boolean is_usedInZRcand() -
setusedInZRcand
public void setusedInZRcand(boolean _usedInZRcand) -
equals
-
getDetector
-
setDetector
-
getType
-
setType
-
getSector
public int getSector()- Returns:
- the sector of the cross
-
setSector
public void setSector(int _Sector) Sets the sector- Parameters:
_Sector
- the sector of the cross
-
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
-
getOrderedRegion
public int getOrderedRegion()- Returns:
- the _OrderedRegion
-
setOrderedRegion
public void setOrderedRegion(int _OrderedRegion) - Parameters:
_OrderedRegion
- the _OrderedRegion to set
-
getId
public int getId()- Returns:
- the id of the cross
-
setId
public void setId(int _Id) Sets the cross ID- Parameters:
_Id
- the id of the cross
-
getPoint0
- Returns:
- a 3-D point characterizing the position of the cross in the tilted coordinate system.
-
setPoint0
Sets the cross 3-D point- Parameters:
_Point
- a 3-D point characterizing the position of the cross in the tilted coordinate system.
-
getPointErr0
- Returns:
- a 3-dimensional error on the 3-D point characterizing the position of the cross in the tilted coordinate system.
-
setPointErr0
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.
-
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.
-
getY
public double getY() -
getZ
public double getZ() -
getPointErr
- Returns:
- a 3-dimensional error on the 3-D point characterizing the position of the cross in the tilted coordinate system.
-
getZErr
public double getZErr() -
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:
trkDir
- 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
-
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
-
getMatchedZCross
-
setMatchedZCross
-
getMatchedCCross
-
setMatchedCCross
-
reset
public void reset() -
update
-
updateBMTCross
Sets the cross parameters: the position and direction unit vector -
updateSVTCross
Sets the cross parameters: the position and direction unit vector- Parameters:
trackDir
-
-
getSVTCrossPoint
Calculate the cross point from the two strips and the track direction- Parameters:
trackDir
- track direction- Returns:
-
getSVTCrossError
Calculate the cross position error from the two strips and the track direction- Parameters:
trackDir
- track direction- Returns:
-
getSVTCrossDerivative
Calculate the cross derivative for the translation of one strip useful for the error calculation- Parameters:
trackDir
- track direction- Returns:
-
hashCode
public int hashCode() -
toString
- Overrides:
toString
in classAbstractCollection<Cluster>
-
printInfo
-
getSVTCosmicsRegion
public int getSVTCosmicsRegion() -
compareTo
Sorts crosses- Specified by:
compareTo
in interfaceComparable<Cross>
- Parameters:
arg
-
-
getAssociatedTrackID
public int getAssociatedTrackID() -
setAssociatedTrackID
public void setAssociatedTrackID(int associatedTrackID) -
getRadius
public double getRadius()- Returns:
- the Cross Radius
-
main
-