Class FittedCluster

All Implemented Interfaces:
Serializable, Cloneable, Comparable<FittedCluster>, Iterable<FittedHit>, Collection<FittedHit>, List<FittedHit>, RandomAccess

public class FittedCluster extends ArrayList<FittedHit> implements Comparable<FittedCluster>
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:
  • Constructor Details

    • FittedCluster

      public FittedCluster(Cluster rawCluster)
      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

      public Line3D get_clusLine()
      Returns:
      the line corresponding to the linear fit to the cluster hits
    • set_clusLine

      public void set_clusLine(Line3D _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

      public Line3D get_clusLineErr()
      Returns:
      the line corresponding to the linear fit to the cluster hits
    • set_clusLineErr

      public void 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 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

      public int compareTo(FittedCluster o)
      Cluster comparator based on number of hits in the cluster
      Specified by:
      compareTo in interface Comparable<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

      public String printInfo()
      Returns:
      fitted cluster info.
    • getBaseCluster

      public Cluster getBaseCluster()
      Returns:
      the cluster from which the fitted cluster was created