public interface IDDecoder
Modifier and Type | Field and Description |
---|---|
static int |
INVALID_INDEX
Constant that flags an invalid index, i.e.
|
Modifier and Type | Method and Description |
---|---|
long |
findCellContainingXYZ(double[] pos)
Locate a cell from a global position.
|
long |
findCellContainingXYZ(Hep3Vector pos)
Locate a cell from a global position.
|
BarrelEndcapFlag |
getBarrelEndcapFlag()
Get the flag that indicates barrel or endcap, i.e.
|
int |
getFieldCount()
Get the number of fields in this id description.
|
int |
getFieldIndex(String name)
Get field index by name.
|
String |
getFieldName(int index)
Get field name by index.
|
IDDescriptor |
getIDDescription()
Get the ID description of this decoder.
|
int |
getLayer()
Get the layer number for the current id.
|
long[] |
getNeighbourIDs()
Get the current cell's neighbors using default neighboring parameters (usually
1,1,1).
|
long[] |
getNeighbourIDs(int deltaLayer,
int deltaTheta,
int deltaPhi)
Get the current cell's neighbors using fully specified neighboring parameters.
|
double |
getPhi() |
double[] |
getPosition() |
Hep3Vector |
getPositionVector() |
Subdetector |
getSubdetector()
Get the Subdetector associated with this IDDecoder, or null if not applicable.
|
int |
getSystemID()
Get the system ID, i.e.
|
int |
getSystemNumber()
Deprecated.
Use
getSystemID() instead |
double |
getTheta()
The decoded theta angle of this id.
|
int |
getValue(int index)
Get the value of a field by index.
|
int |
getValue(String field)
Get the value of the given field.
|
int[] |
getValues(int[] buffer)
Get all decoded field values.
|
int |
getVLayer()
Get the layer number, possibly adjusted for topologies such as EcalBarrel.
|
double |
getX() |
double |
getY() |
double |
getZ() |
void |
setID(long id)
Load the decoder with a 64-bit id value from the hit.
|
void |
setIDDescription(IDDescriptor id)
Set the ID description of this decoder.
|
boolean |
supportsNeighbours()
Does this Decoder support cell neighboring?
|
static final int INVALID_INDEX
void setID(long id)
int getValue(String field)
field
- The name of the field.int getValue(int index)
index
- The index into the id.int[] getValues(int[] buffer)
buffer
- The buffer to receive values.int getFieldCount()
String getFieldName(int index)
index
- The index of the field.int getFieldIndex(String name)
name
- The name of the field.void setIDDescription(IDDescriptor id)
id
- The ID description.IDDescriptor getIDDescription()
int getLayer()
int getVLayer()
getLayer()
.Hep3Vector getPositionVector()
double[] getPosition()
double getX()
double getY()
double getZ()
double getPhi()
double getTheta()
long findCellContainingXYZ(Hep3Vector pos)
pos
- The position.long findCellContainingXYZ(double[] pos)
pos
- The position.BarrelEndcapFlag getBarrelEndcapFlag()
int getSystemID()
int getSystemNumber()
getSystemID()
insteadSubdetector getSubdetector()
boolean supportsNeighbours()
long[] getNeighbourIDs()
long[] getNeighbourIDs(int deltaLayer, int deltaTheta, int deltaPhi)
deltaLayer
- The number of layers to neighbor (plus or minus).deltaTheta
- The number of cells in theta to neighbor (plus or minus).deltaPhi
- The number of cells in phi to neighbor (plus or minus).Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.