Package edu.cnu.mdi.view.demo.geoslice
Class Wire3D
java.lang.Object
edu.cnu.mdi.view.demo.geoslice.Wire3D
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 -
Method Summary
Modifier and TypeMethodDescriptionintgetAdc()Return the stable fake ADC value.intReturn the zero-based chamber/region index.intReturn the unique wire id across the synthetic model.intReturn the zero-based layer index.getLine()Return the 3D line segment representing this wire.intgetTdc()Return the stable fake TDC value.intReturn the zero-based wire index within the layer.booleanReturn whether this wire is a fake hit.toString()Return a compact feedback label.
-
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 segmentchamberIndex- zero-based chamber/region indexlayerIndex- zero-based layer indexwireIndex- zero-based wire index within the layerglobalWireId- unique wire id across the modelfakeHit- whether this wire is a fake hitadc- fake ADC valuetdc- fake TDC value
-
-
Method Details
-
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:
trueif 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
Return a compact feedback label.
-