Class ATOFCluster

java.lang.Object
org.jlab.rec.atof.cluster.ATOFCluster

public class ATOFCluster extends Object
The ATOFCluster represents clusters in the atof

Create clusters and compute their basic properties from the hits composing them.

Author:
pilleux
  • Constructor Details Link icon

  • Method Details Link icon

    • getBarHits Link icon

      public ArrayList<BarHit> getBarHits()
    • setBarHits Link icon

      public void setBarHits(ArrayList<BarHit> bar_hits)
    • getWedgeHits Link icon

      public ArrayList<ATOFHit> getWedgeHits()
    • setWedgeHits Link icon

      public void setWedgeHits(ArrayList<ATOFHit> wedge_hits)
    • getX Link icon

      public double getX()
    • setX Link icon

      public void setX(double x)
    • getY Link icon

      public double getY()
    • setY Link icon

      public void setY(double y)
    • getZ Link icon

      public double getZ()
    • setZ Link icon

      public void setZ(double z)
    • getTime Link icon

      public double getTime()
    • setTime Link icon

      public void setTime(double time)
    • getEnergy Link icon

      public double getEnergy()
    • setEnergy Link icon

      public void setEnergy(double energy)
    • getPathLength Link icon

      public double getPathLength()
    • setPathLength Link icon

      public void setPathLength(double pathLength)
    • getInPathLength Link icon

      public double getInPathLength()
    • setInPathLength Link icon

      public void setInPathLength(double inPathLength)
    • getTypeMaxHit Link icon

      public String getTypeMaxHit()
    • setTypeMaxHit Link icon

      public void setTypeMaxHit(String typeMaxHit)
    • getIProj Link icon

      public int getIProj()
    • setIProj Link icon

      public void setIProj(int iProj)
    • getIndexMaxHit Link icon

      public int getIndexMaxHit()
    • setIndexMaxHit Link icon

      public void setIndexMaxHit(int indexMaxHit)
    • computeClusterProperties Link icon

      public final void computeClusterProperties()
      Compute the cluster properties. Cluster coordinates and time are defined as the coordinates and time of the max energy hit. TO DO: Test other choices for the definitions.
    • matchTrack Link icon

      public int matchTrack(DataEvent event)
      Matches the current track with ahdc tracks projections that have been written to the banks. Calculates the match by comparing the hit's azimuthal angle and longitudinal position (z) with the track projection. If a match is found within defined tolerances for phi and z, the path length of the matched hit is updated.
      Parameters:
      event - a @link{DataEvent} in which the track projections bank has been written.
    • makeStraightTrack Link icon

      public void makeStraightTrack()
      Build a straight track from the vertex to this cluster. Sets the cluster path length and length through the atof from it.
    • getDistanceStraightInATOF Link icon

      public double getDistanceStraightInATOF(double vx, double vy, double vz)
      Computes the distance a straight track goes through the ATOF. The intersection point between a straight track from the vertex to the cluster and the ATOF inner cylinder is computed to that end.
      Parameters:
      vx - , the x coordinate of the vertex
      vy - , the y coordinate of the vertex
      vz - , the z coordinate of the vertex
      Returns:
      the distance the straight track went through in the ATOF
    • getEdepWedge Link icon

      public double getEdepWedge()
      Computes the energy deposited in the wedges.
      Returns:
      the energy deposited in the wedges.
    • getEdepBar Link icon

      public double getEdepBar()
      Computes the energy deposited in the bars.
      Returns:
      the energy deposited in the bars.
    • getPhi Link icon

      public double getPhi()
      Compute the cluster phi angle in radians.
      Returns:
      a double that is angle in radians
    • getBeta Link icon

      public double getBeta()
      Compute the cluster beta from the path length and time.
      Returns:
      a double that is beta - TO DO: Change to non-hardcoded value for c
    • getMaxHit Link icon

      public final ATOFHit getMaxHit()
      Retrieve the hit with maximal energy in the cluster. It must have been computed previously.
      Returns:
      a ATOFHit that is the maximal energy hit in the cluster
    • getTot Link icon

      public int getTot()
      Computes the sum of TOT in the cluster.
      Returns:
      an int representing the summed TOT
    • getTdc Link icon

      public int getTdc()
      Returns the TDC of the maximal hit in the cluster.
      Returns:
      an int representing the TDC of the maximal hit.
    • getMaxWedgeHit Link icon

      public final ATOFHit getMaxWedgeHit()
      Computes the wedge hit with maximal energy in the cluster.
      Returns:
      a ATOFHit that is the maximal energy hit in the wedges in the cluster.
    • main Link icon

      public static void main(String[] args)
      Parameters:
      args - the command line arguments