Class Cluster

All Implemented Interfaces:
Serializable, Cloneable, Comparable<Cluster>, Iterable<Hit>, Collection<Hit>, List<Hit>, RandomAccess, SequencedCollection<Hit>

public class Cluster extends ArrayList<Hit> implements Comparable<Cluster>
A cluster in the BST consists of an array of hits that are grouped together according to the algorithm of the ClusterFinder class
Author:
ziegler
See Also:
  • Field Details Link icon

    • flagForExclusion Link icon

      public boolean flagForExclusion
  • Constructor Details Link icon

    • Cluster Link icon

      public Cluster(DetectorType detector, BMTType type, int sector, int layer, int cid)
  • Method Details Link icon

    • newCluster Link icon

      public Cluster newCluster(Hit hit, int cid)
      Parameters:
      hit - the first hit in the list of hits composing the cluster
      cid - the id of the cluster
      Returns:
      an array list of hits characterized by its sector, layer and id number.
    • getDetector Link icon

      public DetectorType getDetector()
    • setDetector Link icon

      public void setDetector(DetectorType _Detector)
    • getType Link icon

      public BMTType getType()
    • setType Link icon

      public void setType(BMTType type)
    • getSector Link icon

      public int getSector()
      Returns:
      the sector of the cluster
    • setSector Link icon

      public void setSector(int _Sector)
      Parameters:
      _Sector - sector of the cluster
    • getLayer Link icon

      public int getLayer()
      Returns:
      the layer of the cluster
    • setLayer Link icon

      public void setLayer(int _Layer)
      Parameters:
      _Layer - the layer of the cluster
    • getTlayer Link icon

      public int getTlayer()
      Returns:
      the _Tlayer
    • setTlayer Link icon

      public void setTlayer(int _Tlayer)
      Parameters:
      _Tlayer - the _Tlayer to set
    • getId Link icon

      public int getId()
      Returns:
      the id of the cluster
    • setId Link icon

      public void setId(int _Id)
      Parameters:
      _Id - the id of the cluster
    • getRegion Link icon

      public int getRegion()
      Returns:
      region (1...4)
    • getRegionSlayer Link icon

      public int getRegionSlayer()
      Returns:
      superlayer 1 or 2 in region (1...4)
    • getRadius Link icon

      public double getRadius()
      Returns:
      the _Radius
    • getAxis Link icon

      public Line3D getAxis()
    • getTile Link icon

      public Cylindrical3D getTile()
    • calc_CentroidParams Link icon

      public void calc_CentroidParams()
      sets energy-weighted parameters; these are the strip centroid (energy-weighted) value, the energy-weighted phi for Z detectors and the energy-weighted z for C detectors
    • getCentroid Link icon

      public double getCentroid()
    • setCentroid Link icon

      public void setCentroid(double _Centroid)
    • getResolution Link icon

      public double getResolution()
    • setResolution Link icon

      public void setResolution(double E)
    • getCentroid0 Link icon

      public double getCentroid0()
    • setCentroid0 Link icon

      public void setCentroid0(double _Centroid0)
    • getPhi Link icon

      public double getPhi()
    • setPhi Link icon

      public void setPhi(double _Phi)
    • getPhi0 Link icon

      public double getPhi0()
    • setPhi0 Link icon

      public void setPhi0(double _Phi0)
    • getPhiErr Link icon

      public double getPhiErr()
    • setPhiErr Link icon

      public void setPhiErr(double _PhiErr)
    • getPhiErr0 Link icon

      public double getPhiErr0()
    • setPhiErr0 Link icon

      public void setPhiErr0(double _PhiErr0)
    • getZ Link icon

      public double getZ()
    • setZ Link icon

      public void setZ(double _Z)
    • getZErr Link icon

      public double getZErr()
    • setZErr Link icon

      public void setZErr(double _ZErr)
    • setCentroidValue Link icon

      public void setCentroidValue(double _CentroidValue)
    • getCentroidValue Link icon

      public double getCentroidValue()
    • getCentroidError Link icon

      public double getCentroidError()
    • setCentroidError Link icon

      public void setCentroidError(double _CentroidError)
    • getArc Link icon

      public Arc3D getArc()
      Returns:
      the _Arc
    • setArc Link icon

      public void setArc(Arc3D _Arc)
      Parameters:
      _Arc - the _Arc to set
    • origin Link icon

      public Point3D origin()
    • end Link icon

      public Point3D end()
    • center Link icon

      public Point3D center()
    • theta Link icon

      public double theta()
    • toLocal Link icon

      public Transformation3D toLocal()
    • toGlobal Link icon

      public Transformation3D toGlobal()
    • residual Link icon

      public double residual(Point3D traj)
    • setCentroidResidual Link icon

      public void setCentroidResidual(Point3D traj)
    • setSeedResidual Link icon

      public void setSeedResidual(Point3D traj)
    • getTotalEnergy Link icon

      public double getTotalEnergy()
    • setTotalEnergy Link icon

      public void setTotalEnergy(double _TotalEnergy)
    • getTime Link icon

      public double getTime()
    • setTime Link icon

      public void setTime(double _Time)
    • getMinStrip Link icon

      public int getMinStrip()
    • setMinStrip Link icon

      public void setMinStrip(int _MinStrip)
    • getMaxStrip Link icon

      public int getMaxStrip()
    • setMaxStrip Link icon

      public void setMaxStrip(int _MaxStrip)
    • getSeedStrip Link icon

      public Strip getSeedStrip()
    • getSeed Link icon

      public Hit getSeed()
    • setSeed Link icon

      public void setSeed(Hit _Seed)
    • getSeedResidual Link icon

      public double getSeedResidual()
    • setSeedResidual Link icon

      public void setSeedResidual(double _SeedResidual)
    • getCentroidResidual Link icon

      public double getCentroidResidual()
    • setCentroidResidual Link icon

      public void setCentroidResidual(double _CentroidResidual)
    • getTrakInters Link icon

      public Point3D getTrakInters()
      Returns:
      the _TrakInters
    • setTrakInters Link icon

      public void setTrakInters(Point3D _TrakInters)
      Parameters:
      _TrakInters - the _TrakInters to set
    • measurement Link icon

      public Surface measurement()
    • getResolutionAlongZ Link icon

      public double getResolutionAlongZ(double Z)
      Parameters:
      Z - z-coordinate of a point in the local coordinate system of a module
      Returns:
      the average resolution for a group of strips in a cluster in the SVT
    • getAssociatedTrackID Link icon

      public int getAssociatedTrackID()
    • setAssociatedTrackID Link icon

      public void setAssociatedTrackID(int associatedTrackID)
    • compareTo Link icon

      public int compareTo(Cluster arg)
      Specified by:
      compareTo in interface Comparable<Cluster>
    • getLine Link icon

      public Line3D getLine()
    • setLine Link icon

      public void setLine(Line3D _Line)
    • getL Link icon

      public Vector3D getL()
      Returns:
      the _l
    • setL Link icon

      public void setL(Vector3D _l)
      Parameters:
      _l - the _l to set
    • getS Link icon

      public Vector3D getS()
      Returns:
      the _s
    • setS Link icon

      public void setS(Vector3D _s)
      Parameters:
      _s - the _s to set
    • getN Link icon

      public Vector3D getN()
      Returns:
      the _n
    • setN Link icon

      public void setN(Vector3D _n)
      Parameters:
      _n - the _n to set
    • update Link icon

      public void update(int trackId, AKFitter.HitOnTrack traj)
    • toString Link icon

      public String toString()
      Overrides:
      toString in class AbstractCollection<Hit>