public class CartesianGridXZ extends AbstractCartesianGrid
Modifier and Type | Field and Description |
---|---|
private static String[] |
fieldNames |
private int |
xIndex |
private int |
zIndex |
geomFields, globalPosition, gridSizeX, gridSizeY, gridSizeZ, localPosition, needsCompute, sensitiveSlices, sliceIndex
cellSizes
decoder, descriptor, detector, layerIndex, valid, values
INVALID_INDEX
Constructor and Description |
---|
CartesianGridXZ(org.jdom.Element node) |
Modifier and Type | Method and Description |
---|---|
boolean |
boundsCheck(long rawId)
Check if the id is valid, e.g.
|
protected void |
computeLocalPosition()
Using the current ID, compute the local position in the readout volume
and set the internal
localPosition array. |
private void |
computeLocalX() |
private void |
computeLocalZ() |
long[] |
getNeighbourIDs(int layerRange,
int xRange,
int zRange)
Get the current cell's neighbors using fully specified neighboring parameters.
|
String[] |
getSegmentationFieldNames() |
int |
getXBin(double x) |
int |
getZBin(double z) |
protected void |
setSegmentationValues(IExpandedIdentifier geomId,
Hep3Vector localPositionVec)
Set the segmentation field values on the given
IExpandedIdentifier given a local hit position. |
protected void |
setupGeomFields(IDDescriptor id)
Make a list of fields that are geometric by stripping out this
segmentation's fields from the given
IDDescriptor . |
computeCoordinate, computeGlobalPosition, computePosition, findCellContainingXYZ, getBin, getGridSizeX, getGridSizeY, getGridSizeZ, getNeighbourIDs, getPosition, getX, getY, getZ, initSensitiveSlices, makeGeometryIdentifier, setID, setIDDescription, supportsNeighbours
findCellContainingXYZ, findCellContainingXYZ, getDistanceToSensitive, getID, getLayering, getNumberOfLayers, getRMax, getRMin, getZMax, getZMin, transformLocalToGlobal
getCellSizeU, getCellSizeV, useForHitPosition
getBarrelEndcapFlag, getDecoder, getFieldCount, getFieldIndex, getFieldName, getIDDescription, getLayer, getNeighbourIDs, getPhi, getPositionVector, getSubdetector, getSystemID, getSystemNumber, getTheta, getValue, getValue, getValues, getVLayer, isValid, setSubdetector, toString
private int xIndex
private int zIndex
private static final String[] fieldNames
public CartesianGridXZ(org.jdom.Element node) throws org.jdom.DataConversionException
org.jdom.DataConversionException
public String[] getSegmentationFieldNames()
getSegmentationFieldNames
in class SegmentationBase
public long[] getNeighbourIDs(int layerRange, int xRange, int zRange)
IDDecoder
getNeighbourIDs
in interface IDDecoder
getNeighbourIDs
in class BaseIDDecoder
layerRange
- The number of layers to neighbor (plus or minus).xRange
- The number of cells in theta to neighbor (plus or minus).zRange
- The number of cells in phi to neighbor (plus or minus).protected void setSegmentationValues(IExpandedIdentifier geomId, Hep3Vector localPositionVec)
AbstractCartesianGrid
IExpandedIdentifier
given a local hit position.setSegmentationValues
in class AbstractCartesianGrid
geomId
- The expanded id.localPositionVec
- The local position of the hit.public int getXBin(double x)
public int getZBin(double z)
public boolean boundsCheck(long rawId)
AbstractCartesianGrid
boundsCheck
in class AbstractCartesianGrid
protected void setupGeomFields(IDDescriptor id)
AbstractCartesianGrid
IDDescriptor
.setupGeomFields
in class AbstractCartesianGrid
id
- The description of the Id.private void computeLocalX()
private void computeLocalZ()
protected void computeLocalPosition()
AbstractCartesianGrid
localPosition
array.computeLocalPosition
in class AbstractCartesianGrid
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.