Package org.jlab.detector.pulse
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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected static voidcopyIndices(DataBank src, DataBank dest, int isrc, int idest) protected static voidcopyIndices(org.jlab.jnp.hipo4.data.Bank src, org.jlab.jnp.hipo4.data.Bank dest, int isrc, int idest) protected static int[]getIndices(DataBank bank, int row) protected static int[]getIndices(org.jlab.jnp.hipo4.data.Bank bank, int row) getPulses(int n, IndexedTable it, DataBank wfBank) getPulses(int n, IndexedTable it, org.jlab.jnp.hipo4.data.Bank wfBank) voidupdate(int n, IndexedTable it, DataEvent event, String wfBankName, String adcBankName) This could be overriden, e.g., for non-standard ADC banks.protected voidupdate(int n, 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.voidupdate(int n, 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jlab.detector.pulse.IExtractorextract
- 
Constructor Details- 
HipoExtractorpublic HipoExtractor()
 
- 
- 
Method Details- 
updatepublic void update(int n, 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 readout
- it- CCDB table containing extraction initialization parameters
- event- the event to modify
- schema- bank schema factory
- wfBankName- name of the input waveform bank
- adcBankName- name of the output ADC bank
 
- 
updateThis could be overriden, e.g., for non-standard ADC banks.- Parameters:
- n- number of samples in readout
- it- CCDB table containing extraction initialization parameters
- event- the event to modify
- wfBankName- name of the input waveform bank
- adcBankName- name of the output ADC bank
 
- 
updateprotected void update(int n, 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 readout
- it- CCDB table containing extraction initialization parameters
- wfBank- input waveform bank
- adcBank- output ADC bank
 
- 
copyIndicesprotected static void copyIndices(org.jlab.jnp.hipo4.data.Bank src, org.jlab.jnp.hipo4.data.Bank dest, int isrc, int idest) 
- 
copyIndices
- 
getIndicesprotected static int[] getIndices(org.jlab.jnp.hipo4.data.Bank bank, int row) 
- 
getIndices
- 
getPulses
- 
getPulses
 
-