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 TypeMethodDescriptionintSorts crossesbooleanintgetDir()intgetId()intgetPoint()doubleintintstatic longintgetSVTCrossDerivative(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()doublegetY()doublegetZ()doublegetZErr()inthashCode()booleanbooleanstatic voidvoidreset()voidsetAssociatedTrackID(int associatedTrackID) voidsetCluster1(Cluster seg1) Set the first cluster (corresponding to the first superlayer in a region)voidsetCluster2(Cluster seg2) Set the second Cluster (corresponding to the second superlayer in a region)voidsetDetector(DetectorType _Detector) voidSets the cross unit direction vectorvoidSets the cross unit direction vectorvoidsetId(int _Id) Sets the cross IDvoidsetMatchedCCross(Cross _MatchedCCross) voidsetMatchedZCross(Cross _MatchedZCross) voidsetOrderedRegion(int _OrderedRegion) voidSets the cross 3-D pointvoidSets the cross 3-D pointvoidsetPointErr(Point3D _PointErr) Sets a 3-dimensional error on the 3-D pointvoidsetPointErr0(Point3D _PointErr) Sets a 3-dimensional error on the 3-D pointvoidsetRegion(int _Region) Sets the regionvoidsetSector(int _Sector) Sets the sectorvoidvoidsetusedInXYcand(boolean _usedInXYcand) voidsetusedInZRcand(boolean _usedInZRcand) toString()voidvoidupdateBMTCross(Point3D trackPos, Vector3D trackDir) Sets the cross parameters: the position and direction unit vectorvoidupdateSVTCross(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, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAllMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods 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:
toStringin classAbstractCollection<Cluster>
-
printInfo
-
getSVTCosmicsRegion
public int getSVTCosmicsRegion() -
compareTo
Sorts crosses- Specified by:
compareToin interfaceComparable<Cross>- Parameters:
arg-
-
getAssociatedTrackID
public int getAssociatedTrackID() -
setAssociatedTrackID
public void setAssociatedTrackID(int associatedTrackID) -
getRadius
public double getRadius()- Returns:
- the Cross Radius
-
main
-