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 TypeMethodDescriptionint
Sorts crosses by azimuth angle valuesorg.jlab.geom.prim.Point3D
get_Dir()
org.jlab.geom.prim.Point3D
int
get_Id()
org.jlab.geom.prim.Point3D
org.jlab.geom.prim.Point3D
int
int
org.jlab.geom.prim.Point3D
getCoordsInLab
(double X, double Y, double Z) org.jlab.geom.prim.Point3D
getCoordsInSector
(double X, double Y, double Z) org.jlab.geom.prim.Point3D
getCoordsInTiltedSector
(double X, double Y, double Z) static long
void
void
set_CrossParams
(org.jlab.detector.geant4.v2.DCGeant4Factory DcDetector) Sets the cross parameters: the position and direction unit vectorvoid
set_Dir
(org.jlab.geom.prim.Point3D _Dir) Sets the cross unit direction vectorvoid
set_DirErr
(org.jlab.geom.prim.Point3D _DirErr) Sets the cross unit direction vectorvoid
set_Id
(int _Id) Sets the cross IDvoid
set_Point
(org.jlab.geom.prim.Point3D _Point) Sets the cross 3-D pointvoid
set_PointErr
(org.jlab.geom.prim.Point3D _PointErr) Sets a 3-dimensional error on the 3-D pointvoid
set_Region
(int _Region) Sets the regionvoid
set_Sector
(int _Sector) Sets the sectorvoid
set_Segment1
(Segment seg1) Set the first segment (corresponding to the first superlayer in a region)void
set_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, 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
-
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
public org.jlab.geom.prim.Point3D get_Point()- Returns:
- a 3-D point characterizing the position of the cross in the tilted coordinate system.
-
set_Point
public void set_Point(org.jlab.geom.prim.Point3D _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
public org.jlab.geom.prim.Point3D 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
public void set_PointErr(org.jlab.geom.prim.Point3D _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
public org.jlab.geom.prim.Point3D get_Dir()- Returns:
- the cross unit direction vector
-
set_Dir
public void set_Dir(org.jlab.geom.prim.Point3D _Dir) Sets the cross unit direction vector- Parameters:
_Dir
- the cross unit direction vector
-
get_DirErr
public org.jlab.geom.prim.Point3D get_DirErr()- Returns:
- the cross unit direction vector
-
set_DirErr
public void set_DirErr(org.jlab.geom.prim.Point3D _DirErr) Sets the cross unit direction vector- Parameters:
_DirErr
- the cross unit direction vector
-
compareTo
Sorts crosses by azimuth angle values- Specified by:
compareTo
in 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
public void set_CrossParams(org.jlab.detector.geant4.v2.DCGeant4Factory DcDetector) Sets the cross parameters: the position and direction unit vector- Parameters:
DcDetector
-
-
printInfo
- Returns:
- the track info.
-
getCoordsInSector
public org.jlab.geom.prim.Point3D getCoordsInSector(double X, double Y, double Z) - Parameters:
X
-Y
-Z
-- Returns:
- rotated coords from tilted sector coordinate system to the sector coordinate system
-
getCoordsInLab
public org.jlab.geom.prim.Point3D getCoordsInLab(double X, double Y, double Z) - Parameters:
X
-Y
-Z
-- Returns:
- rotated coords from tilted sector coordinate system to the lab frame
-
getCoordsInTiltedSector
public org.jlab.geom.prim.Point3D getCoordsInTiltedSector(double X, double Y, double Z) -
set_CrossDirIntersSegWires
public void set_CrossDirIntersSegWires()
-