![]() |
Belle II Software
release-08-02-04
|
Interpolation of signal shape using function values and the first derivative. More...
#include <ECLWaveformFit.h>
Public Member Functions | |
| SignalInterpolation2 () | |
| Default constructor. | |
| SignalInterpolation2 (const std::vector< double > &) | |
| Constructor with parameters with the parameter layout as in ECLDigitWaveformParameters. | |
| void | getShape (double t0, double *function, double *derivatives) const |
| Returns signal shape and derivatives in 31 equidistant time points starting from t0. More... | |
Public Attributes | |
| double | m_FunctionInterpolation [c_nt *c_ndt+c_ntail] |
| Function values. | |
| double | m_DerivativeInterpolation [c_nt *c_ndt+c_ntail] |
| Derivative values. | |
| double | m_r0 |
| Assuming exponential drop of the signal function far away from 0, extrapolate it to +inf. More... | |
| double | m_r1 |
| See above/. | |
Static Public Attributes | |
| constexpr static int | c_nt = 12 |
| Signal function is sampled in c_nt time steps with c_ndt substeps and c_ntail steps. More... | |
| constexpr static int | c_ndt = 5 |
| Number of substeps. | |
| constexpr static int | c_ntail = 20 |
| Number of tail steps. | |
| constexpr static double | c_dt = 0.5 |
| Time step. | |
| constexpr static double | c_idt = 1 / c_dt |
| Inverted time step. | |
| constexpr static double | c_dtn = c_dt / c_ndt |
| Time substep. | |
| constexpr static double | c_idtn = c_ndt / c_dt |
| Inverted time substep. | |
Interpolation of signal shape using function values and the first derivative.
Definition at line 57 of file ECLWaveformFit.h.
| void getShape | ( | double | t0, |
| double * | function, | ||
| double * | derivatives | ||
| ) | const |
Returns signal shape and derivatives in 31 equidistant time points starting from t0.
| [in] | t0 | Time. |
| [out] | function | Function values. |
| [out] | derivatives | Derivatives. |
Definition at line 579 of file ECLWaveformFit.cc.
|
staticconstexpr |
Signal function is sampled in c_nt time steps with c_ndt substeps and c_ntail steps.
c_dt is the time step.
Definition at line 63 of file ECLWaveformFit.h.
| double m_r0 |
Assuming exponential drop of the signal function far away from 0, extrapolate it to +inf.
f(i_last + i) = f(i_last)*m_r0^i f'(i_last + i) = f'(i_last)*m_r1^i where i_last is the last point within sampled values in m_FunctionInterpolation (m_DerivativeInterpolation).
Definition at line 97 of file ECLWaveformFit.h.