public class HPSEcal
extends org.lcsim.geometry.compact.Subdetector
Modifier and Type | Class and Description |
---|---|
static class |
HPSEcal.NeighborMap |
(package private) static class |
HPSEcal.XYSide |
Modifier and Type | Field and Description |
---|---|
private double |
beamgap |
private double |
dface |
private HPSEcal.NeighborMap |
neighborMap |
private int |
nx |
private int |
ny |
private boolean |
oddX |
Constructor and Description |
---|
HPSEcal(org.jdom.Element node) |
Modifier and Type | Method and Description |
---|---|
void |
appendHepRep(HepRepFactory arg0,
HepRep arg1) |
double |
beamGap() |
double |
distanceToFace() |
HPSEcal.NeighborMap |
getNeighborMap()
Create a map of crystal IDs to the
Set of neighbor crystal IDs. |
(package private) Set<HPSEcal.XYSide> |
getNeighbors(int ix,
int iy,
int side) |
(package private) Set<Long> |
getNeighbors(Long id)
Get the neighbors for a given cell ID.
|
(package private) Set<Integer> |
getXNeighbors(int ix) |
(package private) Set<Integer> |
getYNeighbors(int iy) |
(package private) boolean |
isValidX(int ix) |
(package private) boolean |
isValidY(int iy) |
double |
nx()
The number of crystals in X in one section.
|
double |
ny()
The number of crystals in y in one section.
|
getDetectorElement, getDigiHitsCollectionName, getHitsCollectionName, getIDDecoder, getLayering, getName, getNode, getReadout, getReflect, getSystemID, getVisAttributes, isBarrel, isCalorimeter, isEndcap, isInsideTrackingVolume, isLayered, isTracker, setDetectorElement, setDigiHitsCollectionName, setReadout, setVisAttributes, transformLocalToGlobal
private int nx
private int ny
private double beamgap
private double dface
private boolean oddX
private HPSEcal.NeighborMap neighborMap
HPSEcal(org.jdom.Element node) throws org.jdom.JDOMException
org.jdom.JDOMException
public double distanceToFace()
public double beamGap()
public double nx()
public double ny()
Set<Long> getNeighbors(Long id)
id
- The cell ID.Set
containing the cell's neighbors.Set<HPSEcal.XYSide> getNeighbors(int ix, int iy, int side)
boolean isValidY(int iy)
boolean isValidX(int ix)
public HPSEcal.NeighborMap getNeighborMap()
Set
of neighbor crystal IDs.public void appendHepRep(HepRepFactory arg0, HepRep arg1)
appendHepRep
in interface org.lcsim.geometry.HepRepProvider
Copyright © 2019. All rights reserved.