Defines a function to fit scintillation pulses and store results. More...
#include <PulseFit.hh>
Public Member Functions | |
PulseFit () | |
Constructor. | |
virtual | ~PulseFit () |
Destructor. | |
TF1 * | GetTF1 () |
Get a pointer to the fit function. | |
void | StoreParams (TF1 *func) |
Store parameters from the supplied TF1. | |
void | Clear () |
Reset all variables to defaults. | |
Double_t | operator() (Double_t *x, Double_t *par) |
needed to generate the TF1 | |
Double_t | common_func1 (double t, double t_0, double sig, double tau) |
Double_t | common_func2 (double t, double t_0, double sig, double tau) |
Double_t | common_func3 (double t, double t_0, double sig, double tau_a, double tau_b) |
Public Attributes | |
bool | fit_done |
was the fit completed? | |
int | fit_result |
the minuit result of the fit | |
double | chi2 |
chi-squared from the fit | |
int | ndf |
degrees of freedom from the fit | |
int | start_index |
index marking the start of the fit | |
int | end_index |
index for the end of the fit | |
double | range_low |
low end of fitting/drawing range | |
double | range_high |
high end of fitting/drawing range | |
double | amplitude |
Amplitude fit parameter. | |
double | c1 |
Fraction of fast component fit parameter. | |
double | tau1 |
Fast Component lifetime fit parameter. | |
double | tau2 |
Slow Component lifetime fit parameter. | |
double | sigma |
PMT Jitter fit parameter. | |
double | decay |
Decay time of integrator fit parameter. | |
double | baseline |
Baseline fit parameter. | |
double | t0 |
Event start time fit parameter. | |
double | rc |
Decay time of RC circuit fit parameter. | |
Static Private Attributes | |
static const int | nparams = 9 |
number of parameters in the fit |
Defines a function to fit scintillation pulses and store results.
Definition at line 21 of file PulseFit.hh.