Versions Compared

Key

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

...

For data source  in each run loads/updates calibration geometry file from the calibration DB, evaluates pixel coordinate, area, mask arrays using class PSCalib::GeometryAccess and saves them as ndarray<const TYPE,1> in the env.calibStore() for keys (TYPE=float) key_out_x, key_out_y, key_out_z, key_out_area(unsigned),(TYPE=unsigned) key_out_area(int), key_out_ix, key_out_iy, key_gfname(string) and (TYPE=uint8_t) key_fname.

The main idea of this module is that calibration geometry file will be found and loaded (if available) automatically and pixel coordinate, index, and index other arrays will be produced and saved in the env.calibStore(), if appropriate keys are not empty.

Configuration parameters

parameter

default value

description

source

DetInfo(:Cspad)

source of data

group

 

group of calibration type, by default will be set from source

key_out_x

x-pix-coords

output key pixel x-coordinate[um] array. If set empty - array is not saved in the event storeenv.calibStore.

key_out_y

y-pix-coords

output key pixel y-coordinate[um] array. If set empty - array is not saved in the event storeenv.calibStore.

key_out_z

z-pix-coords

output key pixel z-coordinate[um] array. If set empty - array is not saved in the event storeenv.calibStore.

key_out_area

""

output key pixel area array, default value is empty - array is not saved in the event storeenv.calibStore

key_out_mask

""

output key pixel mask array, default value is empty - array is not saved in the env.calibStore

key_out_ix

""

output key pixel x-coordinate index array, default value is empty - array is not saved in the event storecenv.alibStore

key_out_iy

""

output key pixel y-coordinate index array, default value is empty - array is not saved in the event storeenv.calibStore

key_fnamegeometry-calibpath to "geometry" calibration file saved as ndarray<char,1> DEPRICATED! USE key_gfname
key_gfnamegeometry-fnamepath to "geometry" calibration file saved as std::string
x0_off_pix0offset of detector origin x0 in number of pixels before evaluation of indexes, by default offset moves xmin to 0.
y0_off_pix0offset of detector origin y0 in number of pixels before evaluation of indexes, by default offset moves ymin to 0.

mask_bits

255

mask control bits. For cspad2x1 sensor mask control bits mean:

  • =0 - all pixels set to 1
  • +1 - mask (set 0) edges
  • +2 - mask two wide central columns
  • +4 - mask unbound pixels
  • +8 - mask unbound pixel neighbours

print_bits

0

verbosity:

  • =0 - print nothing
  • +1 - input pars
  • +2 - calibration file path
  • +4 - list of geometry objects
  • +8 - list of geometry objects with children
  • +16- comments from calibration file
  • +32 - pixel coordinates

...