Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -515,10 +515,10 @@ public synchronized IndexedTable getReverseTT(int run, IndexedTable tt) {
private void addReverseTT(int run, IndexedTable tt) {
LOGGER.info("Reversing translation table for run " + run);
IndexedTable reverse = new IndexedTable(4, "crate/I:slot/I:channel/I");
for(int row=0; row<tt.getRowCount(); row++) {
int crate = Integer.valueOf((String)tt.getValueAt(row,0));
int slot = Integer.valueOf((String)tt.getValueAt(row,1));
int channel = Integer.valueOf((String)tt.getValueAt(row,2));
for(Object key : tt.getList().getMap().keySet()) {
int crate = tt.getList().getIndexGenerator().getIndex((long)key, 0);
int slot = tt.getList().getIndexGenerator().getIndex((long)key, 1);
int channel = tt.getList().getIndexGenerator().getIndex((long)key, 2);
int sector = tt.getIntValue("sector", crate,slot,channel);
int layer = tt.getIntValue("layer", crate,slot,channel);
int comp = tt.getIntValue("component", crate,slot,channel);
Expand Down