Class RecoBankWriter

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

public class RecoBankWriter extends Object
The ALERT RecoBankWriter writes the banks needed for the ALERT reconstruction: track projections.
Author:
Noemie Pilleux, Whit Armstrong
  • Constructor Details

    • RecoBankWriter

      public RecoBankWriter()
  • Method Details

    • fillProjectionsBank

      public static DataBank fillProjectionsBank(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.
    • appendMatchBanks

      public int appendMatchBanks(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