]>
Commit | Line | Data |
---|---|---|
adf00ba6 | 1 | //------------------------------------------------------------------------- |
2 | // Description: | |
3 | // This class include into LRC library for Long-Range Correlation analysis | |
4 | // it makes fit of the 1d histogramm | |
5 | // calculates ax+b coefficients with error and hi square | |
6 | // Origin: Petr Naumenko, SPbSU-CERN, Petr.Naoumenko@cern.ch | |
ec6ab54b | 7 | // Andrey Ivanov (SPbSU-CERN), Igor Altsebeev (SPbSU-CERN) |
adf00ba6 | 8 | //------------------------------------------------------------------------- |
9 | ||
ec6ab54b | 10 | #ifndef ALILRCFIT_H |
11 | #define ALILRCFIT_H | |
adf00ba6 | 12 | |
13 | /* See cxx source for full Copyright notice */ | |
ec6ab54b | 14 | #include "TObject.h" |
adf00ba6 | 15 | |
16 | /* $Id$ */ | |
17 | ||
adf00ba6 | 18 | class TH1D; |
19 | ||
ec6ab54b | 20 | class AliLRCFit:public TObject{ |
21 | public: | |
22 | AliLRCFit(); | |
23 | AliLRCFit(TH1D * const h, double xshift = -1.0); | |
24 | AliLRCFit(TH1D * const h, double xmin, double xmax, double xshift = -1.0); | |
25 | virtual ~AliLRCFit(); | |
26 | double GetFitRange() const; | |
27 | double Geta() const; | |
28 | double Getb() const; | |
29 | double Getda() const; | |
30 | double Getdb() const; | |
31 | double Getda1() const; | |
32 | double Getdb1() const; | |
33 | double Gethi2() const; | |
34 | double Getf() const; | |
35 | double Getxmin() const; | |
36 | double Getxmax() const; | |
37 | int GetN() const; | |
38 | ||
39 | private: | |
40 | int fN; //Number of bins | |
41 | int fTrueN; //Number of bins between xmin and xmax | |
42 | int fNmin; //xmin bin | |
43 | int fNmax; //xmax bin | |
44 | double fS1; // work wariable | |
45 | double fSz; // work wariable | |
46 | double fSfz; // work wariable | |
47 | double fSf; // work wariable | |
48 | double fSf2; // work wariable | |
49 | double fhi2; // hi square | |
50 | double fw; // work wariable | |
51 | double fz; // work wariable | |
52 | double f; // work wariable | |
53 | double fnum; // work wariable | |
54 | double fdf; // work wariable | |
55 | double fdelta; // work wariable | |
56 | double fa; // coefficient a of ax+b | |
57 | double fb; // coefficient b of ax+b | |
58 | double fda; //error of coefficient a of ax+b | |
59 | double fdb; //error of coefficient b of ax+b | |
60 | double fda1; // work wariable | |
61 | double fdb1; // work wariable | |
62 | double fxmin; // xmin | |
63 | double fxmax; // xmax | |
64 | ClassDef(AliLRCFit,0) // macro for rootcint | |
adf00ba6 | 65 | |
adf00ba6 | 66 | }; |
67 | ||
68 | #endif | |
69 |