Package org.jlab.rec.dc.cluster
Class Cluster
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<Hit>,Collection<Hit>,List<Hit>,RandomAccess
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:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintget_Id()intintintintintintnewCluster(Hit hit, int cid) voidset_Id(int _Id) voidset_MaxWire(int _MaxWire) voidset_MinWire(int _MinWire) voidset_Sector(int _Sector) voidset_Superlayer(int _Superlayer) Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll
-
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
- Parameters:
hit- the first hit in the list of hits composing the clustercid- 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
- Returns:
- cluster info. about location and number of hits contained in it
-