public class HPSEcal3
extends org.lcsim.geometry.compact.Subdetector
Modifier and Type | Class and Description |
---|---|
private static class |
HPSEcal3.CrystalRange |
static class |
HPSEcal3.NeighborMap |
(package private) static class |
HPSEcal3.XY |
Modifier and Type | Field and Description |
---|---|
private HPSEcal3.NeighborMap |
neighborMap |
private int |
nx |
private int |
ny |
private boolean |
oddX |
(package private) List<HPSEcal3.CrystalRange> |
removeCrystals |
Constructor and Description |
---|
HPSEcal3(org.jdom.Element node) |
Modifier and Type | Method and Description |
---|---|
void |
appendHepRep(HepRepFactory factory,
HepRep heprep) |
private boolean |
checkRange(int ix,
int iy,
List<HPSEcal3.CrystalRange> ranges) |
HPSEcal3.NeighborMap |
getNeighborMap()
Create a map of crystal IDs to the
Set of neighbor crystal IDs. |
(package private) Set<HPSEcal3.XY> |
getNeighbors(int ix,
int iy) |
(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) |
private boolean |
isValidXY(int ix,
int iy) |
(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 boolean oddX
List<HPSEcal3.CrystalRange> removeCrystals
private HPSEcal3.NeighborMap neighborMap
HPSEcal3(org.jdom.Element node) throws org.jdom.JDOMException
org.jdom.JDOMException
private boolean isValidXY(int ix, int iy)
private boolean checkRange(int ix, int iy, List<HPSEcal3.CrystalRange> ranges)
public double nx()
public double ny()
Set<Long> getNeighbors(Long id)
id
- The cell ID.Set
containing the cell's neighbors.Set<HPSEcal3.XY> getNeighbors(int ix, int iy)
boolean isValidY(int iy)
boolean isValidX(int ix)
public HPSEcal3.NeighborMap getNeighborMap()
Set
of neighbor crystal IDs.public void appendHepRep(HepRepFactory factory, HepRep heprep)
appendHepRep
in interface org.lcsim.geometry.HepRepProvider
Copyright © 2019. All rights reserved.