Contents
Class SwapManager
java.lang.Object
org.jlab.detector.swaps.SwapManager
Cache manager for cable swaps across multiple run numbers and CCDB tables,
interpreted from two ConstantsManager instances, implemented to enable
transforming a decoded HIPO file's sector/layer/component/order from the
translation tables used at decoding time into a different one.
- Author:
- baltzell
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSwapManager
(List<String> detectorNames, String prevTimestamp, String currTimestamp) SwapManager
(List<String> detectorNames, ConstantsManager previous, ConstantsManager current) -
Method Summary
Modifier and TypeMethodDescriptionint[]
int
int[]
get
(int run, org.jlab.io.base.DataBank bank, int row) int[]
static SwapManager
void
initialize
(List<String> detectorNames, String prevTimestamp, String currTimestamp) void
initialize
(List<String> detectorNames, ConstantsManager previous, ConstantsManager current) static void
toString()
-
Field Details
-
Constructor Details
-
Method Details
-
getDetectors
-
getTable
-
getBanks
-
getInstance
-
initialize
-
initialize
public void initialize(List<String> detectorNames, ConstantsManager previous, ConstantsManager current) - Parameters:
detectorNames
-previous
- timestamp/variation used for translation tables during decodingcurrent
- timestamp/variation with correct translation tables
-
get
- Parameters:
run
- run numbertableName
- CCDB translation table name, e.g. "/dat/tt/ecal"slco
- array of old indices (sector,layer,component,order)- Returns:
- array of new table indices (sector/layer/component/order)
-
get
- Parameters:
run
- run numbertableName
- CCDB translation table name, e.g. "/daq/tt/ecal"varName
- name of new index to retrieve (sector/layer/component/order)slco
- array of old indices (sector/layer/component/order)- Returns:
- new value of the requested index (sector/layer/component/order)
-
get
public int[] get(int run, org.jlab.io.base.DataBank bank, int row) - Parameters:
run
- run numberbank
- ADC/TDC bankrow
- row index in bank- Returns:
- array of new table indices (sector/layer/component/order)
-
get
- Parameters:
event
- the HIPO eventbankName
- name of ADC/TDC bankrow
- row index in bank- Returns:
- array of new table indices (sector/layer/component/order)
-
toString
-
main
-