Class RecoBankWriter

java.lang.Object
org.jlab.rec.atof.banks.RecoBankWriter

public class RecoBankWriter extends Object
The RecoBankWriter writes the banks needed for the atof reconstruction: track projections, hits and clusters info.
Author:
pilleux
  • Constructor Details

    • RecoBankWriter

      public RecoBankWriter()
  • Method Details

    • fillATOFHitBank

      public static org.jlab.io.base.DataBank fillATOFHitBank(org.jlab.io.base.DataEvent event, ArrayList<ATOFHit> wedgeHits, ArrayList<BarHit> barHits)
      Writes the bank of atof hits.
      Parameters:
      event - the DataEvent in which to add the bank
      wedgeHits - the ArrayList of ATOFHit containing the wedge hits to be added to the bank
      barHits - the ArrayList of BarHit containing the bar hits to be added to the bank
      Returns:
      DataBank the bank with all the hits read in the event.
    • fillATOFClusterBank

      public static org.jlab.io.base.DataBank fillATOFClusterBank(org.jlab.io.base.DataEvent event, ArrayList<ATOFCluster> clusterList)
      Writes the bank of atof clusters.
      Parameters:
      event - the DataEvent in which to add the bank
      clusterList - the ArrayList of ATOFCluster containing the clusters info to be added to the bank
      Returns:
      DataBank the bank with all the clusters built in the event.
    • fillProjectionsBank

      public static org.jlab.io.base.DataBank fillProjectionsBank(org.jlab.io.base.DataEvent event, ArrayList<TrackProjection> projections)
      Writes the bank of track projections.
      Parameters:
      event - the DataEvent in which to add the bank
      projections - the ArrayList of TrackProjection containing the track projection info to be added to the bank
      Returns:
      DataBank the bank with all the projected tracks in the event.
    • appendATOFBanks

      public int appendATOFBanks(org.jlab.io.base.DataEvent event, ArrayList<ATOFHit> wedgeHits, ArrayList<BarHit> barHits, ArrayList<ATOFCluster> clusterList)
      Appends the atof banks to an event.
      Parameters:
      event - the DataEvent in which to append the banks
      clusterList - the ArrayList of ATOFCluster containing the clusters info to be added to the bank
      wedgeHits - the ArrayList of ATOFHit containing the wedge hits info to be added
      barHits - the ArrayList of BarHit containing the bar hits info to be added
      Returns:
      0 if it worked, 1 if it failed
    • appendMatchBanks

      public int appendMatchBanks(org.jlab.io.base.DataEvent event, ArrayList<TrackProjection> projections)
      Appends the alert match banks to an event.
      Parameters:
      event - the DataEvent in which to append the banks
      projections - the ArrayList of TrackProjection containing the track projections info to be added
      Returns:
      0 if it worked, 1 if it failed
    • main

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