Spectral fidelity, sub-pixel resolution and accurate timing are of particular importance for spectroscopic X-ray imaging as well as single particle track reconstruction. The maximum achievable detector performance strongly depends on the signal formation in the sensor, the transfer function of the charge sensitive preamplifier and the applied energy threshold.
For Timepix-like hybrid pixel detectors providing Time-over-Threshold and Time-of-Arrival information an additional per-pixel calibration for deposited energy and timewalk is needed. This calibration represents a crucial component in the detection process.
The most commonly used energy calibration is based on the measurement of the single pixel hit spectra for a set of X-ray fluorescence lines. In order to replicate measured energy calibrations and, as a further step, improve the quality of the calibration, a realistic simulation of the full detector system is needed.
In this paper we present an implementation of the simulation of the charge sensitive preamplifier, taking into account the dependence of the effective feedback current on the signal amplitude, the bandwidth limited output noise, threshold and feedback current variations, ToA and ToT clock frequency and clock phase shifts, which can be parametrized via the configuration file.
As a first test the plug-in will be used to validate and improve the energy calibration procedure for Timepix3 detectors. First results of the comparison of simulated and measured energy calibrations are presented.