Belle II Software development
|
Class to perform fitting for each xt function. More...
#include <XTFunction.h>
Public Member Functions | |
XTFunction (TProfile *h1) | |
Initialized with TProfile histogram. | |
XTFunction (TProfile *h1, int mode) | |
Initialized with TProfile histogram and mode. | |
XTFunction (TH1F *h1, int mode) | |
Initialized with TH1D histogram and mode. | |
XTFunction (const XTFunction &x) | |
Copy constructor. | |
XTFunction & | operator= (const XTFunction &x) |
Assignment operator. | |
void | setP6 (double p6) |
Set Parameter 6 for polynomia fit. | |
bool | isValid () |
Is valid. | |
void | setMode (int mode) |
Set XT mode. | |
void | setBField (bool bfield) |
set to use BField | |
void | setXTParams (const double p[8]) |
Set Parameters for fit. | |
void | setXTParams (double p0, double p1, double p2, double p3, double p4, double p5, double p6, double p7) |
Set Initial parameters for fitting. | |
void | setFitRange (double tmin, double tmax) |
Set Fit range. | |
void | setSmallestEntryRequired (int min) |
Set minimum number of entry required for fit. | |
void | setDebug (bool debug) |
Set Debug. | |
int | getFitStatus () |
get fitted flag. | |
double | getProb () |
Get the chi2 probability. | |
void | getFittedXTParams (double pa[8]) |
get fit parameters. | |
TF1 * | getXTFunction () |
Get XT function. | |
TProfile * | getFittedHisto () |
Get histogram. | |
void | fitXT () |
Do fitting. | |
void | FitPol5 () |
Fit xt histogram incase 5th order polynomial is used. | |
void | FitChebyshev () |
Fit xt histogram incase 5th order Chebeshev polynomial is used. | |
bool | validate () |
Validate the xt has proper shape. | |
Private Attributes | |
TProfile * | m_h1 |
Histogram of xt relation. | |
TF1 * | m_fitFunc |
Fit function. | |
int | m_mode = c_Chebyshev |
XT mode, 0 is for 5th order polynomial, 1 is Chebshev polynomial. | |
bool | m_debug = true |
Print debug durring fitting or not. | |
bool | m_draw = false |
Draw and store png plot of each histo or not. | |
bool | m_bField = true |
With magnetic field or not. | |
int | m_minRequiredEntry = 800 |
Minimum entry required for each histo. | |
double | m_XTParam [8] = {} |
Parameter fo xt. | |
double | m_FittedXTParams [8] = {} |
Fitted parameters. | |
int | m_fitflag = 0 |
Fit Flag =-1: low statitic =1: good =0: Fit failure =2: Error Outer =3: Error Inner part;. | |
double | m_Prob = 0 |
Chi2 prob of fitting. | |
double | m_tmin = 20 |
lower boundary of fit range | |
double | m_tmax = m_XTParam[6] + 50 |
upper boundary of fit range | |
Class to perform fitting for each xt function.
Definition at line 69 of file XTFunction.h.
|
inlineexplicit |
Initialized with TProfile histogram.
Definition at line 74 of file XTFunction.h.
|
inline |
Initialized with TProfile histogram and mode.
Definition at line 87 of file XTFunction.h.
|
inline |
Initialized with TH1D histogram and mode.
Definition at line 103 of file XTFunction.h.
|
inline |
Copy constructor.
Definition at line 118 of file XTFunction.h.
void FitChebyshev | ( | ) |
Fit xt histogram incase 5th order Chebeshev polynomial is used.
Definition at line 436 of file XTFunction.h.
void FitPol5 | ( | ) |
Fit xt histogram incase 5th order polynomial is used.
Definition at line 331 of file XTFunction.h.
|
inline |
Do fitting.
Definition at line 277 of file XTFunction.h.
|
inline |
|
inline |
|
inline |
get fit parameters.
Definition at line 258 of file XTFunction.h.
|
inline |
Get the chi2 probability.
Definition at line 251 of file XTFunction.h.
|
inline |
|
inline |
Is valid.
Definition at line 175 of file XTFunction.h.
|
inline |
Assignment operator.
Definition at line 140 of file XTFunction.h.
|
inline |
|
inline |
|
inline |
Set Fit range.
Definition at line 221 of file XTFunction.h.
|
inline |
Set XT mode.
1 is 5th order Chebshev polynomial. 0 is 5th order polynomial.
Definition at line 189 of file XTFunction.h.
|
inline |
Set Parameter 6 for polynomia fit.
Definition at line 167 of file XTFunction.h.
|
inline |
Set minimum number of entry required for fit.
Definition at line 229 of file XTFunction.h.
|
inline |
Set Parameters for fit.
Definition at line 201 of file XTFunction.h.
|
inline |
bool validate | ( | ) |
Validate the xt has proper shape.
Suppose to be bad xt if |xt(0)| > 0.2.
Definition at line 419 of file XTFunction.h.
|
private |
With magnetic field or not.
Definition at line 312 of file XTFunction.h.
|
private |
Print debug durring fitting or not.
Definition at line 310 of file XTFunction.h.
|
private |
Draw and store png plot of each histo or not.
Definition at line 311 of file XTFunction.h.
|
private |
Fit Flag =-1: low statitic =1: good =0: Fit failure =2: Error Outer =3: Error Inner part;.
Definition at line 325 of file XTFunction.h.
|
private |
Fit function.
Definition at line 304 of file XTFunction.h.
|
private |
Fitted parameters.
Definition at line 315 of file XTFunction.h.
|
private |
Histogram of xt relation.
Definition at line 303 of file XTFunction.h.
|
private |
Minimum entry required for each histo.
Definition at line 313 of file XTFunction.h.
|
private |
XT mode, 0 is for 5th order polynomial, 1 is Chebshev polynomial.
Definition at line 309 of file XTFunction.h.
|
private |
Chi2 prob of fitting.
Definition at line 326 of file XTFunction.h.
|
private |
upper boundary of fit range
Definition at line 328 of file XTFunction.h.
|
private |
lower boundary of fit range
Definition at line 327 of file XTFunction.h.
|
private |
Parameter fo xt.
Definition at line 314 of file XTFunction.h.