Class Cross

All Implemented Interfaces:
Serializable, Cloneable, Comparable<Cross>, Iterable<Cluster>, Collection<Cluster>, List<Cluster>, RandomAccess

public class Cross extends ArrayList<Cluster> implements Comparable<Cross>
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:
  • 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

      public Point3D getPoint()
      Returns:
      a 3-D point characterizing the position of the cross in the tilted coordinate system.
    • setPoint

      public void setPoint(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.
    • getPointErr

      public Point3D getPointErr()
      Returns:
      a 3-dimensional error on the 3-D point characterizing the position of the cross in the tilted coordinate system.
    • setPointErr

      public void setPointErr(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.
    • getDir

      public Vector3D getDir()
      Returns:
      the cross unit direction vector
    • setDir

      public void setDir(Vector3D _Dir)
      Sets the cross unit direction vector
      Parameters:
      _Dir - the cross unit direction vector
    • getDirErr

      public Vector3D getDirErr()
      Returns:
      the cross unit direction vector
    • setDirErr

      public void setDirErr(Vector3D _DirErr)
      Sets the cross unit direction vector
      Parameters:
      _DirErr - the cross unit direction vector
    • getSerialversionuid

      public static long getSerialversionuid()
      Returns:
      serialVersionUID
    • compareTo

      public int compareTo(Cross arg)
      Sorts crosses by azimuth angle values
      Specified by:
      compareTo in interface Comparable<Cross>
    • setCluster1

      public void setCluster1(Cluster seg1)
      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

      public void setCluster2(Cluster seg2)
      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

      public Cluster getCluster1()
      Returns:
      he Cluster (in the first superlayer) which is used to make a cross
    • getCluster2

      public Cluster 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

      public String printInfo()
      Returns:
      the track info.
    • findCrosses

      @Deprecated public static ArrayList<Cross> findCrosses(List<Cluster> clusters)
      Deprecated.