Versions Compared

Key

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

Making a pedestal from selected events within a run

SmallDataAna_psana (psana) as a function that will select events satisfying a certain condition and write out the average of the data, the std of all events and a status set in the same form as the calibration scripts save the data used for processing of the image data.

...

i0Check is used to make sure that we are using events within xray intensity for this selection: if you pass e.g. 'ipm' for XCS or XPP, the average 'ipm value' for off events and all events will be calculated and making the pedestal will be aborted if no difference between the two is seen. Passing "None" will default to the gas detector, and passing an empty string corresponds to no check.