Class RTOFCluster

java.lang.Object
org.jlab.service.recoil.tof.RTOFCluster

public class RTOFCluster extends Object
The RTOFCluster represents clusters in the recoil tof

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

Author:
pilleux, Nilanga Wickramaarachchi
  • Constructor Details

    • RTOFCluster

      public RTOFCluster(ArrayList<RTOFHit> rtof_hits)
      Constructor that initializes the list of bar hits and computes the cluster properties.
      Parameters:
      rtof_hits - a ArrayList of RTOFHit.
    • RTOFCluster

      public RTOFCluster(ArrayList<RTOFHit> rtof_hits, DataEvent event)
      Constructor that initializes the list of bar hits and computes the cluster properties.
      Parameters:
      rtof_hits - a ArrayList of RTOFHit.
      event - a DataEvent with which track matching will be done.
  • Method Details

    • getRTOFHits

      public ArrayList<RTOFHit> getRTOFHits()
    • setRTOFHits

      public void setRTOFHits(ArrayList<RTOFHit> rtof_hits)
    • getX

      public double getX()
    • setX

      public void setX(double x)
    • getY

      public double getY()
    • setY

      public void setY(double y)
    • getZ

      public double getZ()
    • setZ

      public void setZ(double z)
    • getTime

      public double getTime()
    • setTime

      public void setTime(double time)
    • getEnergy

      public double getEnergy()
    • setEnergy

      public void setEnergy(double energy)
    • getTypeMaxHit

      public String getTypeMaxHit()
    • setTypeMaxHit

      public void setTypeMaxHit(String typeMaxHit)
    • getIndexMaxHit

      public int getIndexMaxHit()
    • setIndexMaxHit

      public void setIndexMaxHit(int indexMaxHit)
    • getSectorMaxHit

      public int getSectorMaxHit()
    • setSectorMaxHit

      public void setSectorMaxHit(int sectorMaxHit)
    • computeClusterProperties

      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.
    • getEdepBar

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

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

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

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

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