Contents
Class ModeAHDC
java.lang.Object
org.jlab.detector.pulse.HipoExtractor
org.jlab.detector.pulse.ModeAHDC
- All Implemented Interfaces:
IExtractor
A new extraction method dedicated to the AHDC signal waveform
Some blocks of code are inspired by MVTFitter.java and Bonus12 (`createBonusBank()`)
- Author:
- ftouchte
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextract
(org.jlab.utils.groups.NamedEntry pars, int id, long timestamp, long time, short... samples) This method extracts relevant informations from the digitized signal (the samples) and store them in a Pulsevoid
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.Methods inherited from class org.jlab.detector.pulse.HipoExtractor
copyIndices, copyIndices, getIndices, getIndices, getPulses, getPulses, update
-
Field Details
-
Constructor Details
-
Method Details
-
extract
public List<Pulse> extract(org.jlab.utils.groups.NamedEntry pars, int id, long timestamp, long time, short... samples) This method extracts relevant informations from the digitized signal (the samples) and store them in a Pulse- Parameters:
pars
- CCDB rowid
- link to row in source banktimestamp
- ...time
- time (exprimed in bin) of the first channel of the AHDC pulse (after or not zero suppress; if ZS=0, time == 0)samples
- ADC samples
-
update
public void update(int n, org.jlab.utils.groups.IndexedTable it, org.jlab.io.base.DataEvent event, String wfBankName, String adcBankName) Description copied from class:HipoExtractor
This could be overriden, e.g., for non-standard ADC banks.- Overrides:
update
in classHipoExtractor
- 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) Description copied from class:HipoExtractor
This could be overriden, e.g., for non-standard ADC banks.- Overrides:
update
in classHipoExtractor
- Parameters:
n
- number of samples in readoutit
- CCDB table containing extraction initialization parameterswfBank
- input waveform bankadcBank
- output ADC bank
-