Contents
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 class
static enum
-
Field Summary
FieldsFields inherited from class org.jlab.detector.banks.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 TypeMethodDescriptionint
adc
(int index) int
component
(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.int
layer
(int index) static void
int
sector
(int index) final void
setFilter
(RawBank.OrderType... types) int
tdc
(int index) int
trueOrder
(int index) Maybe we should name this something else?
-
Field Details
-
Constructor Details
-
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:
NoSuchFieldException
IllegalAccessException
IllegalArgumentException
-
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:
NoSuchFieldException
IllegalAccessException
IllegalArgumentException
-
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
-