Class HitTest

java.lang.Object
cnuphys.snr.test.HitTest

public class HitTest extends Object
  • Constructor Details

    • HitTest

      public HitTest(int layer, int wire, HitTest.HitType actualHitType)
  • Method Details

    • getLayer

      public int getLayer()
      Get the layer index [0..] of the hit.
      Returns:
      the layer index [0..] of the hit.
    • getWire

      public int getWire()
      Get the wire index [0..] of the hit.
      Returns:
      the wire index [0..] of the hit.
    • incrementHitCount

      public void incrementHitCount()
      Increments the hit count by one. Used for accumulating hits for a hit map. Note: the hit is instantiated with a hit count of one.
    • getActualHitType

      public HitTest.HitType getActualHitType()
      Gets the actual hit type. This is "truth." It can be compared to a computed hit type to check the analysis.
      Returns:
      the actual hit type. This is "truth." It can be compared to a computed hit type to check the analysis.
    • getComputedHitType

      public HitTest.HitType getComputedHitType()
      Gets the computed hit type. If this hit was never analyzed, it will be UNKNOWN.
      Returns:
      the computed hit type. If this hit was never analyzed, it will be UNKNOWN.
    • setComputedHitType

      public void setComputedHitType(HitTest.HitType computedHitType)