public static final class EcalChannel.GeometryId extends AbstractIdentifier
GeometryId
contains the x and y indices of the crystal in the LCSIM-based geometry
representation.Modifier and Type | Field and Description |
---|---|
private org.lcsim.detector.identifier.IIdentifierHelper |
helper
The helper for using identifiers.
|
private int |
system
The subdetector system ID.
|
private int |
x
The crystal's X index.
|
private int |
y
The crystal's Y index.
|
Constructor and Description |
---|
GeometryId(org.lcsim.detector.identifier.IIdentifierHelper helper,
int[] values)
Create a geometry ID.
|
Modifier and Type | Method and Description |
---|---|
long |
encode()
Encode this ID as a long using the ID helper.
|
boolean |
isValid()
Return
true if ID is valid |
private final org.lcsim.detector.identifier.IIdentifierHelper helper
private int system
private int x
private int y
public GeometryId(org.lcsim.detector.identifier.IIdentifierHelper helper, int[] values)
helper
- the ID helpervalues
- the list of values (order is system, x, y)public long encode()
encode
in class AbstractIdentifier
public boolean isValid()
true
if ID is validisValid
in class AbstractIdentifier
true
if ID is validCopyright © 2019. All rights reserved.