Class Hit

java.lang.Object
org.jlab.rec.cvt.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 done.
Author:
ziegler
  • Field Details Link icon

    • _QualityFac Link icon

      public double _QualityFac
    • newClustering Link icon

      public boolean newClustering
    • MCstatus Link icon

      public int MCstatus
    • isCorrupted Link icon

      public boolean isCorrupted
  • Constructor Details Link icon

  • Method Details Link icon

    • getDetector Link icon

      public DetectorType getDetector()
    • setDetector Link icon

      public void setDetector(DetectorType _detector)
    • getType Link icon

      public BMTType getType()
    • setType Link icon

      public void setType(BMTType type)
    • getSector Link icon

      public int getSector()
      Returns:
      the sector (1...24)
    • setSector Link icon

      public void setSector(int _Sector)
      Sets the sector
      Parameters:
      _Sector -
    • getLayer Link icon

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

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

      public Strip getStrip()
    • setStrip Link icon

      public void setStrip(Strip _Strip)
    • getId Link icon

      public int getId()
      Returns:
      the ID
    • setId Link icon

      public void setId(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)
    • compareTo Link icon

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

      public void printInfo()
    • isSameAs Link icon

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

      public double getdocaToTrk()
    • setdocaToTrk Link icon

      public void setdocaToTrk(double _docaToTrk)
    • setdocaToTrk Link icon

      public void setdocaToTrk(Point3D traj)
    • residual Link icon

      public double residual(Point3D traj)
    • getstripResolutionAtDoca Link icon

      public double getstripResolutionAtDoca()
    • setstripResolutionAtDoca Link icon

      public void setstripResolutionAtDoca(double _stripResolutionAtDoca)
    • getTrkgStatus Link icon

      public int getTrkgStatus()
      Returns:
      an integer representative of the stage of the pattern recognition and subsequent KF fit for that hit. -1: no fit; 0: global helical fit; 1: KF fit
    • setTrkgStatus Link icon

      public void setTrkgStatus(int trkgStatus)
      Parameters:
      trkgStatus - is an integer representative of the stage of the pattern recognition and subsequent KF fit for that hit. -1: no fit; 0: global helical fit; 1: KF fit
    • getQualityFac Link icon

      public double getQualityFac()
    • setQualityFac Link icon

      public void setQualityFac(double QF)
    • getResidual Link icon

      public double getResidual()
      Returns:
      the hit residual = doca to track
    • getAssociatedClusterID Link icon

      public int getAssociatedClusterID()
    • setAssociatedClusterID Link icon

      public void setAssociatedClusterID(int _AssociatedClusterID)
    • getAssociatedTrackID Link icon

      public int getAssociatedTrackID()
    • setAssociatedTrackID Link icon

      public void setAssociatedTrackID(int associatedTrackID)
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object