public class CartesianGridXY extends AbstractCartesianGrid
Modifier and Type | Field and Description |
---|---|
private static String[] |
fieldNames |
private int |
xIndex |
private int |
yIndex |
geomFields, globalPosition, gridSizeX, gridSizeY, gridSizeZ, localPosition, needsCompute, sensitiveSlices, sliceIndex
cellSizes
decoder, descriptor, detector, layerIndex, valid, values
INVALID_INDEX
Constructor and Description |
---|
CartesianGridXY(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 |
computeLocalY() |
double |
getGridSizeX() |
double |
getGridSizeY() |
long[] |
getNeighbourIDs(int layerRange,
int xRange,
int yRange)
Get the current cell's neighbors using fully specified neighboring parameters.
|
String[] |
getSegmentationFieldNames() |
int |
getXBin(double x) |
int |
getYBin(double y) |
protected void |
setSegmentationValues(IExpandedIdentifier geomId,
Hep3Vector localPositionVec)
Set the segmentation field values on the given
IExpandedIdentifier given a local hit position. |
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, 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 yIndex
private static final String[] fieldNames
public CartesianGridXY(org.jdom.Element node) throws org.jdom.DataConversionException
org.jdom.DataConversionException
public String[] getSegmentationFieldNames()
getSegmentationFieldNames
in class SegmentationBase
public double getGridSizeX()
getGridSizeX
in class AbstractCartesianGrid
public double getGridSizeY()
getGridSizeY
in class AbstractCartesianGrid
public long[] getNeighbourIDs(int layerRange, int xRange, int yRange)
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).yRange
- 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 getYBin(double y)
public boolean boundsCheck(long rawId)
AbstractCartesianGrid
boundsCheck
in class AbstractCartesianGrid
public void setupGeomFields(IDDescriptor id)
AbstractCartesianGrid
IDDescriptor
.setupGeomFields
in class AbstractCartesianGrid
id
- The description of the Id.private void computeLocalX()
private void computeLocalY()
protected void computeLocalPosition()
AbstractCartesianGrid
localPosition
array.computeLocalPosition
in class AbstractCartesianGrid
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.