From f717493c081fa05c43d4d87c331013641f8343fd Mon Sep 17 00:00:00 2001 From: Nathan Baltzell Date: Fri, 14 Aug 2026 21:19:38 -0400 Subject: [PATCH 1/2] add column-index accessors --- .../org/jlab/detector/banks/FilteredBank.java | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/common-tools/clas-detector/src/main/java/org/jlab/detector/banks/FilteredBank.java b/common-tools/clas-detector/src/main/java/org/jlab/detector/banks/FilteredBank.java index 436d49fedb..99b9171e7d 100644 --- a/common-tools/clas-detector/src/main/java/org/jlab/detector/banks/FilteredBank.java +++ b/common-tools/clas-detector/src/main/java/org/jlab/detector/banks/FilteredBank.java @@ -135,6 +135,51 @@ public float getFloat(String varName, int index ){ return bank.getFloat(varName, indexList.get(index)); } + /** + * @param column + * @param index filtered index to retrieve + * @return value for the filtered index + */ + public int getByte(int column, int index ){ + return bank.getByte(column, indexList.get(index)); + } + + /** + * @param column + * @param index filtered index to retrieve + * @return value for the filtered index + */ + public int getShort(int column, int index ){ + return bank.getShort(column, indexList.get(index)); + } + + /** + * @param column + * @param index filtered index to retrieve + * @return value for the filtered index + */ + public int getInt(int column, int index ){ + return bank.getInt(column, indexList.get(index)); + } + + /** + * @param column + * @param index filtered index to retrieve + * @return value for the filtered index + */ + public long getLong(int column, int index ){ + return bank.getLong(column, indexList.get(index)); + } + + /** + * @param column + * @param index filtered index to retrieve + * @return value for the filtered index + */ + public float getFloat(int column , int index ){ + return bank.getFloat(column, indexList.get(index)); + } + /** * @param index filtered index to retrieve * @return true bank row index corresponding to the filtered index From 8dfa60f06d70bb7df78c876875acf866008dcb95 Mon Sep 17 00:00:00 2001 From: Nathan Baltzell Date: Fri, 14 Aug 2026 21:26:53 -0400 Subject: [PATCH 2/2] extension class too --- .../org/jlab/detector/banks/RawDataBank.java | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/common-tools/clas-detector/src/main/java/org/jlab/detector/banks/RawDataBank.java b/common-tools/clas-detector/src/main/java/org/jlab/detector/banks/RawDataBank.java index 2d4cbb5c97..b4b5e844cd 100644 --- a/common-tools/clas-detector/src/main/java/org/jlab/detector/banks/RawDataBank.java +++ b/common-tools/clas-detector/src/main/java/org/jlab/detector/banks/RawDataBank.java @@ -98,6 +98,51 @@ public float getFloat(String varName, int index ){ return dataBank.getFloat(varName, indexList.get(index)); } + /** + * @param index filtered index to retrieve + * @return value for the filtered index + */ + @Override + public int getByte(int column, int index ){ + return dataBank.getByte(column, indexList.get(index)); + } + + /** + * @param index filtered index to retrieve + * @return value for the filtered index + */ + @Override + public int getShort(int column, int index ){ + return dataBank.getShort(column, indexList.get(index)); + } + + /** + * @param index filtered index to retrieve + * @return value for the filtered index + */ + @Override + public int getInt(int column, int index ){ + return dataBank.getInt(column, indexList.get(index)); + } + + /** + * @param index filtered index to retrieve + * @return value for the filtered index + */ + @Override + public long getLong(int column, int index ){ + return dataBank.getLong(column, indexList.get(index)); + } + + /** + * @param index filtered index to retrieve + * @return value for the filtered index + */ + @Override + public float getFloat(int column, int index ){ + return dataBank.getFloat(column, indexList.get(index)); + } + public static void main(String[] args){ RawDataBank ftof = new RawDataBank("FTOF::adc");