Package org.jlab.rec.dc.cross
Class Cross
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Cross>,Iterable<Segment>,Collection<Segment>,List<Segment>,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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintSorts crosses by azimuth angle valuesget_Dir()intget_Id()intintgetCoordsInLab(double X, double Y, double Z) getCoordsInSector(double X, double Y, double Z) getCoordsInTiltedSector(double X, double Y, double Z) static longvoidvoidset_CrossParams(DCGeant4Factory DcDetector) Sets the cross parameters: the position and direction unit vectorvoidSets the cross unit direction vectorvoidset_DirErr(Point3D _DirErr) Sets the cross unit direction vectorvoidset_Id(int _Id) Sets the cross IDvoidSets the cross 3-D pointvoidset_PointErr(Point3D _PointErr) Sets a 3-dimensional error on the 3-D pointvoidset_Region(int _Region) Sets the regionvoidset_Sector(int _Sector) Sets the sectorvoidset_Segment1(Segment seg1) Set the first segment (corresponding to the first superlayer in a region)voidset_Segment2(Segment seg2) Set the second segment (corresponding to the second superlayer in a region)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, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods 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
-
isPseudoCross
public boolean isPseudoCross -
recalc
public int recalc
-
-
Constructor Details
-
Cross
public Cross(int sector, int region, int rid) - Parameters:
sector- the sector (1...6)region- the region (1...3)rid- the cross ID (if there are only 3 crosses in the event, the ID corresponds to the region index
-
-
Method Details
-
getSerialversionuid
public static long getSerialversionuid()- Returns:
- serialVersionUID
-
get_Sector
public int get_Sector()- Returns:
- the sector of the cross
-
set_Sector
public void set_Sector(int _Sector) Sets the sector- Parameters:
_Sector- the sector of the cross
-
get_Region
public int get_Region()- Returns:
- the region of the cross
-
set_Region
public void set_Region(int _Region) Sets the region- Parameters:
_Region- the region of the cross
-
get_Id
public int get_Id()- Returns:
- the id of the cross
-
set_Id
public void set_Id(int _Id) Sets the cross ID- Parameters:
_Id- the id of the cross
-
get_Point
- Returns:
- a 3-D point characterizing the position of the cross in the tilted coordinate system.
-
set_Point
Sets the cross 3-D point- Parameters:
_Point- a 3-D point characterizing the position of the cross in the tilted coordinate system.
-
get_PointErr
- Returns:
- a 3-dimensional error on the 3-D point characterizing the position of the cross in the tilted coordinate system.
-
set_PointErr
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.
-
get_Dir
- Returns:
- the cross unit direction vector
-
set_Dir
Sets the cross unit direction vector- Parameters:
_Dir- the cross unit direction vector
-
get_DirErr
- Returns:
- the cross unit direction vector
-
set_DirErr
Sets the cross unit direction vector- Parameters:
_DirErr- the cross unit direction vector
-
compareTo
Sorts crosses by azimuth angle values- Specified by:
compareToin interfaceComparable<Cross>- Parameters:
arg-
-
set_Segment1
Set the first segment (corresponding to the first superlayer in a region)- Parameters:
seg1- the segment (in the first superlayer) which is used to make a cross
-
set_Segment2
Set the second segment (corresponding to the second superlayer in a region)- Parameters:
seg2- the segment (in the second superlayer) which is used to make a cross
-
get_Segment1
- Returns:
- he segment (in the first superlayer) which is used to make a cross
-
get_Segment2
- Returns:
- the segment (in the second superlayer) which is used to make a cross
-
set_CrossParams
Sets the cross parameters: the position and direction unit vector- Parameters:
DcDetector-
-
printInfo
- Returns:
- the track info.
-
getCoordsInSector
- Parameters:
X-Y-Z-- Returns:
- rotated coords from tilted sector coordinate system to the sector coordinate system
-
getCoordsInLab
- Parameters:
X-Y-Z-- Returns:
- rotated coords from tilted sector coordinate system to the lab frame
-
getCoordsInTiltedSector
-
set_CrossDirIntersSegWires
public void set_CrossDirIntersSegWires()
-