]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/EBYE/LRC/AliLRCFit.h
First version of the long range correlation studies in the EbyE directory (Petr Naumenko)
[u/mrichter/AliRoot.git] / PWG2 / EBYE / LRC / AliLRCFit.h
1 //-------------------------------------------------------------------------\r
2 //    Description: \r
3 //    This class include into LRC library for Long-Range Correlation analysis\r
4 //    it makes fit of the 1d histogramm\r
5 //    calculates ax+b coefficients with error and hi square\r
6 //    Origin: Petr Naumenko, SPbSU-CERN, Petr.Naoumenko@cern.ch\r
7 //-------------------------------------------------------------------------\r
8 \r
9 #ifndef ALILRCFIT_H\r
10 #define ALILRCFIT_H\r
11 \r
12 /*  See cxx source for full Copyright notice */\r
13 \r
14 \r
15 /* $Id$ */\r
16 \r
17 #include "TFile.h"\r
18 #include "TH1D.h"\r
19 #include "TH2D.h"\r
20 #include "math.h"\r
21 #include "TProfile.h"\r
22 #include "TPaveText.h"\r
23 #include "TF1.h"\r
24 #include "TStyle.h"\r
25 \r
26 \r
27 class TH1D;\r
28 class TH2D;\r
29 class TFile;\r
30 \r
31 \r
32 class AliLRCFit{\r
33     public:\r
34         AliLRCFit();\r
35         AliLRCFit(TH1D* h);\r
36         AliLRCFit(TH1D* h, double xmin, double xmax);\r
37         virtual ~AliLRCFit();\r
38         double Geta() const;\r
39         double Getb() const;\r
40         double Getda() const;\r
41         double Getdb() const;\r
42         double Getda1() const;\r
43         double Getdb1() const;\r
44         double Gethi2() const;\r
45         double Getf() const;\r
46         double Getxmin() const;\r
47         double Getxmax() const;\r
48         int GetN() const;\r
49 \r
50     private:\r
51         int fN; //Number of bins\r
52         int fTrueN; //Number of bins between xmin and xmax\r
53         int fNmin; //xmin bin\r
54         int fNmax; //xmax bin \r
55         double fS1; // work wariable\r
56         double fSz; // work wariable\r
57         double fSfz; // work wariable\r
58         double fSf; // work wariable\r
59         double fSf2; // work wariable\r
60         double fhi2; // hi square\r
61         double fw; // work wariable\r
62         double fz; // work wariable\r
63         double f; // work wariable\r
64         double fnum; // work wariable\r
65         double fdf; // work wariable\r
66         double fdelta; // work wariable\r
67         double fa; // coefficient a of ax+b\r
68         double fb; // coefficient b of ax+b\r
69         double fda; //error of coefficient a of ax+b\r
70         double fdb; //error of coefficient b of ax+b\r
71         double fda1;  // work wariable\r
72         double fdb1; // work wariable\r
73         double fxmin; // xmin\r
74         double fxmax; // xmax\r
75         ClassDef(AliLRCFit,0)                 // macro for rootcint\r
76 \r
77 };\r
78 \r
79 #endif\r
80 \r