Class Cluster

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

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

    • flagForExclusion

      public boolean flagForExclusion
  • Constructor Details

    • Cluster

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

    • newCluster

      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

      public DetectorType getDetector()
    • setDetector

      public void setDetector(DetectorType _Detector)
    • getType

      public BMTType getType()
    • setType

      public void setType(BMTType type)
    • getSector

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

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

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

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

      public int getTlayer()
      Returns:
      the _Tlayer
    • setTlayer

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

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

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

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

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

      public double getRadius()
      Returns:
      the _Radius
    • getAxis

      public Line3D getAxis()
    • getTile

      public Cylindrical3D getTile()
    • calc_CentroidParams

      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

      public double getCentroid()
    • setCentroid

      public void setCentroid(double _Centroid)
    • getResolution

      public double getResolution()
    • setResolution

      public void setResolution(double E)
    • getCentroid0

      public double getCentroid0()
    • setCentroid0

      public void setCentroid0(double _Centroid0)
    • getPhi

      public double getPhi()
    • setPhi

      public void setPhi(double _Phi)
    • getPhi0

      public double getPhi0()
    • setPhi0

      public void setPhi0(double _Phi0)
    • getPhiErr

      public double getPhiErr()
    • setPhiErr

      public void setPhiErr(double _PhiErr)
    • getPhiErr0

      public double getPhiErr0()
    • setPhiErr0

      public void setPhiErr0(double _PhiErr0)
    • getZ

      public double getZ()
    • setZ

      public void setZ(double _Z)
    • getZErr

      public double getZErr()
    • setZErr

      public void setZErr(double _ZErr)
    • setCentroidValue

      public void setCentroidValue(double _CentroidValue)
    • getCentroidValue

      public double getCentroidValue()
    • getCentroidError

      public double getCentroidError()
    • setCentroidError

      public void setCentroidError(double _CentroidError)
    • getArc

      public Arc3D getArc()
      Returns:
      the _Arc
    • setArc

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

      public Point3D origin()
    • end

      public Point3D end()
    • center

      public Point3D center()
    • theta

      public double theta()
    • toLocal

      public Transformation3D toLocal()
    • toGlobal

      public Transformation3D toGlobal()
    • residual

      public double residual(Point3D traj)
    • setCentroidResidual

      public void setCentroidResidual(Point3D traj)
    • setSeedResidual

      public void setSeedResidual(Point3D traj)
    • 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 Strip getSeedStrip()
    • getSeed

      public Hit getSeed()
    • setSeed

      public void setSeed(Hit _Seed)
    • getSeedResidual

      public double getSeedResidual()
    • setSeedResidual

      public void setSeedResidual(double _SeedResidual)
    • getCentroidResidual

      public double getCentroidResidual()
    • setCentroidResidual

      public void setCentroidResidual(double _CentroidResidual)
    • getTrakInters

      public Point3D getTrakInters()
      Returns:
      the _TrakInters
    • setTrakInters

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

      public Surface measurement()
    • getResolutionAlongZ

      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

      public int getAssociatedTrackID()
    • setAssociatedTrackID

      public void setAssociatedTrackID(int associatedTrackID)
    • compareTo

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

      public Line3D getLine()
    • setLine

      public void setLine(Line3D _Line)
    • getL

      public Vector3D getL()
      Returns:
      the _l
    • setL

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

      public Vector3D getS()
      Returns:
      the _s
    • setS

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

      public Vector3D getN()
      Returns:
      the _n
    • setN

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

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

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