public class NonprojectiveCylinder extends BarrelCylinderSegmentationBase
Modifier and Type | Field and Description |
---|---|
private int |
barrelIndex |
private static String[] |
fieldNames |
private double |
gridSizePhi |
private double |
gridSizeZ |
private int |
phiIndex |
private int |
systemIndex |
private int |
zIndex |
cellSizes
decoder, descriptor, detector, layerIndex, valid, values
INVALID_INDEX
Constructor and Description |
---|
NonprojectiveCylinder(org.jdom.Element node)
Creates a new instance of NonprojectiveCylinder
|
Modifier and Type | Method and Description |
---|---|
double |
computeDeltaPhiForLayer() |
double |
computeDeltaPhiForLayer(int layer) |
long |
findCellContainingXYZ(double x,
double y,
double z)
Return the cell which contains a given point (x,y,z), or zero.
|
double |
getCellSizeU() |
double |
getCellSizeV() |
double |
getGridSizePhi() |
double |
getGridSizeZ() |
long[] |
getNeighbourIDs(int layerRange,
int zRange,
int phiRange)
Find neighbouring cells to the current cell.
|
double |
getPhi() |
int |
getPhiBin(int ilay,
double phi) |
private double |
getRadiusSensitiveMid(int ilay)
Returns cylindrical radius to center of sensitive slice of any layer
|
String[] |
getSegmentationFieldNames() |
double |
getTheta()
The decoded theta angle of this id.
|
double |
getX() |
double |
getY() |
double |
getZ() |
int |
getZBin(double z) |
(package private) void |
setGridSizePhi(double gsp) |
(package private) void |
setGridSizeZ(double gsz) |
void |
setIDDescription(IDDescriptor id)
Set the ID description of this decoder.
|
boolean |
supportsNeighbours()
Does this Decoder support cell neighboring?
|
getLayerBin
findCellContainingXYZ, findCellContainingXYZ, getDistanceToSensitive, getID, getLayering, getNumberOfLayers, getRMax, getRMin, getZMax, getZMin, transformLocalToGlobal
useForHitPosition
getBarrelEndcapFlag, getDecoder, getFieldCount, getFieldIndex, getFieldName, getIDDescription, getLayer, getNeighbourIDs, getPosition, getPositionVector, getSubdetector, getSystemID, getSystemNumber, getValue, getValue, getValues, getVLayer, isValid, setID, setSubdetector, toString
private double gridSizePhi
private double gridSizeZ
private int zIndex
private int phiIndex
private int systemIndex
private int barrelIndex
private static final String[] fieldNames
public NonprojectiveCylinder(org.jdom.Element node) throws org.jdom.DataConversionException
org.jdom.DataConversionException
public String[] getSegmentationFieldNames()
getSegmentationFieldNames
in class SegmentationBase
public double getCellSizeU()
getCellSizeU
in class Segmentation
public double getCellSizeV()
getCellSizeV
in class Segmentation
void setGridSizePhi(double gsp)
void setGridSizeZ(double gsz)
public double getGridSizePhi()
public double getGridSizeZ()
public double getPhi()
getPhi
in interface IDDecoder
getPhi
in class BaseIDDecoder
public double getTheta()
IDDecoder
getTheta
in interface IDDecoder
getTheta
in class BaseIDDecoder
public double getX()
getX
in interface IDDecoder
getX
in class BaseIDDecoder
public double getY()
getY
in interface IDDecoder
getY
in class BaseIDDecoder
public double getZ()
getZ
in interface IDDecoder
getZ
in class BaseIDDecoder
public double computeDeltaPhiForLayer(int layer)
public double computeDeltaPhiForLayer()
public void setIDDescription(IDDescriptor id)
IDDecoder
setIDDescription
in interface IDDecoder
setIDDescription
in class BaseIDDecoder
id
- The ID description.public boolean supportsNeighbours()
IDDecoder
supportsNeighbours
in interface IDDecoder
supportsNeighbours
in class SegmentationBase
public long[] getNeighbourIDs(int layerRange, int zRange, int phiRange)
getNeighbourIDs
in interface IDDecoder
getNeighbourIDs
in class BaseIDDecoder
layerRange
- The number of layers to neighbor (plus or minus).zRange
- The number of cells in theta to neighbor (plus or minus).phiRange
- The number of cells in phi to neighbor (plus or minus).public long findCellContainingXYZ(double x, double y, double z)
findCellContainingXYZ
in class SegmentationBase
x
- Cartesian X coordinate.y
- Cartesian Y coordinate.z
- Cartesian Z coordinate.public int getPhiBin(int ilay, double phi)
public int getZBin(double z)
private double getRadiusSensitiveMid(int ilay)
layer
- layer indexCopyright © 2016 Linear Collider Detector (LCD). All rights reserved.