Diode channels can sometimes have hysteresis, where the voltage after the x-ray signal does not drop back down to 0 V. Currently we handle this by fitting some cubic function to before and after signal, but this is prone to failure. Also there isn't a particular physical reason for using a cubic polynomial.
Literature search on diode hysteresis. Physical reasons, and physically accurate model for correcting hysteresis.
Robust method for separating signal peak from zero level and hysteresis level, as well as separating from oscilloscope noise.
Diode channels can sometimes have hysteresis, where the voltage after the x-ray signal does not drop back down to 0 V. Currently we handle this by fitting some cubic function to before and after signal, but this is prone to failure. Also there isn't a particular physical reason for using a cubic polynomial.