Class FTTRKCross

java.lang.Object
org.jlab.rec.ft.trk.FTTRKCross
All Implemented Interfaces:
Comparable<FTTRKCross>

public class FTTRKCross extends Object implements Comparable<FTTRKCross>
The crosses are objects used to find tracks and are characterized by a 3-D point and a direction unit vector.
Author:
ziegler, devita
  • Constructor Details

    • FTTRKCross

      public FTTRKCross(int sector, int region, int rid)
      Parameters:
      sector - the sector (1)
      region - the region (1-2)
      rid - the cross ID (if there are only 2 crosses in the event, the ID corresponds to the region index)
  • Method Details

    • 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_trkId

      public int get_trkId()
    • set_trkId

      public void set_trkId(int trkid)
    • get_Point

      public 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(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 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(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 Vector3D get_Dir()
      Returns:
      the cross unit direction vector
    • set_Dir

      public void set_Dir(Vector3D dir)
      Sets the cross unit direction vector
      Parameters:
      _Dir - the cross unit direction vector
    • get_DirErr

      public Vector3D get_DirErr()
      Returns:
      the cross unit direction vector
    • set_DirErr

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

      public static long getSerialversionuid()
      Returns:
      serialVersionUID
    • set_Energy

      public void set_Energy(float energy)
    • set_Time

      public void set_Time(float time)
    • get_Energy

      public float get_Energy()
    • get_Time

      public float get_Time()
    • compareTo

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

      public void set_Cluster1(FTTRKCluster seg1)
      Set the first cluster (corresponding to the first layer in a region)
      Parameters:
      seg1 - the Cluster (in the first layer) which is used to make a cross
    • set_Cluster2

      public void set_Cluster2(FTTRKCluster seg2)
      Set the second Cluster (corresponding to the second layer in a region)
      Parameters:
      seg2 - the Cluster (in the second layer) which is used to make a cross
    • get_Cluster1

      public FTTRKCluster get_Cluster1()
      Returns:
      he Cluster (in the first layer) which is used to make a cross
    • get_Cluster2

      public FTTRKCluster get_Cluster2()
      Returns:
      the Cluster (in the second layer) which is used to make a cross
    • getDetector

      public int getDetector()
    • set_CrossParams

      public void set_CrossParams()
      Sets the cross parameters: the position and direction unit vector
    • evaluate_EnergyAndTime

      public void evaluate_EnergyAndTime()
    • set_AssociatedElementsIDs

      public void set_AssociatedElementsIDs()
    • printInfo

      public String printInfo()
      Returns:
      the track info.