public class GlobalGridXY 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 |
---|
GlobalGridXY(org.jdom.Element node) |
Modifier and Type | Method and Description |
---|---|
boolean |
boundsCheck(long rawId)
Check if the id is valid, e.g.
|
private void |
computeGlobalX() |
private void |
computeGlobalY() |
private void |
computeGlobalZ()
Compute and cache the global Z of the hit.
|
protected void |
computeLocalPosition()
Similar to super-class implementation but doesn't need to do a global to
local transform into the target shape's coordinate system.
|
protected void |
computePosition()
Compute and cache the cell's global position.
|
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 positionVec)
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, 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 yIndex
private static final String[] fieldNames
public GlobalGridXY(org.jdom.Element node) throws org.jdom.DataConversionException
org.jdom.DataConversionException
public String[] getSegmentationFieldNames()
getSegmentationFieldNames
in class SegmentationBase
protected void computePosition()
AbstractCartesianGrid
computePosition
in class AbstractCartesianGrid
private void computeGlobalX()
private void computeGlobalY()
private void computeGlobalZ()
protected void setSegmentationValues(IExpandedIdentifier geomId, Hep3Vector positionVec)
AbstractCartesianGrid
IExpandedIdentifier
given a local hit position.setSegmentationValues
in class AbstractCartesianGrid
geomId
- The expanded id.positionVec
- The local position of the hit.protected void setupGeomFields(IDDescriptor id)
AbstractCartesianGrid
IDDescriptor
.setupGeomFields
in class AbstractCartesianGrid
id
- The description of the Id.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).public int getXBin(double x)
public int getYBin(double y)
protected void computeLocalPosition()
computeLocalPosition
in class AbstractCartesianGrid
public boolean boundsCheck(long rawId)
AbstractCartesianGrid
boundsCheck
in class AbstractCartesianGrid
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.