Versions Compared

Key

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

...

parameter

default value

description

source

"DetInfo(:Cspad)"

input source of data

inputKey

 

key for input data, by default use raw data

outputKey

"bkgd_subtracted"

output key for the next data processing stage

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="3971df15ab078323-bb0d8fbe-45d14769-b4eb9e1d-dca8e8852ce04a76d7283548"><ac:plain-text-body><![CDATA[

bkgd_fname

"cspad_background.dat"

file with CSPad array [4*8*185][388] of averaged background

]]></ac:plain-text-body></ac:structured-macro>

norm_sector

0

CSPad sector in quad from 0 to 7

print_bits

0

module verbosity:

  • =0 - print nothing
  • +1 - input pars
  • +2 - event ID
  • +4 - normalization factor for each event
  • +8 - part of the background array

...

parameter

default value

description

source

"DetInfo(:Cspad)"

input source of data

inkey

 

key for input data, by default use raw data

outkey

"bkgd_subtracted"

output key for the next data processing stage

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="f1659b4545a56200-79f60f9b-487e4bac-a7bdb305-654f4ed1378b47fb7dbc7354"><ac:plain-text-body><![CDATA[

mask_fname

"cspad_mask.dat"

file with CSPad mask array [4*8*185][388]

]]></ac:plain-text-body></ac:structured-macro>

masked_amp

0

this amplitude will replace the amplitude in each masked pixel

mask_control_bits

1

control bits for applied mask:

  • =0 - do not apply any mask
  • +1 - apply mask from file
  • +2 - mask two long edges of 2x1
  • +4 - mask two short edges of 2x1
  • +8 - mask two short rows in the middle of 2x1 (rows with wide pixels)

print_bits

0

module verbosity:

  • =0 - print nothing
  • +1 - input pars (in beginJob)
  • +2 - event ID (in event)
  • +4 - mask statistics (in beginJob)
  • +8 - part of the mask array (in beginJob)

...

See also Example for Module ImgAlgos::CSPadArrPeakAnalysis.

Package py_img_algos

This package contains python modules which work with both frameworks pyana and psana. Functionality of many modules resembles package ImgAlgos

Module py_img_algos.cspad_arr_producer

parameter

default value

description

Module py_img_algos.cspad_image_producer

parameter

default value

description

Module py_img_algos.image_save_in_file

parameter

default value

description

Module py_img_algos.tahometer

Is intended to print records showing job performance current and integrated from the beginning of job:

Code Block
bgColor#AAFFFF

py_img_algos.tahometer: run:0049  evt:000005  t[sec]:     2.575  dt[sec]:     2.575  n/t[1/sec]:     1.942  dn/dt[1/sec]:     1.942

parameter

default value

description

dn

100

interval in number of events to print current statistics

print_bits

0

module verbosity:

  • =0 - print nothing
  • +1 - input pars (once in _init_)
  • +2 - current event statistics (in event and endJob)