Package org.jlab.service.recoil.tof
Class RTOFCluster
java.lang.Object
org.jlab.service.recoil.tof.RTOFCluster
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 Summary
ConstructorsConstructorDescriptionRTOFCluster(ArrayList<RTOFHit> rtof_hits) Constructor that initializes the list of bar hits and computes the cluster properties.RTOFCluster(ArrayList<RTOFHit> rtof_hits, DataEvent event) Constructor that initializes the list of bar hits and computes the cluster properties. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidCompute the cluster properties.doubleComputes the energy deposited in the bars.doubleintfinal RTOFRawHitRetrieve the hit with maximal energy in the cluster.doublegetPhi()Compute the cluster phi angle in radians.intintgetTdc()Returns the TDC of the maximal hit in the cluster.doublegetTime()intgetTot()Computes the sum of TOT in the cluster.doublegetX()doublegetY()doublegetZ()voidsetEnergy(double energy) voidsetIndexMaxHit(int indexMaxHit) voidsetRTOFHits(ArrayList<RTOFHit> rtof_hits) voidsetSectorMaxHit(int sectorMaxHit) voidsetTime(double time) voidsetTypeMaxHit(String typeMaxHit) voidsetX(double x) voidsetY(double y) voidsetZ(double z)
-
Constructor Details
-
RTOFCluster
Constructor that initializes the list of bar hits and computes the cluster properties. -
RTOFCluster
Constructor that initializes the list of bar hits and computes the cluster properties.
-
-
Method Details
-
getRTOFHits
-
setRTOFHits
-
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
-
setTypeMaxHit
-
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
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.
-