Class FittedCluster

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

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 Link icon

    • FittedCluster Link icon

      public FittedCluster(Cluster rawCluster)
      Parameters:
      rawCluster - a Cluster fit using hit-based tracking information
  • Method Details Link icon

    • get_Sector Link icon

      public int get_Sector()
      Returns:
      the sector (1...6)
    • set_Sector Link icon

      public void set_Sector(int _Sector)
      Sets the sector
      Parameters:
      _Sector - the sector (1...6)
    • get_Superlayer Link icon

      public int get_Superlayer()
      Returns:
      the superlayer (1...6)
    • set_Superlayer Link icon

      public void set_Superlayer(int _Superlayer)
      Sets the superlayer
      Parameters:
      _Superlayer - the superlayer (1...6)
    • get_Id Link icon

      public int get_Id()
      Returns:
      the cluster ID (index in the sequence of formed clusters)
    • set_Id Link icon

      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 Link icon

      public int[][] get_Status()
    • set_Status Link icon

      public void set_Status(int[][] _Status)
    • get_clusLine Link icon

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

      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 Link icon

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

      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 Link icon

      public double get_fitProb()
      Returns:
      the linear fit chi^2 probability
    • set_fitProb Link icon

      public void set_fitProb(double _fitChisq)
      Sets the fit chi^2 prob
      Parameters:
      _fitChisq - the chi^2 prob
    • get_Chisq Link icon

      public double get_Chisq()
    • set_Chisq Link icon

      public void set_Chisq(double _Chisq)
    • compareTo Link icon

      public int compareTo(FittedCluster o)
      Cluster comparator based on number of hits in the cluster
      Specified by:
      compareTo in interface Comparable<FittedCluster>
    • get_Region Link icon

      public int get_Region()
      Returns:
      region (1...3)
    • get_RegionSlayer Link icon

      public int get_RegionSlayer()
      Returns:
      superlayer 1 or 2 in region (1...3)
    • getAvgwire Link icon

      public double getAvgwire()
      Returns:
      average wire position in a cluster
    • get_clusterLineFitSlope Link icon

      public double get_clusterLineFitSlope()
      Returns:
      the slope of the line fitted to the cluster
    • set_clusterLineFitSlope Link icon

      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 Link icon

      public double get_clusterLineFitIntercept()
      Returns:
      the intercept of the line fitted to the cluster
    • set_clusterLineFitIntercept Link icon

      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 Link icon

      public double get_clusterLineFitSlopeErr()
    • set_clusterLineFitSlopeErr Link icon

      public void set_clusterLineFitSlopeErr(double _clusterLineFitSlopeErr)
    • get_clusterLineFitSlIntCov Link icon

      public double get_clusterLineFitSlIntCov()
    • set_clusterLineFitSlIntCov Link icon

      public void set_clusterLineFitSlIntCov(double _clusterLineFitSlIntCov)
    • get_clusterLineFitInterceptErr Link icon

      public double get_clusterLineFitInterceptErr()
    • set_clusterLineFitInterceptErr Link icon

      public void set_clusterLineFitInterceptErr(double _clusterLineFitinterceptErr)
    • get_clusterLineFitSlopeMP Link icon

      public double get_clusterLineFitSlopeMP()
    • set_clusterLineFitSlopeMP Link icon

      public void set_clusterLineFitSlopeMP(double _clusterLineFitSlopeMP)
    • get_clusterLineFitSlopeErrMP Link icon

      public double get_clusterLineFitSlopeErrMP()
    • set_clusterLineFitSlopeErrMP Link icon

      public void set_clusterLineFitSlopeErrMP(double _clusterLineFitSlopeErrMP)
    • get_clusterLineFitInterceptMP Link icon

      public double get_clusterLineFitInterceptMP()
    • set_clusterLineFitInterceptMP Link icon

      public void set_clusterLineFitInterceptMP(double _clusterLineFitInterceptMP)
    • get_clusterLineFitInterceptErrMP Link icon

      public double get_clusterLineFitInterceptErrMP()
    • set_clusterLineFitInterceptErrMP Link icon

      public void set_clusterLineFitInterceptErrMP(double _clusterLineFitInterceptErrMP)
    • get_TrkgStatus Link icon

      public int get_TrkgStatus()
      Returns:
      a tracking status: -1 (no fits yet), 0 (hit-based tracking done), 1 (time-based tracking done)
    • printInfo Link icon

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

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