Class Cluster

All Implemented Interfaces:
Serializable, Cloneable, Iterable<Hit>, Collection<Hit>, List<Hit>, RandomAccess

public class Cluster extends ArrayList<Hit>
A cluster in the DC consists of an array of hits that are grouped together according to the algorithm of the ClusterFinder class
Author:
ziegler
See Also:
  • Constructor Details

    • Cluster

      public Cluster(int sector, int superlayer, int cid)
      Parameters:
      sector - the sector (1...6)
      superlayer - the superlayer (1...6)
      cid - the cluster ID, an incremental integer corresponding to the cluster formed in the series of clusters
  • Method Details

    • newCluster

      public Cluster newCluster(Hit hit, int cid)
      Parameters:
      hit - the first hit in the list of hits composing the cluster
      cid - the id of the cluster
      Returns:
      an array list of hits characterized by its sector, superlayer and id number.
    • get_Sector

      public int get_Sector()
      Returns:
      the sector of the cluster (1...6)
    • set_Sector

      public void set_Sector(int _Sector)
      Parameters:
      _Sector - sector of the cluster (1...6)
    • get_Superlayer

      public int get_Superlayer()
      Returns:
      the superlayer of the cluster (1...6)
    • set_Superlayer

      public void set_Superlayer(int _Superlayer)
      Parameters:
      _Superlayer - the superlayer of the cluster (1...6)
    • get_Id

      public int get_Id()
      Returns:
      the id of the cluster
    • set_Id

      public void set_Id(int _Id)
      Parameters:
      _Id - the id of the cluster
    • get_Region

      public int get_Region()
      Returns:
      region (1...3)
    • get_RegionSlayer

      public int get_RegionSlayer()
      Returns:
      superlayer 1 or 2 in region (1...3)
    • get_MinWire

      public int get_MinWire()
      Returns:
      the min wire of the cluster (1...112)
    • set_MinWire

      public void set_MinWire(int _MinWire)
      Parameters:
      _MinWire - min wire of the cluster (1...112)
    • get_MaxWire

      public int get_MaxWire()
      Returns:
      the max wire of the cluster (1...112)
    • set_MaxWire

      public void set_MaxWire(int _MaxWire)
      Parameters:
      _MaxWire - max wire of the cluster (1...112)
    • printInfo

      public String printInfo()
      Returns:
      cluster info. about location and number of hits contained in it