hep.lcd.geometry
Class CalorimeterCellNewTag
java.lang.Object
|
+--hep.lcd.geometry.AbstractCalorimeterCell
|
+--hep.lcd.geometry.CalorimeterCellNewTag
- public class CalorimeterCellNewTag
- extends hep.lcd.geometry.AbstractCalorimeterCell
A CalorimeterCell with deals with the new tower id definition
- Source Code:
- CalorimeterCellNewTag.java
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
protected int id
det
protected Detector det
comp
protected SegmentedDetectorComponent comp
CalorimeterCellNewTag
public CalorimeterCellNewTag(Detector det)
CalorimeterCellNewTag
public CalorimeterCellNewTag(Detector det,
int id)
getNeighbouringCells
public int[] getNeighbouringCells()
- Returns an array of towerID's for the neighbouring cells
findComponent
protected SegmentedDetectorComponent findComponent()
- Overrides:
findComponent in class hep.lcd.geometry.AbstractCalorimeterCell
getThetaBin
public final int getThetaBin()
getPhiBin
public final int getPhiBin()
getLayer
public final int getLayer()
getSystem
public final int getSystem()
isEndcap
public final boolean isEndcap()
isNorth
public final boolean isNorth()
setTowerID
public void setTowerID(int id)
- Description copied from interface:
CalorimeterCell
- Set the current id
- Specified by:
setTowerID in interface CalorimeterCell
getTowerID
public int getTowerID()
- Specified by:
getTowerID in interface CalorimeterCell
getCosTheta
public double getCosTheta()
- Specified by:
getCosTheta in interface CalorimeterCell
getTheta
public double getTheta()
- Specified by:
getTheta in interface CalorimeterCell
getPhi
public double getPhi()
- Specified by:
getPhi in interface CalorimeterCell
getZ
public double getZ()
- Specified by:
getZ in interface CalorimeterCell
getX
public double getX()
- Specified by:
getX in interface CalorimeterCell
getY
public double getY()
- Specified by:
getY in interface CalorimeterCell
getPosition
public double[] getPosition()
- Specified by:
getPosition in interface CalorimeterCell
- Following copied from interface:
hep.lcd.geometry.CalorimeterCell
- Returns:
- {x,y,z} as an array
getComponent
public final SegmentedDetectorComponent getComponent()
- Specified by:
getComponent in interface CalorimeterCell
findFirstBit
protected static int findFirstBit(int mask)
The LCD Group