Versions Compared

Key

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

...

  • par[0] - algorithm # 7
  • par[1] - mode 0/ +1/ +2/ +4 - turned off /  in rows /  in columns / in banks. Each correction consumes extra time.
  • par[2] - maximal allowed common mode correction to protect from over-correction at high illumination - needs to be adjusted bu by users per experiment
Note

rows and columns are one dimensional set of pixels limited by the shape of bank.

  • jungfrau panel shape=(512,1024) consists of 2x4=8 ASICs (512,512), each ASIC contains 4 banks, bank shape=(256,64) 
  • epix10ka panel shape=(352,384) consists of 2x2=4 ASICs (176,192), each ASIC contains 4 banks, bank shape=(176,48) 
  • common mode correction is applied to pixels in high gain mode only for jungfrau and H or M modes (fixed or auto-switching) only for epix10ka panels, respectively.
  • common mode is evaluated for good pixels only (marked by 1 in mask).
  • mask is combined of 2 sources (if available)
    • det.calib(..., mbits=1,...) which is used in det.mask_comb(..., mbits=1,...). Parameter mbits controls mask of many sources, including pixel_status, borders, un-bond pixelsunbonded pixels (cspad only), and user-defined pixel_mask.
    • det.calib(..., mask=None,...) user specified mask shaped as det.raw

...

Code Block
# cmpars=None # for default
# cmpars=(7,0,1000) # turn off common mode correction
# cmpars=(7,1,1000) # correction in rows
# cmpars=(7,2,1000) # correction in columns - works the best for epix10ka
# cmpars=(7,34,1000) # correction in rows and columnsbanks
# cmpars=(7,43,1000) # correction in banks rows and columns - works the best for jungfrau
# cmpars=(7,87,1000) # correction in banks, rows and columns (in this order - banks first, then rows, then columns)
nda = det.calib(evt, cmpars=(7,3,1000), mbits=1, mask=None, **kwargs)

...