Class Hit

java.lang.Object
org.jlab.rec.fmt.hit.Hit
All Implemented Interfaces:
Comparable<Hit>

public class Hit extends Object implements Comparable<Hit>
A hit characterized by layer, sector, wire number, and Edep. The ADC to time conversion has been already done.
Author:
ziegler, benkel, devita
  • Constructor Details Link icon

    • Hit Link icon

      public Hit(int index, int layer, int strip, double energy, double time)
      Parameters:
      index -
      layer -
      strip -
      energy -
      time -
  • Method Details Link icon

    • getLayer Link icon

      public int getLayer()
      Returns:
      the layer (1...6)
    • setLayer Link icon

      public void setLayer(int _Layer)
      Sets the layer
      Parameters:
      _Layer -
    • getStrip Link icon

      public int getStrip()
      Returns:
      the strip number (1...256)
    • setStrip Link icon

      public void setStrip(int _Strip)
      Sets the strip number
      Parameters:
      _Strip -
    • getEnergy Link icon

      public double getEnergy()
      Returns:
      the Edep in MeV
    • setEnergy Link icon

      public void setEnergy(double _Edep)
      Sets the Edep
      Parameters:
      _Edep -
    • getTime Link icon

      public double getTime()
    • setTime Link icon

      public void setTime(double _Time)
    • getError Link icon

      public double getError()
    • setError Link icon

      public void setError(double _Error)
    • getIndex Link icon

      public int getIndex()
      Returns:
      the ID
    • setIndex Link icon

      public void setIndex(int _Id)
      Sets the hit ID. The ID corresponds to the hit index in the EvIO column.
      Parameters:
      _Id -
    • getRegion Link icon

      public int getRegion()
      Returns:
      region (1...4)
    • getRegionSlayer Link icon

      public int getRegionSlayer()
      Returns:
      superlayer 1 or 2 in region (1...4)
    • getStripGlobalSegment Link icon

      public Line3D getStripGlobalSegment()
    • getStripLocalSegment Link icon

      public Line3D getStripLocalSegment()
    • getDoca Link icon

      public double getDoca(double x, double y, double z)
    • getStatus Link icon

      public int getStatus()
    • setStatus Link icon

      public void setStatus(int _Status)
    • getResidual Link icon

      public double getResidual()
    • setResidual Link icon

      public void setResidual(double trackLocalY)
    • getCrossIndex Link icon

      public int getCrossIndex()
    • setCrossIndex Link icon

      public void setCrossIndex(int crossIndex)
    • getTrackIndex Link icon

      public int getTrackIndex()
    • setTrackIndex Link icon

      public void setTrackIndex(int _AssociatedTrackIndex)
    • compareTo Link icon

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

      public boolean equal(Hit otherHit)
      Parameters:
      otherHit -
      Returns:
      a boolean comparing 2 hits based on basic descriptors; returns true if the hits are the same
    • isClose Link icon

      public boolean isClose(Hit other)
      Parameters:
      other -
      Returns:
      a boolean comparing 2 hits based on basic descriptors; returns true if the hits are the same
    • getClusterIndex Link icon

      public int getClusterIndex()
    • setClusterIndex Link icon

      public void setClusterIndex(int _AssociatedClusterIndex)
    • fetchHits Link icon

      public static List<Hit> fetchHits(DataEvent event, IndexedTable timecuts, IndexedTable statuses)
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      print statement with hit information