Package org.jlab.rec.dc.cluster
Class FittedCluster
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<FittedCluster>
,Iterable<FittedHit>
,Collection<FittedHit>
,List<FittedHit>
,RandomAccess
A fitted cluster in the DC consists of an array of hits that are grouped
together according to the algorithm of the ClusterFinder class and have been
fit using the wire position information and subsequent time-based information
(at the midplane)
- Author:
- ziegler
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Cluster comparator based on number of hits in the clusterdouble
double
double
double
double
double
double
double
double
double
double
int
get_Id()
int
int
int
int[][]
int
int
double
void
set_Chisq
(double _Chisq) void
set_clusLine
(Line3D _clusLine) Sets the cluster line defined as a point on the line and a unit direction vector along the linevoid
set_clusLineErr
(Line3D _clusLineErr) Sets the error on the cluster line - where the line is defined as a point on the line and a unit direction vector along the linevoid
set_clusterLineFitIntercept
(double _clusterLineFitIntercept) Sets the intercept of the line fitted to the clustervoid
set_clusterLineFitInterceptErr
(double _clusterLineFitinterceptErr) void
set_clusterLineFitInterceptErrMP
(double _clusterLineFitInterceptErrMP) void
set_clusterLineFitInterceptMP
(double _clusterLineFitInterceptMP) void
set_clusterLineFitSlIntCov
(double _clusterLineFitSlIntCov) void
set_clusterLineFitSlope
(double _clusterLineFitSlope) Sets the slope of the line fitted to the clustervoid
set_clusterLineFitSlopeErr
(double _clusterLineFitSlopeErr) void
set_clusterLineFitSlopeErrMP
(double _clusterLineFitSlopeErrMP) void
set_clusterLineFitSlopeMP
(double _clusterLineFitSlopeMP) void
set_fitProb
(double _fitChisq) Sets the fit chi^2 probvoid
set_Id
(int _Id) Sets the cluster ID, which is theindex (in the sequence of formed clusters)void
set_Sector
(int _Sector) Sets the sectorvoid
set_Status
(int[][] _Status) void
set_Superlayer
(int _Superlayer) Sets the superlayerMethods 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
-
FittedCluster
- Parameters:
rawCluster
- a Cluster fit using hit-based tracking information
-
-
Method Details
-
get_Sector
public int get_Sector()- Returns:
- the sector (1...6)
-
set_Sector
public void set_Sector(int _Sector) Sets the sector- Parameters:
_Sector
- the sector (1...6)
-
get_Superlayer
public int get_Superlayer()- Returns:
- the superlayer (1...6)
-
set_Superlayer
public void set_Superlayer(int _Superlayer) Sets the superlayer- Parameters:
_Superlayer
- the superlayer (1...6)
-
get_Id
public int get_Id()- Returns:
- the cluster ID (index in the sequence of formed clusters)
-
set_Id
public void set_Id(int _Id) Sets the cluster ID, which is theindex (in the sequence of formed clusters)- Parameters:
_Id
- the cluster ID
-
get_Status
public int[][] get_Status() -
set_Status
public void set_Status(int[][] _Status) -
get_clusLine
- Returns:
- the line corresponding to the linear fit to the cluster hits
-
set_clusLine
Sets the cluster line defined as a point on the line and a unit direction vector along the line- Parameters:
_clusLine
- the cluster line
-
get_clusLineErr
- Returns:
- the line corresponding to the linear fit to the cluster hits
-
set_clusLineErr
Sets the error on the cluster line - where the line is defined as a point on the line and a unit direction vector along the line- Parameters:
_clusLineErr
- the cluster line error
-
get_fitProb
public double get_fitProb()- Returns:
- the linear fit chi^2 probability
-
set_fitProb
public void set_fitProb(double _fitChisq) Sets the fit chi^2 prob- Parameters:
_fitChisq
- the chi^2 prob
-
get_Chisq
public double get_Chisq() -
set_Chisq
public void set_Chisq(double _Chisq) -
compareTo
Cluster comparator based on number of hits in the cluster- Specified by:
compareTo
in interfaceComparable<FittedCluster>
-
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)
-
getAvgwire
public double getAvgwire()- Returns:
- average wire position in a cluster
-
get_clusterLineFitSlope
public double get_clusterLineFitSlope()- Returns:
- the slope of the line fitted to the cluster
-
set_clusterLineFitSlope
public void set_clusterLineFitSlope(double _clusterLineFitSlope) Sets the slope of the line fitted to the cluster- Parameters:
_clusterLineFitSlope
- the slope of the line fitted to the cluster
-
get_clusterLineFitIntercept
public double get_clusterLineFitIntercept()- Returns:
- the intercept of the line fitted to the cluster
-
set_clusterLineFitIntercept
public void set_clusterLineFitIntercept(double _clusterLineFitIntercept) Sets the intercept of the line fitted to the cluster- Parameters:
_clusterLineFitIntercept
- the intercept of the line fitted to the cluster
-
get_clusterLineFitSlopeErr
public double get_clusterLineFitSlopeErr() -
set_clusterLineFitSlopeErr
public void set_clusterLineFitSlopeErr(double _clusterLineFitSlopeErr) -
get_clusterLineFitSlIntCov
public double get_clusterLineFitSlIntCov() -
set_clusterLineFitSlIntCov
public void set_clusterLineFitSlIntCov(double _clusterLineFitSlIntCov) -
get_clusterLineFitInterceptErr
public double get_clusterLineFitInterceptErr() -
set_clusterLineFitInterceptErr
public void set_clusterLineFitInterceptErr(double _clusterLineFitinterceptErr) -
get_clusterLineFitSlopeMP
public double get_clusterLineFitSlopeMP() -
set_clusterLineFitSlopeMP
public void set_clusterLineFitSlopeMP(double _clusterLineFitSlopeMP) -
get_clusterLineFitSlopeErrMP
public double get_clusterLineFitSlopeErrMP() -
set_clusterLineFitSlopeErrMP
public void set_clusterLineFitSlopeErrMP(double _clusterLineFitSlopeErrMP) -
get_clusterLineFitInterceptMP
public double get_clusterLineFitInterceptMP() -
set_clusterLineFitInterceptMP
public void set_clusterLineFitInterceptMP(double _clusterLineFitInterceptMP) -
get_clusterLineFitInterceptErrMP
public double get_clusterLineFitInterceptErrMP() -
set_clusterLineFitInterceptErrMP
public void set_clusterLineFitInterceptErrMP(double _clusterLineFitInterceptErrMP) -
get_TrkgStatus
public int get_TrkgStatus()- Returns:
- a tracking status: -1 (no fits yet), 0 (hit-based tracking done), 1 (time-based tracking done)
-
printInfo
- Returns:
- fitted cluster info.
-
getBaseCluster
- Returns:
- the cluster from which the fitted cluster was created
-