![]() |
ATLAS Offline Software
|
#include <BipolarFit.h>
Public Member Functions | |
| BipolarFit () | |
| ~BipolarFit () | |
| int | Fit (double *x, const double ex, const double pedestal, const double predefinedwidth, double *result, double *errors, double *chi2) |
Private Member Functions | |
| void | InvertMatrix (double matrix[][3], const int dim, int *) |
| void | InvertSymmetric4x4 (double W[][4]) |
| double | FindInitValues (double *x, double *initValues, int *maxsample) |
| int | TheFitter (double *x, const double ex, double *initValues, int imeas, int *meas, int ipar, int *par, double *chi2, double *result) |
| void | Derivative (double A[][3], double fp[][1], double p0[][1], int imeas, int *meas) |
| double | bipolar (double *, double *) |
| double | FindPow (double z) |
Private Attributes | |
| double | m_n |
| double | m_powcachez |
| double | m_powcachezn |
| double | m_zmax |
| double | m_bipolarNormalization |
| double | m_tsampling |
Definition at line 23 of file BipolarFit.h.
| BipolarFit::BipolarFit | ( | ) |
Definition at line 24 of file BipolarFit.cxx.
| BipolarFit::~BipolarFit | ( | ) |
Definition at line 35 of file BipolarFit.cxx.
|
private |
Definition at line 100 of file BipolarFit.cxx.
|
private |
Definition at line 123 of file BipolarFit.cxx.
|
private |
Definition at line 54 of file BipolarFit.cxx.
|
private |
Definition at line 39 of file BipolarFit.cxx.
| int BipolarFit::Fit | ( | double * | x, |
| const double | ex, | ||
| const double | pedestal, | ||
| const double | predefinedwidth, | ||
| double * | result, | ||
| double * | errors, | ||
| double * | chi2 ) |
Input : x -> the ADC measurements in the 4 samplings ex -> the electronic noise in ADC counts Output: result -> the result of the fit errors -> the errors of the fit parameters chi2 -> the chi2 of the fit Returns: status of the fit
The function return an integer representing different exit status. — Bipolar fit tried — 0 --> Bipolar fit converged OK 1 --> The fit converged but its chi2 is bad 2 --> The fit converged but estimated shaping time very different from expected 3 --> Maximum number of iterations reached OK 4 --> Diverging fit. Return parabola interpolation OK 5 --> One sample saturated. Bipolar fit tried nevertheless 6 --> Late pulse the. The constant shaping time fit converged but the full fit didn't. Return fix shaping time fit results. OK — Bipolar fit not tried — 6 --> More samples saturated. Return estimate based on parabola interpolation 7 --> Parabola interpolation indicates amplitude <5sigmaNoise. Return parabola estimated parameters. OK 8 --> Distorted pulse shape. Fit likely to fail if attempted.parabola interpolation returned 9 --> Too late pulse. Bipolar fit not attempted, return rough estimate OK 10 --> It seems that a reasonable pulse exist, but the fit gave substantially lower value than the parabola. return the parabola (which is kind of lower bound for normal pulses).
| errors | errors |
Definition at line 203 of file BipolarFit.cxx.
|
private |
Definition at line 154 of file BipolarFit.cxx.
|
private |
Definition at line 326 of file BipolarFit.cxx.
|
private |
Definition at line 362 of file BipolarFit.cxx.
|
private |
Definition at line 45 of file BipolarFit.h.
|
private |
Definition at line 41 of file BipolarFit.h.
|
private |
Definition at line 42 of file BipolarFit.h.
|
private |
Definition at line 43 of file BipolarFit.h.
|
private |
Definition at line 46 of file BipolarFit.h.
|
private |
Definition at line 44 of file BipolarFit.h.