Package org.jlab.rec.fmt.cluster
Class Cluster
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Cluster>
,Iterable<Hit>
,Collection<Hit>
,List<Hit>
,RandomAccess
A cluster in the fmt consists of an array of hits that are grouped together
according to the algorithm of the ClusterFinder class
- Author:
- ziegler, benkel, devita
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
calc_CentroidParams
(boolean eweight) Sets energy-weighted parameters; these are the strip centroid (energy-weighted) valuecalcCross
(double x, double y, double z) int
double
distance
(double x, double y, double z) double
findClusters
(List<Hit> hits) double
double
double
int
double
getDoca()
int
getIndex()
int
getLayer()
int
int
int
double
int
int
double
double
getTime()
double
int
void
setCentroid
(double _Centroid) void
setCentroidError
(double _CentroidError) void
setCentroidResidual
(double trackLocalY) void
setCrossIndex
(int _AssociatedCrossIndex) void
setDoca
(double Doca) void
setGlobalSegment
(Line3D segment) void
setIndex
(int _index) void
setLayer
(int _Layer) void
setLocalSegment
(Line3D segment) void
setMaxStrip
(int _MaxStrip) void
setMinStrip
(int _MinStrip) void
setSeedEnergy
(double _SeedEnergy) void
setSeedIndex
(int _SeedIndex) void
setSeedStrip
(int _SeedStrip) void
setSeedTime
(double _SeedTime) void
setTime
(double _Time) void
setTotalEnergy
(double _TotalEnergy) void
setTrackIndex
(int _AssociatedTrackIndex) toString()
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
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 layer, int index) - Parameters:
layer
- the layerindex
-
-
-
Method Details
-
getLayer
public int getLayer()- Returns:
- the layer of the cluster (1...6)
-
setLayer
public void setLayer(int _Layer) - Parameters:
_Layer
-
-
getRegion
public int getRegion()- Returns:
- region (1...4)
-
getIndex
public int getIndex() -
setIndex
public void setIndex(int _index) -
getDoca
public double getDoca() -
setDoca
public void setDoca(double Doca) -
getCentroid
public double getCentroid() -
setCentroid
public void setCentroid(double _Centroid) -
getCentroidError
public double getCentroidError() -
setCentroidError
public void setCentroidError(double _CentroidError) -
getCentroidResidual
public double getCentroidResidual() -
setCentroidResidual
public void setCentroidResidual(double trackLocalY) -
getTotalEnergy
public double getTotalEnergy() -
setTotalEnergy
public void setTotalEnergy(double _TotalEnergy) -
getTime
public double getTime() -
setTime
public void setTime(double _Time) -
getMinStrip
public int getMinStrip() -
setMinStrip
public void setMinStrip(int _MinStrip) -
getMaxStrip
public int getMaxStrip() -
setMaxStrip
public void setMaxStrip(int _MaxStrip) -
getSeedStrip
public int getSeedStrip() -
setSeedStrip
public void setSeedStrip(int _SeedStrip) -
getSeedEnergy
public double getSeedEnergy() -
setSeedEnergy
public void setSeedEnergy(double _SeedEnergy) -
getSeedTime
public double getSeedTime() -
setSeedTime
public void setSeedTime(double _SeedTime) -
getSeedIndex
public int getSeedIndex() -
setSeedIndex
public void setSeedIndex(int _SeedIndex) -
getGlobalSegment
-
setGlobalSegment
-
getLocalSegment
-
setLocalSegment
-
getCrossIndex
public int getCrossIndex() -
setCrossIndex
public void setCrossIndex(int _AssociatedCrossIndex) -
getTrackIndex
public int getTrackIndex() -
setTrackIndex
public void setTrackIndex(int _AssociatedTrackIndex) -
findClusters
-
calc_CentroidParams
public void calc_CentroidParams(boolean eweight) Sets energy-weighted parameters; these are the strip centroid (energy-weighted) value- Parameters:
eweight
- set to true for energy weighting
-
distance
public double distance(double x, double y, double z) -
distance
-
calcCross
-
calcCross
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Cluster>
-
toStringBrief
- Returns:
- cluster info. about location and number of hits contained in it
-
toString
- Overrides:
toString
in classAbstractCollection<Hit>
-