Package org.jlab.rec.dc
Class DCTranslationTable
java.lang.Object
org.jlab.rec.dc.DCTranslationTable
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
FieldsModifier and TypeFieldDescriptionstatic final int[]
static final double[]
static DetectorCollection<DetectorDescriptor>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
-
Field Details
-
cableid
public static final int[] cableid -
cableT0
public static final double[] cableT0 -
reverseTable
-
-
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
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
- Throws:
FileNotFoundException
-