Class RecoBankWriter

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

public class RecoBankWriter extends Object
The RecoBankWriter writes the banks needed for the recoil tof reconstruction: hits and clusters info.
Author:
pilleux, Nilanga Wickramaarachchi
  • Constructor Details

    • RecoBankWriter

      public RecoBankWriter()
  • Method Details

    • fillRTOFRawHitBank

      public static DataBank fillRTOFRawHitBank(DataEvent event, ArrayList<RTOFHit> rtofHits)
      Writes the bank of recoil tof hits.
      Parameters:
      event - the DataEvent in which to add the bank
      rtofHits - the ArrayList of RTOFHit containing the rtof hits to be added to the bank
      Returns:
      DataBank the bank with all the hits read in the event.
    • fillRTOFClusterBank

      public static DataBank fillRTOFClusterBank(DataEvent event, ArrayList<RTOFCluster> clusterList)
      Writes the bank of rtof clusters.
      Parameters:
      event - the DataEvent in which to add the bank
      clusterList - the ArrayList of RTOFCluster containing the clusters info to be added to the bank
      Returns:
      DataBank the bank with all the clusters built in the event.
    • appendRTOFBanks

      public int appendRTOFBanks(DataEvent event, ArrayList<RTOFHit> rtofHits, ArrayList<RTOFCluster> clusterList)
      Appends the rtof banks to an event.
      Parameters:
      event - the DataEvent in which to append the banks
      rtofHits - the ArrayList of RTOFHit containing the bar hits info to be added
      clusterList - the ArrayList of RTOFCluster containing the clusters info to be added to the bank
      Returns:
      0 if it worked, 1 if it failed