Class Cross

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

public class Cross extends ArrayList<Segment> 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:
  • 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

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

      public void set_Segment1(Segment seg1)
      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

      public void set_Segment2(Segment seg2)
      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

      public Segment get_Segment1()
      Returns:
      he segment (in the first superlayer) which is used to make a cross
    • get_Segment2

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

      public String 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()