Contents
- Description
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- update(int, IndexedTable, Event, SchemaFactory, String, String)
- update(int, IndexedTable, DataEvent, String, String)
- update(int, IndexedTable, Bank, Bank)
- copyIndices(Bank, Bank, int, int)
- copyIndices(DataBank, DataBank, int, int)
- getIndices(Bank, int)
- getIndices(DataBank, int)
- getPulses(int, IndexedTable, DataBank)
- getPulses(int, IndexedTable, Bank)
Class HipoExtractor
java.lang.Object
org.jlab.detector.pulse.HipoExtractor
- All Implemented Interfaces:
IExtractor
For now, a place to store standard boilerplate for waveform/pulse HIPO
manipulations. No bounds checking regarding number of samples.
Here an IndexedTable object from CCDB is used to pass initialization parameters
to the extractor. If that object is null, the @{link org.jlab.detector.pulse.IExtractor.extract}
method should know what to do, e.g., hardcoded, channel-independent parameters.
FIXME: Passing the #samples around is obviously bad, and there's probably a
few non-horrible ways that can be addressed without changing bank format.
- Author:
- baltzell
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
copyIndices
(org.jlab.io.base.DataBank src, org.jlab.io.base.DataBank dest, int isrc, int idest) protected static void
copyIndices
(org.jlab.jnp.hipo4.data.Bank src, org.jlab.jnp.hipo4.data.Bank dest, int isrc, int idest) protected static int[]
getIndices
(org.jlab.io.base.DataBank bank, int row) protected static int[]
getIndices
(org.jlab.jnp.hipo4.data.Bank bank, int row) getPulses
(int n, org.jlab.utils.groups.IndexedTable it, org.jlab.io.base.DataBank wfBank) getPulses
(int n, org.jlab.utils.groups.IndexedTable it, org.jlab.jnp.hipo4.data.Bank wfBank) void
update
(int n, org.jlab.utils.groups.IndexedTable it, org.jlab.io.base.DataEvent event, String wfBankName, String adcBankName) This could be overriden, e.g., for non-standard ADC banks.protected void
update
(int n, org.jlab.utils.groups.IndexedTable it, org.jlab.jnp.hipo4.data.Bank wfBank, org.jlab.jnp.hipo4.data.Bank adcBank) This could be overriden, e.g., for non-standard ADC banks.void
update
(int n, org.jlab.utils.groups.IndexedTable it, org.jlab.jnp.hipo4.data.Event event, org.jlab.jnp.hipo4.data.SchemaFactory schema, String wfBankName, String adcBankName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jlab.detector.pulse.IExtractor
extract
-
Constructor Details
-
Method Details
-
update
public void update(int n, org.jlab.utils.groups.IndexedTable it, org.jlab.jnp.hipo4.data.Event event, org.jlab.jnp.hipo4.data.SchemaFactory schema, String wfBankName, String adcBankName) - Parameters:
n
- number of samples in readoutit
- CCDB table containing extraction initialization parametersevent
- the event to modifyschema
- bank schema factorywfBankName
- name of the input waveform bankadcBankName
- name of the output ADC bank
-
update
public void update(int n, org.jlab.utils.groups.IndexedTable it, org.jlab.io.base.DataEvent event, String wfBankName, String adcBankName) This could be overriden, e.g., for non-standard ADC banks.- Parameters:
n
- number of samples in readoutit
- CCDB table containing extraction initialization parametersevent
- the event to modifywfBankName
- name of the input waveform bankadcBankName
- name of the output ADC bank
-
update
protected void update(int n, org.jlab.utils.groups.IndexedTable it, org.jlab.jnp.hipo4.data.Bank wfBank, org.jlab.jnp.hipo4.data.Bank adcBank) This could be overriden, e.g., for non-standard ADC banks.- Parameters:
n
- number of samples in readoutit
- CCDB table containing extraction initialization parameterswfBank
- input waveform bankadcBank
- output ADC bank
-
copyIndices
protected static void copyIndices(org.jlab.jnp.hipo4.data.Bank src, org.jlab.jnp.hipo4.data.Bank dest, int isrc, int idest) -
copyIndices
protected static void copyIndices(org.jlab.io.base.DataBank src, org.jlab.io.base.DataBank dest, int isrc, int idest) -
getIndices
protected static int[] getIndices(org.jlab.jnp.hipo4.data.Bank bank, int row) -
getIndices
protected static int[] getIndices(org.jlab.io.base.DataBank bank, int row) -
getPulses
-
getPulses
-