Package cnuphys.snr.test
Class HitTest
java.lang.Object
cnuphys.snr.test.HitTest
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the actual hit type.Gets the computed hit type.int
getLayer()
Get the layer index [0..] of the hit.int
getWire()
Get the wire index [0..] of the hit.void
Increments the hit count by one.void
setComputedHitType
(HitTest.HitType computedHitType)
-
Constructor Details
-
HitTest
-
-
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
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
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
-