Class ADCTDCMerger

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

public class ADCTDCMerger extends Object
Class for merging of ADC and TDC banks from two events Operates on selectable list of detectors (default DC, FTOF)
Author:
ziegler, devita
  • Nested Class Summary Link icon

    Nested Classes
    Modifier and Type
    Class
    Description
    class 
     
    class 
     
    class 
     
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
    ADCTDCMerger(EventMergerConstants constants, org.jlab.io.base.DataEvent signal, List<org.jlab.io.base.DataEvent>... bgs)
    ADC-TDC merger tool: merges raw hits from physics and background events, accounting for pile-ups
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    Merge physics signals hit with background hits
    org.jlab.io.base.DataBank
    mergeADCs(org.jlab.detector.base.DetectorType detector, List<Integer> layers)
    Merge ADC banks for data (signal) and background events for the selected detector and layers In case of multiple hit on same detector element, only first hit in time is kept unless the double-hit suppression flag, suppressDoubleHits, is set to false
    org.jlab.io.base.DataBank
    mergeTDCs(org.jlab.detector.base.DetectorType detector, List<Integer> layers)
    Merge TDC banks for data (signal) and background events for the selected detector and layers Use two background events shifted in time to extend the time range of the backgrounds Multiple hits on the same components are kept if time distance exceed the holdoff time
    readADCs(org.jlab.detector.base.DetectorType detector, org.jlab.io.base.DataBank bank)
    Reads ADC bank and returns list of hits
    readTDCs(org.jlab.detector.base.DetectorType detector, org.jlab.io.base.DataBank bank)
    Read TDC bank and return list of hit
    void
    setPreserveHitOrder(boolean value)
    Set flag to control the final hit list order
    void
    setSelectedOrders(org.jlab.detector.banks.RawBank.OrderType[] orders)
    Set list or order types to save
    void
    setSuppressDoubleHits(boolean value)
    Set pile-up operation mode: keep first hit in time if true or both if false
    final org.jlab.io.base.DataBank
    writeToBank(org.jlab.io.base.DataEvent event, String name, List<ADCTDCMerger.DGTZ> dgtzs)
    Write list of hits to bank based on hit status

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details Link icon

    • ADCTDCMerger Link icon

      public ADCTDCMerger(EventMergerConstants constants, org.jlab.io.base.DataEvent signal, List<org.jlab.io.base.DataEvent>... bgs)
      ADC-TDC merger tool: merges raw hits from physics and background events, accounting for pile-ups
      Parameters:
      constants -
      signal - physics events
      bgs - background events
  • Method Details Link icon

    • setSuppressDoubleHits Link icon

      public void setSuppressDoubleHits(boolean value)
      Set pile-up operation mode: keep first hit in time if true or both if false
      Parameters:
      value -
    • setPreserveHitOrder Link icon

      public void setPreserveHitOrder(boolean value)
      Set flag to control the final hit list order
      Parameters:
      value -
    • setSelectedOrders Link icon

      public void setSelectedOrders(org.jlab.detector.banks.RawBank.OrderType[] orders)
      Set list or order types to save
      Parameters:
      orders -
    • readADCs Link icon

      public List<ADCTDCMerger.DGTZ> readADCs(org.jlab.detector.base.DetectorType detector, org.jlab.io.base.DataBank bank)
      Reads ADC bank and returns list of hits
      Parameters:
      detector - : detector identifier
      bank - : selected DataBank
      Returns:
      list of ADC hits
    • readTDCs Link icon

      public List<ADCTDCMerger.DGTZ> readTDCs(org.jlab.detector.base.DetectorType detector, org.jlab.io.base.DataBank bank)
      Read TDC bank and return list of hit
      Parameters:
      detector - : detector identifier
      bank - : selected DataBank
      Returns:
      list of TDC hits
    • mergeADCs Link icon

      public org.jlab.io.base.DataBank mergeADCs(org.jlab.detector.base.DetectorType detector, List<Integer> layers)
      Merge ADC banks for data (signal) and background events for the selected detector and layers In case of multiple hit on same detector element, only first hit in time is kept unless the double-hit suppression flag, suppressDoubleHits, is set to false
      Parameters:
      detector -
      layers -
      Returns:
    • mergeTDCs Link icon

      public org.jlab.io.base.DataBank mergeTDCs(org.jlab.detector.base.DetectorType detector, List<Integer> layers)
      Merge TDC banks for data (signal) and background events for the selected detector and layers Use two background events shifted in time to extend the time range of the backgrounds Multiple hits on the same components are kept if time distance exceed the holdoff time
      Parameters:
      detector -
      layers -
      Returns:
    • merge Link icon

      public final List<ADCTDCMerger.DGTZ> merge(List<ADCTDCMerger.DGTZ> signal, List<ADCTDCMerger.DGTZ> background)
      Merge physics signals hit with background hits
      Parameters:
      signal -
      background -
      Returns:
      merged list
    • writeToBank Link icon

      public final org.jlab.io.base.DataBank writeToBank(org.jlab.io.base.DataEvent event, String name, List<ADCTDCMerger.DGTZ> dgtzs)
      Write list of hits to bank based on hit status
      Parameters:
      event - hipo event
      name - bank name
      dgtzs - list of hits
      Returns:
      hipo bank