Class EventMerger

java.lang.Object
org.jlab.analysis.eventmerger.EventMerger

public class EventMerger extends Object
Tool for merging of signal and background events Usage : bg-merger -i [signal event file] -o [merged file] [input1] [input2] .... Options : -d : list of detectors, for example "DC,FTOF,HTCC" or "ALL" for all available detectors. Use DC1, DC2 or DC3 to select the DC region (default = ALL) -l : preserve initial hit order (for compatibility with truth matching, 0-false, 1-true (default = 1) -n : maximum number of events to process (default = -1) -r : reuse background events: 0-false, 1-true (default = 1) -s : suppress double TDC hits on the same component, 0-no suppression, 1-suppression (default = 1) -t : list of hit OrderTypes to be saved (default = NOMINAL,BGADDED_NOMINAL,BGREMOVED,BGREMOVED_BG,DECREMOVED,DECREMOVED_BG) -x : background scale factor (default = 1)
Author:
ziegler, devita FIXME: event tags are not preserved
  • Constructor Details Link icon

    • EventMerger Link icon

      public EventMerger()
    • EventMerger Link icon

      public EventMerger(String[] dets, String[] types, boolean dhits, boolean ohits)
    • EventMerger Link icon

      public EventMerger(String[] dets, org.jlab.jnp.hipo4.data.SchemaFactory schema, String[] types, boolean dhits, boolean ohits)
  • Method Details Link icon

    • setBgFiles Link icon

      public boolean setBgFiles(List<String> filenames, int scale, boolean reuse)
    • getBackgroundEvents Link icon

      public List<DataEvent> getBackgroundEvents(int n)
    • mergeEvents Link icon

      public boolean mergeEvents(DataEvent event)
      Append merged banks to hipo event
      Parameters:
      event -
      Returns:
    • main Link icon

      public static void main(String[] args)