public abstract class AbstractTestBeam extends AbstractLayeredSubdetector
Modifier and Type | Field and Description |
---|---|
(package private) int |
DEFAULT_NSIDES |
(package private) double |
dimensionX |
(package private) double |
dimensionY |
(package private) double |
dimensionZ |
(package private) Hep3Vector |
position |
(package private) double |
radius |
(package private) IRotation3D |
rotation |
(package private) ITransform3D |
transform |
layering
Constructor and Description |
---|
AbstractTestBeam(org.jdom.Element node)
The constructor taking an XML element.
|
Modifier and Type | Method and Description |
---|---|
private void |
addHepRepPoint(HepRepFactory factory,
HepRepInstance instance,
double x,
double y,
double z)
Add a point to the HepRep output.
|
void |
appendHepRep(HepRepFactory factory,
HepRep heprep)
Create an outline of the detector's envelope volume in HepRep format for display in Wired.
|
private void |
build(org.jdom.Element node)
Build the detector from XML.
|
private void |
computeDimensions(org.jdom.Element dimensions)
Compute the dimensions of the detector.
|
private double |
computeRadius()
Compute the maximum radius of the detector
|
double |
getDimensionX()
Return the width in X.
|
double |
getDimensionY()
Return the width in Y.
|
double |
getDimensionZ()
Return the width in Z.
|
double |
getInnerRadius()
Get the inner radius of the TestBeam, which is always 0.
|
double |
getInnerZ()
This method is not implemented for this type.
|
int |
getNumberOfSides()
Get the number of sides.
|
double |
getOuterRadius()
Get the outer radius of the envelope volume.
|
double |
getOuterZ()
This method is not implemented for this type.
|
Hep3Vector |
getPosition()
Return the position of the detector in global coordinates.
|
IRotation3D |
getRotation()
Return the rotation of the detector in global coordinates.
|
double |
getSectionPhi()
Get the section phi, which is 0 because test beams do not have modules in phi.
|
double |
getZLength()
Get the z length of the TestBeam.
|
private void |
setPosition(org.jdom.Element node)
Set the position from XML data.
|
private void |
setRotation(org.jdom.Element node)
Set the detector's rotation from XML data.
|
private void |
setTransform()
Set the transform combining the position and rotation.
|
getDe, getDistanceToLayer, getDistanceToSensor, getInteractionLengths, getInteractionLengths, getLayer, getLayering, getLayerThickness, getNumberOfLayers, getRadiationLengths, getRadiationLengths, getSensorThickness, getTotalThickess, isLayered, setLayering
getDetectorElement, getDigiHitsCollectionName, getHitsCollectionName, getIDDecoder, getName, getNode, getReadout, getReflect, getSystemID, getVisAttributes, isBarrel, isCalorimeter, isEndcap, isInsideTrackingVolume, isTracker, setDetectorElement, setDigiHitsCollectionName, setReadout, setVisAttributes, transformLocalToGlobal
double dimensionX
double dimensionY
double dimensionZ
double radius
int DEFAULT_NSIDES
Hep3Vector position
IRotation3D rotation
ITransform3D transform
public AbstractTestBeam(org.jdom.Element node) throws org.jdom.JDOMException
node
- The XML element for the detector in the compact description.org.jdom.JDOMException
- If XML parsing fails.private void build(org.jdom.Element node) throws org.jdom.JDOMException
node
- The XML node.org.jdom.JDOMException
- if there is a problem parsing parameters.private void setTransform()
public double getDimensionX()
public double getDimensionY()
public double getDimensionZ()
public Hep3Vector getPosition()
public IRotation3D getRotation()
public void appendHepRep(HepRepFactory factory, HepRep heprep)
appendHepRep
in interface HepRepProvider
appendHepRep
in class AbstractSubdetector
public int getNumberOfSides()
public double getSectionPhi()
public double getInnerZ()
public double getOuterZ()
public double getOuterRadius()
public double getInnerRadius()
public double getZLength()
private void addHepRepPoint(HepRepFactory factory, HepRepInstance instance, double x, double y, double z)
factory
- the HepRepFactory objectinstance
- the HepRepInstance objectx
- the x value of the pointy
- the y value of the pointz
- the z value of the pointprivate void computeDimensions(org.jdom.Element dimensions) throws org.jdom.DataConversionException
dimensions
- The XML element containing the dimension settings.org.jdom.DataConversionException
- if there was a problem converting from XML valuesprivate double computeRadius()
private void setPosition(org.jdom.Element node) throws org.jdom.DataConversionException
node
- the XML elementorg.jdom.DataConversionException
- if there is a problem converting XML parametersprivate void setRotation(org.jdom.Element node) throws org.jdom.DataConversionException
node
- the XML elementorg.jdom.DataConversionException
- if there is a problem converting XML parametersCopyright © 2016 Linear Collider Detector (LCD). All rights reserved.