Package org.jlab.geom.component
Class ScintillatorPaddle
java.lang.Object
org.jlab.geom.abs.AbstractComponent
org.jlab.geom.component.PrismaticComponent
org.jlab.geom.component.RectangularComponent
org.jlab.geom.component.ScintillatorPaddle
- All Implemented Interfaces:
- Component,- Transformable,- Showable
A scintillator paddle aka scintillator strip. 
 
 This class is an alias of
 RectangularComponent.
- Author:
- jnhankins
- 
Constructor SummaryConstructorsConstructorDescriptionScintillatorPaddle(int componentId, double width, double length, double thickness) Constructs a newScintillatorPaddlecentered on the origin with the direction vector parallel with the y-axis, the midpoint at the origin, the plane on the upstream face with the normal anti-parallel to the z-axis, and the line passing through the midpoints of the top and bottom faces.ScintillatorPaddle(int componentId, Point3D p0, Point3D p1, Point3D p2, Point3D p3, Point3D p4, Point3D p5, Point3D p6, Point3D p7) Constructs a newScintillatorPaddlefrom the given points.
- 
Method SummaryMethods inherited from class org.jlab.geom.component.PrismaticComponentgetDirection, getLength, getLine, getVolumeIntersection, onRotateX, onRotateY, onRotateZ, onTranslateXYZMethods inherited from class org.jlab.geom.abs.AbstractComponentaddVolumeEdge, addVolumePoint, addVolumeTriangleFace, getComponentId, getMidpoint, getNumVolumeEdges, getNumVolumePoints, getVolumeCrossSection, getVolumeEdge, getVolumePoint, getVolumeShape, rotateX, rotateY, rotateZ, show, toString, translateXYZ
- 
Constructor Details- 
ScintillatorPaddlepublic ScintillatorPaddle(int componentId, double width, double length, double thickness) Constructs a newScintillatorPaddlecentered on the origin with the direction vector parallel with the y-axis, the midpoint at the origin, the plane on the upstream face with the normal anti-parallel to the z-axis, and the line passing through the midpoints of the top and bottom faces.- Parameters:
- componentId- the id of the component
- width- the length along the x-axis
- length- the length along the y-axis
- thickness- the length along the z-axis
 
- 
ScintillatorPaddlepublic ScintillatorPaddle(int componentId, Point3D p0, Point3D p1, Point3D p2, Point3D p3, Point3D p4, Point3D p5, Point3D p6, Point3D p7) Constructs a newScintillatorPaddlefrom the given points.The line will be from the middle of the bottom face to the middle of the top face. The midpoint will be at the midpoint of the line. The direction vector will parallel the line. - Parameters:
- componentId- the id of the component
- p0- 1st point of the bottom face
- p1- 2nd point of the bottom face
- p2- 3rd point of the bottom face
- p3- 4th point of the bottom face
- p4- 1st point of the top face
- p5- 2nd point of the top face
- p6- 3rd point of the top face
- p7- 4th point of the top face
 
 
- 
- 
Method Details- 
getTypeReturns "Scintillator Paddle".- Specified by:
- getTypein interface- Component
- Overrides:
- getTypein class- RectangularComponent
- Returns:
- "Scintillator Paddle".
 
 
-