Class FTTRKHit

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

public class FTTRKHit extends Object implements Comparable<FTTRKHit>
Author:
devita, filippi
  • Constructor Details

    • FTTRKHit

      public FTTRKHit(int sector, int layer, int strip, double Edep, double time, int id)
      Parameters:
      sector -
      layer -
      strip -
      Edep - (for gemc output without digitization)
  • Method Details

    • get_Sector

      public int get_Sector()
      Returns:
      the sector (1)
    • set_Sector

      public void set_Sector(int _Sector)
      Sets the sector
      Parameters:
      _Sector -
    • get_Layer

      public int get_Layer()
      Returns:
      the layer (1-4)
    • set_Layer

      public void set_Layer(int _Layer)
      Sets the layer
      Parameters:
      _Layer -
    • get_HalfLayer

      public int get_HalfLayer(int _Layer)
      Returns:
      the superlayer: 0 for bottom modules 1+3, 1 for top modules 2+4
    • get_Strip

      public int get_Strip()
      Returns:
      the wire number (1...768)
    • set_Strip

      public void set_Strip(int _Strip)
      Sets the wire number
      Parameters:
      _Wire -
    • get_Edep

      public double get_Edep()
      Returns:
      the Edep in MeV
    • set_Edep

      public void set_Edep(double _Edep)
      Sets the Edep
      Parameters:
      _Edep -
    • get_Time

      public double get_Time()
    • set_Time

      public void set_Time(double _Time)
    • get_Id

      public int get_Id()
      Returns:
      the ID
    • set_Id

      public void set_Id(int _Id)
      Sets the hit ID. The ID corresponds to the hit index in the EvIO column.
      Parameters:
      _Id -
    • get_Region

      public int get_Region()
      Returns:
      region (1-2)
    • get_StripSegment

      public Line3D get_StripSegment()
    • set_StripSegment

      public void set_StripSegment(Line3D _StripSegment)
    • get_DGTZIndex

      public int get_DGTZIndex()
    • set_DGTZIndex

      public void set_DGTZIndex(int _DGTZIndex)
    • get_ClusterIndex

      public int get_ClusterIndex()
    • set_ClusterIndex

      public void set_ClusterIndex(int _ClusterIndex)
    • get_CrossIndex

      public int get_CrossIndex()
    • set_CrossIndex

      public void set_CrossIndex(int _CrossIndex)
    • get_StripNumberFromLocalY

      public int get_StripNumberFromLocalY(double xGlobal, double yLocal, int layer)
    • get_StripNumberFromGlobal

      public int get_StripNumberFromGlobal(double xGlobal, double yGlobal, int layer)
    • compareLayerTo

      public int compareLayerTo(FTTRKHit arg0)
    • isSameAs

      public boolean isSameAs(FTTRKHit otherHit)
      Parameters:
      otherHit -
      Returns:
      a boolean comparing 2 hits based on basic descriptors; returns true if the hits are the same
    • compareTo

      public int compareTo(FTTRKHit arg0)
      Specified by:
      compareTo in interface Comparable<FTTRKHit>
      Parameters:
      arg0 - the other hit
      Returns:
      an int used to sort a collection of hits by wire number. Sorting by wire is used in clustering.
    • printInfo

      public String printInfo()
      Returns:
      print statement with hit information