Class BarHit

java.lang.Object
org.jlab.rec.atof.hit.ATOFHit
org.jlab.rec.atof.hit.BarHit

public class BarHit extends ATOFHit
Represents a hit in the atof bar. Extends class ATOFHit. Is further defined by the two hits upstream and downstream composing a full bar hit. z position, time and energy are defined from the up/down hits.
Author:
npilleux
  • Constructor Details

    • BarHit

      public BarHit(ATOFHit hit_down, ATOFHit hit_up)
    • BarHit

      public BarHit()
  • Method Details

    • getHitUp

      public ATOFHit getHitUp()
    • setHitUp

      public void setHitUp(ATOFHit hit_up)
    • getHitDown

      public ATOFHit getHitDown()
    • setHitDown

      public void setHitDown(ATOFHit hit_down)
    • computeZ

      public final void computeZ()
      Computes bar hit z coordinate from up/downstream hit times.
    • computeTime

      public final void computeTime()
      Computes bar hit time from up/downstream hit times. The time is set as the time of the most energetic hit. It is corrected for propagation time.
    • computeEnergy

      public final void computeEnergy()
      Computes bar hit energy from up/downstream hits. The energy of the up/downstream hits is corrected for attenuation now that z is known. The energy of the bar hit is the sum of the energy of the up/downstream hits.
    • main

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