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

    • _QualityFac

      public double _QualityFac
    • newClustering

      public boolean newClustering
    • MCstatus

      public int MCstatus
    • isCorrupted

      public boolean isCorrupted
  • Constructor Details

  • Method Details

    • getDetector

      public DetectorType getDetector()
    • setDetector

      public void setDetector(DetectorType _detector)
    • getType

      public BMTType getType()
    • setType

      public void setType(BMTType type)
    • getSector

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

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

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

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

      public Strip getStrip()
    • setStrip

      public void setStrip(Strip _Strip)
    • getId

      public int getId()
      Returns:
      the ID
    • setId

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

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

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

      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

      public void printInfo()
    • isSameAs

      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

      public double getdocaToTrk()
    • setdocaToTrk

      public void setdocaToTrk(double _docaToTrk)
    • setdocaToTrk

      public void setdocaToTrk(Point3D traj)
    • residual

      public double residual(Point3D traj)
    • getstripResolutionAtDoca

      public double getstripResolutionAtDoca()
    • setstripResolutionAtDoca

      public void setstripResolutionAtDoca(double _stripResolutionAtDoca)
    • getTrkgStatus

      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

      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

      public double getQualityFac()
    • setQualityFac

      public void setQualityFac(double QF)
    • getResidual

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

      public int getAssociatedClusterID()
    • setAssociatedClusterID

      public void setAssociatedClusterID(int _AssociatedClusterID)
    • getAssociatedTrackID

      public int getAssociatedTrackID()
    • setAssociatedTrackID

      public void setAssociatedTrackID(int associatedTrackID)
    • toString

      public String toString()
      Overrides:
      toString in class Object