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 TypeMethodDescriptionint
get_Id()
int
int
int
int
int
int
newCluster
(Hit hit, int cid) void
set_Id
(int _Id) void
set_MaxWire
(int _MaxWire) void
set_MinWire
(int _MinWire) void
set_Sector
(int _Sector) void
set_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, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods 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
-