Package org.jlab.detector.banks
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 SummaryNested ClassesModifier and TypeClassDescriptionstatic final classstatic enum
- 
Field SummaryFieldsFields inherited from class org.jlab.detector.banks.FilteredBankbank, DEFAULT_ALLOC, filterList, filterVar, indexList
- 
Constructor SummaryConstructorsConstructorDescriptionRawBank(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 SummaryModifier 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- 
RawBankpublic RawBank(org.jlab.jnp.hipo4.data.Schema sch) 
- 
RawBankpublic RawBank(org.jlab.jnp.hipo4.data.Schema sch, int allocate) 
- 
RawBank
- 
RawBank
 
- 
- 
Method Details- 
setFilter
- 
getFilterGrouppublic 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
 
- 
createFilterGrouppublic 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
 
- 
trueOrderpublic int trueOrder(int index) Maybe we should name this something else?- Parameters:
- index- filtered index
- Returns:
- raw/true order, the first digit
 
- 
sectorpublic int sector(int index) - Parameters:
- index- filtered index
- Returns:
- sector value
 
- 
layerpublic int layer(int index) - Parameters:
- index- filtered index
- Returns:
- layer value
 
- 
componentpublic int component(int index) - Parameters:
- index- filtered index
- Returns:
- component value
 
- 
adcpublic int adc(int index) - Parameters:
- index- filtered index
- Returns:
- adc value
 
- 
tdcpublic int tdc(int index) - Parameters:
- index- filtered index
- Returns:
- tdc value
 
- 
main
 
-