Class Wire3D

java.lang.Object
edu.cnu.mdi.view.demo.geoslice.Wire3D

public final class Wire3D extends Object
One synthetic three-dimensional wire in the geometry slice demos.

A Wire3D is represented by a finite 3D line segment. The 2D demo view intersects that segment with the current constant-phi slicing plane and renders the intersection point. The companion 3D demo view renders the line segment directly so readers can see the source object being sliced.

The class also carries simple detector-style metadata: region, layer, wire number, fake-hit status, and stable fake ADC/TDC values. These values are used only for feedback and visual emphasis in the demos.

  • Constructor Summary

    Constructors
    Constructor
    Description
    Wire3D(Line line, int chamberIndex, int layerIndex, int wireIndex, int globalWireId, boolean fakeHit, int adc, int tdc)
    Create a synthetic wire.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Return the stable fake ADC value.
    int
    Return the zero-based chamber/region index.
    int
    Return the unique wire id across the synthetic model.
    int
    Return the zero-based layer index.
    Return the 3D line segment representing this wire.
    int
    Return the stable fake TDC value.
    int
    Return the zero-based wire index within the layer.
    boolean
    Return whether this wire is a fake hit.
    Return a compact feedback label.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Wire3D

      public Wire3D(Line line, int chamberIndex, int layerIndex, int wireIndex, int globalWireId, boolean fakeHit, int adc, int tdc)
      Create a synthetic wire.
      Parameters:
      line - finite 3D line segment
      chamberIndex - zero-based chamber/region index
      layerIndex - zero-based layer index
      wireIndex - zero-based wire index within the layer
      globalWireId - unique wire id across the model
      fakeHit - whether this wire is a fake hit
      adc - fake ADC value
      tdc - fake TDC value
  • Method Details

    • getLine

      public Line getLine()
      Return the 3D line segment representing this wire.
      Returns:
      wire line segment
    • getChamberIndex

      public int getChamberIndex()
      Return the zero-based chamber/region index.
      Returns:
      chamber index
    • getLayerIndex

      public int getLayerIndex()
      Return the zero-based layer index.
      Returns:
      layer index
    • getWireIndex

      public int getWireIndex()
      Return the zero-based wire index within the layer.
      Returns:
      wire index
    • getGlobalWireId

      public int getGlobalWireId()
      Return the unique wire id across the synthetic model.
      Returns:
      global wire id
    • isFakeHit

      public boolean isFakeHit()
      Return whether this wire is a fake hit.
      Returns:
      true if fake hit
    • getAdc

      public int getAdc()
      Return the stable fake ADC value.
      Returns:
      ADC value
    • getTdc

      public int getTdc()
      Return the stable fake TDC value.
      Returns:
      TDC value
    • toString

      public String toString()
      Return a compact feedback label.
      Overrides:
      toString in class Object
      Returns:
      label such as "region 2, layer 3, wire 14"