Class SwapTable

java.lang.Object
org.jlab.detector.swaps.SwapTable

public class SwapTable extends Object
Interpret the sector/layer/component/order mapping between two CCDB "/daq/tt" translation tables, based on their shared crate/slot/channel/order, and store it in a new IndexedTable for access.
Author:
baltzell
  • Field Details Link icon

    • VAR_NAMES Link icon

      public static final String[] VAR_NAMES
  • Constructor Details Link icon

    • SwapTable Link icon

      public SwapTable(org.jlab.utils.groups.IndexedTable fromTrans, org.jlab.utils.groups.IndexedTable toTrans)
      Parameters:
      fromTrans - previous translation table
      toTrans - new translation table
  • Method Details Link icon

    • get Link icon

      public int get(String varName, int... slco)
      Parameters:
      varName - name of new variable to retrieve (sector/layer/component/order)
      slco - array of old variables (sector/layer/component/order)
      Returns:
      new value of the requested variable
    • get Link icon

      public int[] get(int... slco)
      Parameters:
      slco - array of old variables (sector/layer/component/order)
      Returns:
      new value of the requested variable
    • getVariableIndex Link icon

      public static int getVariableIndex(String varName)
      Parameters:
      varName - name of variable's index in s/l/c/o to retrieve
      Returns:
      index
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object