hep.lcd.recon.cluster.radial.cl
Class CalCellCollection

java.lang.Object
  |
  +--hep.lcd.recon.cluster.radial.cl.CalCellCollection

public class CalCellCollection
extends Object

Collection of hit calorimeter cells (cells arise from a binning of detector elements) used to form clusters. Although formally public, this class is in spirit internal to RadialCluster.

Author:
Joanne Bogart
See Also:
RadialClusterBuilder
Source Code:
CalCellCollection.java

Inner Class Summary
 class CalCellCollection.CalCell
          Nested class for individual cell in a collection.
 
Field Summary
protected  CalCellCollection.CalCell[] m_cells
           
protected  Hashtable m_table
           
protected  boolean sorted
           
 
Constructor Summary
CalCellCollection(Calorimeter detBrl, Calorimeter detEc, CellWidths widths)
          Constructor for case when cell binning and detector segmentation can all be supplied at once.
CalCellCollection(CellWidths widths)
          Save cell binning information supplied in
 
Method Summary
 void addToCell(CalorimeterHit hit)
          Find appropriate cell; add argument hit to it
 void clearAll()
          Get ready for next event
 void SetDetectors(Calorimeter detBrl, Calorimeter detEc)
          Once detector segmentation is known, can do a bunch of initialization.
 void setFileOutput(PrintWriter pw)
          Determine if we write to a file or not Method for setting file for diagnostic output.
 void setOutput(PrintWriter jasOut)
          Method for allowing diagnostic output, typically to console
 void showDetectorDerived()
          Diagnostic
 void sortByEnergy()
          Sort each cell subcollection (i.e., one subcollection per layer bin) w.r.t energy.
 void sortByEnergy(int layerBin)
          Sorts one of the subcollections (for single layer bin) by energy
 void sortCells()
          For each layer group, sort cells by energy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_table

protected Hashtable m_table

m_cells

protected CalCellCollection.CalCell[] m_cells

sorted

protected boolean sorted
Constructor Detail

CalCellCollection

public CalCellCollection(CellWidths widths)
Save cell binning information supplied in
Parameters:
widths -  
See Also:
CellWidths

CalCellCollection

public CalCellCollection(Calorimeter detBrl,
                         Calorimeter detEc,
                         CellWidths widths)
Constructor for case when cell binning and detector segmentation can all be supplied at once.
Method Detail

SetDetectors

public void SetDetectors(Calorimeter detBrl,
                         Calorimeter detEc)
Once detector segmentation is known, can do a bunch of initialization.

showDetectorDerived

public void showDetectorDerived()
Diagnostic

setFileOutput

public void setFileOutput(PrintWriter pw)
Determine if we write to a file or not Method for setting file for diagnostic output. May only be used when running stand-alone.

setOutput

public void setOutput(PrintWriter jasOut)
Method for allowing diagnostic output, typically to console

sortByEnergy

public void sortByEnergy()
Sort each cell subcollection (i.e., one subcollection per layer bin) w.r.t energy.

sortByEnergy

public void sortByEnergy(int layerBin)
Sorts one of the subcollections (for single layer bin) by energy

addToCell

public void addToCell(CalorimeterHit hit)
Find appropriate cell; add argument hit to it

sortCells

public void sortCells()
For each layer group, sort cells by energy

clearAll

public void clearAll()
Get ready for next event


The LCD Group