Class RawBank
java.lang.Object
org.jlab.detector.banks.FilteredBank
org.jlab.detector.banks.RawBank
- Direct Known Subclasses:
RawDataBank
A FilteredBank specific to raw ADC/TDC banks, filtered on order by decades.
This is to leverage hijacking the higher decimal digits of order to encode
additional information, and avoid reconstruction engines or others from
having to manually interpret order, although they still can if necessary.
- Author:
- baltzell
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic enum -
Field Summary
FieldsFields inherited from class FilteredBank
bank, DEFAULT_ALLOC, filterList, filterVar, indexList -
Constructor Summary
ConstructorsConstructorDescriptionRawBank(org.jlab.jnp.hipo4.data.Schema sch) RawBank(org.jlab.jnp.hipo4.data.Schema sch, int allocate) RawBank(org.jlab.jnp.hipo4.data.Schema sch, int allocate, RawBank.OrderType... types) RawBank(org.jlab.jnp.hipo4.data.Schema sch, RawBank.OrderType... types) -
Method Summary
Modifier and TypeMethodDescriptionintadc(int index) intcomponent(int index) static final RawBank.OrderType[]createFilterGroup(String... type) Create a custom order group from OrderType's string namesstatic final RawBank.OrderType[]getFilterGroup(String group) Get one of the standard OrderGroups from its string name.intlayer(int index) static voidintsector(int index) final voidsetFilter(RawBank.OrderType... types) inttdc(int index) inttrueOrder(int index) Maybe we should name this something else?
-
Field Details
-
FILTER_VAR_NAME
- See Also:
-
-
Constructor Details
-
RawBank
public RawBank(org.jlab.jnp.hipo4.data.Schema sch) -
RawBank
public RawBank(org.jlab.jnp.hipo4.data.Schema sch, int allocate) -
RawBank
-
RawBank
-
-
Method Details
-
setFilter
-
getFilterGroup
public static final RawBank.OrderType[] getFilterGroup(String group) throws NoSuchFieldException, IllegalArgumentException, IllegalAccessException Get one of the standard OrderGroups from its string name.- Parameters:
group- string name of one of the OrderGroups- Returns:
- the corresponding list of orders
- Throws:
NoSuchFieldExceptionIllegalAccessExceptionIllegalArgumentException
-
createFilterGroup
public static final RawBank.OrderType[] createFilterGroup(String... type) throws NoSuchFieldException, IllegalArgumentException, IllegalAccessException Create a custom order group from OrderType's string names- Parameters:
type- string names of OrderTypes- Returns:
- the corresponding list of orders
- Throws:
NoSuchFieldExceptionIllegalAccessExceptionIllegalArgumentException
-
trueOrder
public int trueOrder(int index) Maybe we should name this something else?- Parameters:
index- filtered index- Returns:
- raw/true order, the first digit
-
sector
public int sector(int index) - Parameters:
index- filtered index- Returns:
- sector value
-
layer
public int layer(int index) - Parameters:
index- filtered index- Returns:
- layer value
-
component
public int component(int index) - Parameters:
index- filtered index- Returns:
- component value
-
adc
public int adc(int index) - Parameters:
index- filtered index- Returns:
- adc value
-
tdc
public int tdc(int index) - Parameters:
index- filtered index- Returns:
- tdc value
-
main
-