Belle II Software development
|
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. | |
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. | |
double | m_r1 |
See above/. | |
Static Public Attributes | |
static constexpr int | c_nt = 12 |
Signal function is sampled in c_nt time steps with c_ndt substeps and c_ntail steps. | |
static constexpr int | c_ndt = 5 |
Number of substeps. | |
static constexpr int | c_ntail = 20 |
Number of tail steps. | |
static constexpr double | c_dt = 0.5 |
Time step. | |
static constexpr double | c_idt = 1 / c_dt |
Inverted time step. | |
static constexpr double | c_dtn = c_dt / c_ndt |
Time substep. | |
static constexpr 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.
|
inline |
|
explicit |
Constructor with parameters with the parameter layout as in ECLDigitWaveformParameters.
Definition at line 611 of file ECLWaveformFit.cc.
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 640 of file ECLWaveformFit.cc.
|
staticconstexpr |
Time step.
Definition at line 72 of file ECLWaveformFit.h.
Time substep.
Definition at line 78 of file ECLWaveformFit.h.
|
staticconstexpr |
Inverted time step.
Definition at line 75 of file ECLWaveformFit.h.
Inverted time substep.
Definition at line 81 of file ECLWaveformFit.h.
|
staticconstexpr |
Number of substeps.
Definition at line 66 of file ECLWaveformFit.h.
|
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.
|
staticconstexpr |
Number of tail steps.
Definition at line 69 of file ECLWaveformFit.h.
Derivative values.
Definition at line 87 of file ECLWaveformFit.h.
Function values.
Definition at line 84 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.
double m_r1 |
See above/.
Definition at line 100 of file ECLWaveformFit.h.