2Fluorescence decay pile-up
3==========================
4In single photon counting at high count rates subseqentially emitted
5photons cannot be detected. This effect is called pile up, as it changes
6the the shape of fluorescence decay curves. This examples illustrates
7how pile-up changes the shape of fluorescence decays.
15 print(
"To run this example, please first install the 'scipy'")
16 print(
"Python module.")
21irf_position, irf_width = 1.0, 0.2
22time_axis = np.linspace(0, 10, n_channels)
23dt = time_axis[1] - time_axis[0]
25irf = scipy.stats.norm.pdf(time_axis, loc=irf_position, scale=irf_width)
26lifetime_spectrum = np.array([100., 4])
27data = np.zeros_like(irf)
49 'repetition_rate': 1./period * 1000.,
50 'instrument_dead_time': 120.,
51 'measurement_time': 0.001,
52 'pile_up_model':
"coates"
55data_with_pileup = np.copy(data)
57 model=data_with_pileup,
63ax = fig.add_subplot(1, 1, 1)
64ax.semilogy(data_with_pileup, label=
'with pileup')
65ax.semilogy(data, label=
'no pileup')
Bayesian Fluorescence Framework.
void decay_fconv(double *fit, double *x, double *lamp, int numexp, int start, int stop, double dt=0.05)
Convolve lifetime spectrum with instrument response (fast convolution, low repetition rate).
void decay_add_pile_up_to_model(double *model, int n_model, double *data, int n_data, double repetition_rate, double instrument_dead_time, double measurement_time, std::string pile_up_model="coates", int start=0, int stop=-1)
Add a pile-up distortion to the model function.