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

    • VAR_NAMES

      public static final String[] VAR_NAMES
  • Constructor Details

    • SwapTable

      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

    • get

      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

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

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

      public String toString()
      Overrides:
      toString in class Object