QFitter Class Reference

Inheritance diagram for QFitter:

QMathFunction

List of all members.


Detailed Description

fitter

single channel OF trigger engine

Author:
Marco Vignati

Public Member Functions

 QFitter (QRoutinePointer funcpointer, unsigned int NParameters, double LowBound, double UpBound)
 constructor
 QFitter (const QMathFunction &func)
 copy constructor
 ~QFitter ()
 destructor
void SetParameter (unsigned int p, double val, double min, double max)
 set parameter and its range
void SetParameter (unsigned int p, const char *name, double val, double min, double max)
 set parameter, its range and name
void FixParameter (unsigned int p, double val)
 fix parameter
void FixParameter (unsigned int p, const char *name, double val)
 fix parameter and its name
void Print ()
 print parameters
void PrintResult ()
 print fitted parameters
QError Fit (const QVector &data, double minfit, double maxfit, double binsize)
 fit QVector between minfit and max fits
QError Fit (const QVector &data, double error, double minfit, double maxfit, double binsize)
 fit QVector between minfit and max fits assuming the same error for all points
QError Fit (const QVector &data, const QVector &errors, double minfit, double maxfit, double binsize)
 fit QVector between minfit and max fits assuming errors on points
QMathFunction GetFittedFunction ()
 Get fitted function.
QVectorGetResiduals ()
 Get residuals.
double GetChiSquare ()
 Get chi square over NDOF.
void SetTF1 (TF1 &f1)
 set parameters and ranges from TF1

Static Private Member Functions

static double RootRoutine (double *x, double *params)
 function intercace used to fit with root

Private Attributes

double * fParMin
double * fParMax
double * fParErr
bool * fIsFixed
QVector fResiduals
QVector fErrors
double fChiSquare

Static Private Attributes

static const QMathFunctionfFunctionP = NULL
 pointer to this fitting function

Member Function Documentation

QError QFitter::Fit ( const QVector data,
const QVector errors,
double  minfit,
double  maxfit,
double  binsize 
)


The documentation for this class was generated from the following files:

Generated on Tue Nov 16 10:50:06 2010 for CUORE Software by  doxygen 1.5.6