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

Field Summary
protected  SegmentedDetectorComponent comp
           
protected  Detector det
           
protected  int id
           
 
Constructor Summary
CalorimeterCellNewTag(Detector det)
           
CalorimeterCellNewTag(Detector det, int id)
           
 
Method Summary
protected  SegmentedDetectorComponent findComponent()
           
protected static int findFirstBit(int mask)
           
 SegmentedDetectorComponent getComponent()
           
 double getCosTheta()
           
 int getLayer()
           
 int[] getNeighbouringCells()
          Returns an array of towerID's for the neighbouring cells
 double getPhi()
           
 int getPhiBin()
           
 double[] getPosition()
           
 int getSystem()
           
 double getTheta()
           
 int getThetaBin()
           
 int getTowerID()
           
 double getX()
           
 double getY()
           
 double getZ()
           
 boolean isEndcap()
           
 boolean isNorth()
           
 void setTowerID(int id)
          Set the current id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected int id

det

protected Detector det

comp

protected SegmentedDetectorComponent comp
Constructor Detail

CalorimeterCellNewTag

public CalorimeterCellNewTag(Detector det)

CalorimeterCellNewTag

public CalorimeterCellNewTag(Detector det,
                             int id)
Method Detail

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