Class DCTranslationTable

java.lang.Object
org.jlab.rec.dc.DCTranslationTable

public class DCTranslationTable extends Object
Converts DC readout board (crate, slot, channel) to DC wire hit (sector, layer, wire) where crate runs from 67 to 67+17, active readout slots are 4 to 10 and 13 to 19, and DCRB channels run from 0 to 95. Sector runs from 1 to 6, layer from 1 to 36, and wire from 1 to 112
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int[]
     
    static final double[]
     
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    getComponent(int crate, int slot, int channel)
    crate : the crate number (41...58) slot : the slot number (4...10, 13...19); channel : the channel on one DCRB (0...95) returns : the wire (1...112)
    int
    getLayer(int crate, int slot, int channel)
    crate : the crate number (41...58) slot : the slot number (4...10, 13...19) channel : the channel on one DCRB (0...95) returns : the layer (1...36)
    int
    getSector(int crate, int slot, int channel)
    crate : the crate number (41...58) slot : the slot number (4...10, 13...19) channel : the channel on one DCRB (0...95) returns : the sector (1...6)
    static void
    main(String[] arg)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • DCTranslationTable

      public DCTranslationTable()
  • Method Details

    • getSector

      public int getSector(int crate, int slot, int channel)
      crate : the crate number (41...58) slot : the slot number (4...10, 13...19) channel : the channel on one DCRB (0...95) returns : the sector (1...6)
      Parameters:
      crate -
      slot -
      channel -
      Returns:
    • getLayer

      public int getLayer(int crate, int slot, int channel)
      crate : the crate number (41...58) slot : the slot number (4...10, 13...19) channel : the channel on one DCRB (0...95) returns : the layer (1...36)
      Parameters:
      crate -
      slot -
      channel -
      Returns:
    • getComponent

      public Integer getComponent(int crate, int slot, int channel)
      crate : the crate number (41...58) slot : the slot number (4...10, 13...19); channel : the channel on one DCRB (0...95) returns : the wire (1...112)
    • createInvertedTable

      public void createInvertedTable()
    • main

      public static void main(String[] arg) throws FileNotFoundException
      Throws:
      FileNotFoundException