Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

See also Example for Module ImgAlgos::PrincetonImageProducer.

 

Anchor
ImgAlgos::AcqirisArrProducer
ImgAlgos::AcqirisArrProducer

Module ImgAlgos::AcqirisArrProducer

  • Gets acqiris configuration and data from Acqiris::ConfigV1 and Acqiris::DataDescV1,  objects using parameters source and key_in;
  • produces ndarray<double,2> of shape[] = {nbrChannels, nbrSamples} for waveforms and time stamps;
  • save saves configuration data in the file defined by fname_prefix;
  • save saves waveforms and time stamps in the event store with keys key_wform and key_wtime.

...

 

Anchor
ImgAlgos::AcqirisAverage
ImgAlgos::AcqirisAverage

Module ImgAlgos::AcqirisAverage

  • Gets Acqiris waveforms from event store as ndarray<double,2> object using parameters source and key_in;
  • Apply performs waveform selection controlled by parameters: thresholds, is_postive_signal, do_inverse_selection, in the range depending on local event numbers skip_events and proc_events;
  • After after number of events proc_events or save at the end of job (whatever happens first), saves ndarray<double,2> of averaged waveforms in the file fname_ave_prefix and in the event store with source and key_out.

parameter

default value

description

source

"DetInfo(:Acqiris)"

Source of data.

key_in

"acq_wform"

Key for input data (raw - by default).

key_average"acq-ave"Keyword for averaged waveform array saved in the evt store. If empty – array is not saved.
fname_ave_prefix"acq-ave"Text file name prefix for averaged array, full name will be extended by the experiment name, run number and suffix "-ave-wfs.txt", for example: "acq-amo01509-r0125-ave-wfs.txt".
thresholds""List of threshold values for all Acqiris channels separated by space. If empty – threshold selection is not applied, all waveforms are averaged.
is_postivepositive_signaltruefalseThreshold crossing algorithm depends on signal polarity (sign of threshold value is not changed!).
do_inverse_selection

false

This parameter inverts selection of the waveforms for averaging in case of threshold crossing.

skip_events

0

Number of events (from the beginning of job) to skip before begin averaging.

proc_events

10000000

Number of events for averaging.

print_bits

0

Verbosity:

  • =0 - print nothing
  • +1 - input parameters
  • +2 - ndarray dimensions
  • +4 - begin/end accumulate statistics record
  • +8 - record about saving file with averaged array
  • +16 - statistics of averaged waveforms (number of accumulated)
  • +32 - part of the input waveform

 Example for Module ImgAlgos::AcqirisAverage

 

Anchor
ImgAlgos::AcqirisCalib
ImgAlgos::AcqirisCalib

Module ImgAlgos::AcqirisCalib

  • Gets Acqiris waveforms from event store as ndarray<double,2> object using parameters source and key_in;
  • Process processes events in the range depending on local event numbers skip_events and proc_events;
  • At at the 1st processed event load loads the fname_base_line file with baseline  ndarray<double,2>;
  • Subtract subtract baseline from waveforms;
  • Save save corrected waveforms in the event store as ndarray<double,2> object using parameters source and key_out.

parameter

default value

description

source

"DetInfo(:Acqiris)"

Source of data.

key_in

"acq_wform"

Key for input ndarray with raw waveforms from evt store. For now it is assumed that this array is produced by the

AcqirisArrProducer or AcqirisAverage modules.

key_out

"wf-calibrated"

Key for output ndarray with calibrated waveforms.

fname_base_line

"acq-ave"

Name of the input text file with array of the baselines for active  Acqiris channels. By default this name coincides with the name of the file produced by the module AcqirisAverage. This allows to use these to modules in chain with auto-generated names of files. If the file with auto-generated extended name (which looks like "acq-amo01509-r0125-ave-wfs.txt") is not found on disk, the file name without extension will be tested. If it is not found as well, baseline subtraction will not be performed and output array will be identical to input one.

skip_events

0

Number of events (from the beginning of job) to skip before begin subtraction.

proc_events

10000000

Number of events for subtraction.

print_bits

0

Verbosity:

  • =0 - print nothing
  • +1 - input parameters
  • +2 - ndarray dimensions
  • +4 - begin/end of subtraction
  • +8 - Information about loading of the input file with baseline array
  • +16 - part of the input array
  • +32 - part of baseline array

...