Public Member Functions | |
| QOffset () | |
| constructor | |
| virtual | ~QOffset () |
| destructor | |
| double | GetChiSquared () |
| chi squared from fit of ideal pulse derivative to pulse derivative | |
| double | GetOffset () |
| get offset | |
| int | GetLowerLimit () |
| get lower limit | |
| int | GetUpperLimit () |
| get upper limit | |
| void | Resample (QEvent *, QVector &) |
| resample normal pulse | |
| void | ResampleIdealPulse (QVector &, bool useResidualOffset=true) |
| resample ideal pulse | |
| void | SetIdealPulse (const QVector &idealPulse) |
| set ideal pulse | |
| void | SetLimits (int lower, int upper) |
| set limits of resampled ideal pulse. ideal pulse resampled within half open interval [lower, upper). normal pulse resampled equivalently based on offset. | |
| void | SetOffset (QEvent *) |
| compute offset of an event | |
| void | SetOffset (double offset) |
| setter for offset | |
Private Member Functions | |
| void | Derivative (const QVector &, QVector &) |
| differentiate a QVector | |
| TSpline3 * | MakeSpline (const QVector &) |
| make a spline interpolation of a TGraph | |
| TGraph * | MakeTGraph (const QVector &) |
| make a TGraph from a QVector | |
| int | Round (double x) |
| simple rounding function | |
Private Attributes | |
| double | fChiSquared |
| chi squared from fit | |
| TSpline3 * | fIdealDerivativeSpline |
| spline of ideal pulse derivative | |
| bool | fIdealPulseIsOk |
| ideal pulse passed sanity check | |
| QVector | fIdealPulseQVector |
| ideal pulse | |
| TSpline3 * | fIdealPulseSpline |
| spline of ideal pulse | |
| int | fLowerLimit |
| lower limit for resampled pulse | |
| double | fOffset |
| offset with respect to ideal pulse | |
| int | fRoundedOffset |
| offset rounded to nearest integer | |
| int | fUpperLimit |
| upper limit for resampled pulse | |
1.5.1