Versions Compared

Key

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

...

  1. If the first and/or last event numbers are defined, then the filter will select events in this range only.
  2. If the evtstring is defined, only listed events of event ranges will be selected. For example, the evtstringparameter can be defined as

    Code Block
    bgColor#F7F7ED
     2,5,11-15,20-25,29,30
    

    that means the list of events:

    Code Block
    bgColor#F7F7ED
      2  5  11  12  13  14  15  20  21  22  23  24  25  29  30
    

    In the evtstring parameter the comma "," and sign minus "-" as a dash are the only allowed separators. Blank spaces are also allowed. Other characters may abort the program. The evtstring mode has higher priority than the 1st mode.
    The filterIsOn allows easy turn on/off this filter in *.cfg file.

Module ImgAlgos::EventCounterFilter

ImgAlgos::EventCounterFilter (ImgAlgos > V00-03-46) module is created by request of Thomas Kroll for experiment with mobile rack in SACLA .

Functionality:

Input from file ifname the list of  integer event numbers in ascending order separated by space or '\n'. If current event number counted by the local counter started from 1 and incremented in the event(...) method is equal to one of the event numbers in the file, then event is passed for further processing, otherwise discarded.

 

parameter

default value

description

mode

1

filter mode: 0-off, 1-on, -1-on in inverted decision mode

ifname

 

input file name, is empty by default

print_bits

0

verbosity:

  • =0 - print nothing
  • +1 - input pars
  • +2 - input file content
  • +4 - filter summary
  • +16 - current event number
  • +32 - selection status ("is selected")

Input file (ifname)consists of integer numbers in ascending order separated by space or '\n', for example:

Code Block
2 3 6 7 9 11 15
17 28 32 ...

 

 

Module ImgAlgos::AndorImageProducer

Functionality:

...

  • NDArrCalib uses the source and key_in parameters to get any ndarray<const T,NDIM> object from the event store, where T stands forint16_t, uint16_t, int, float, uint8_t, or double, 1≤NDim≤5,
  • automaticly gets parameters from calibration store for types pedestals, common_mode, pixel_status, pixel_gain, and pixel_rms,
  • gets parameters from user-defined files fname_bkgd and  fname_mask, if their names are specified,
  • the specified by the do_... parameter corrections are applied to raw data  ndarray<const T,NDIM> as follows:

...

  • ImgCalib uses the source and key_in parameters to get the input raw image (as ndarray<const T,2> object), where T stands for int16_t(from V00-03-46), uint16_t, int, float, uint8_t, or double,
  • gets the calibration parameters from files fname_peds, fname_bkgd, fname_gain, fname_mask, and fname_rms, if their names are specified,
  • the specified by the file name corrections are applied per-pixel to raw data image as follows:

    Code Block
    bgColor#F7F7ED
    A_cor = A_raw
            (1) - pedestal              | if the file name is specified in the parameter "fname_peds"
            (2) - N*background          | if the file name is specified in the parameter "fname_bkgd"
            (3) * gain                  | if the file name is specified in the parameter "fname_gain"
            (4) apply mask              | if the file name is specified in the parameter "fname_mask"
            (5) apply N*RMS threshold   | if the file name is specified in the parameter "fname_nrms"
            (6) apply threshold         | if the "do_threshold" = true
    
  • corrected image is saved in the event with key key_out as double type.

...