Versions Compared

Key

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

...

This algorithm is similar to one developed by Andy Salnikov and implemented in cspad_mod.CsPadCalib;in https://github.com/lcls-psana/pdscalibdata/blob/master/src/CsPadCommonModeSubV1.cpp:

  1. for each cspad2x1 sensor an intensity histogram is filled with pedestal-subtracted ADU values (1 bin for each possible ADU value). pixels with bad status are ignored
  2. software finds where histogram crosses threshold (parameter 3)
  3. measure mean/rms of region that is above the threshold
  4. if mean/rms is in allowed range (parameters 1 and 2) then common mode value is set to the mean.
  5. if the correction is not in the allowed range, and par[4]>0.1 (see below) then the common mode value is computed from unbonded pixels (see algorithm #5)
  6. subtract the common mode value from all pixels in the cspad2x1

...