1 #ifndef ALIITSSTATISTICS2_H
2 #define ALIITSSTATISTICS2_H
3 //////////////////////////////////////////////////////////////////////////
4 // Alice ITS first detector alignment program. //
6 // version: 0.0.0 Draft. //
7 // Date: April 18 1999 //
8 // By: Bjorn S. Nilsen //
10 //////////////////////////////////////////////////////////////////////////
13 class AliITSstatistics2 : public TObject {
18 AliITSstatistics2(Int_t order);
19 AliITSstatistics2(AliITSstatistics2 &source); // copy constructor
20 AliITSstatistics2& operator=(AliITSstatistics2 &source); // operator=
21 virtual ~AliITSstatistics2();
23 void AddValue(Double_t y,Double_t x,Double_t w);
24 void AddValue(Double_t y,Double_t x){AddValue(y,x,1.0);} // default weight
25 void AddValue(Float_t y,Float_t x,Float_t w){
26 AddValue((Double_t)y,(Double_t)x,(Double_t)w);} // Floating point version
27 void AddValue(Float_t y,Float_t x){AddValue(y,x,1.0);}// default weight F.
28 Double_t GetXNth (Int_t order);
29 Double_t GetYNth (Int_t order);
30 Double_t GetYXNth(Int_t order);
39 Double_t GetMeanYX() {
44 // retrun the number of entries
48 // return the maximum moment order
51 Double_t GetXN (Int_t order){
55 Double_t GetYN (Int_t order){
59 Double_t GetYXN(Int_t order){
63 Double_t GetWN (Int_t order){
64 // returns w^n (weight)
70 Double_t GetErrorMeanY();
71 Double_t GetErrorMeanX();
72 Double_t GetErrorMeanYX();
73 Double_t GetErrorRMSY();
74 Double_t GetErrorRMSX();
75 Double_t GetErrorRMSYX();
76 Double_t FitToLine(Double_t &a,Double_t &b);
79 Double_t *fx; // array of sums of x^n
80 Double_t *fyx; // array of sums of (xy)^n
81 Double_t *fy; // array of sums of y^n
82 Double_t *fw; // array of sums of w^n (weights)
83 Int_t fN; // number of enetries
84 Int_t fOrder; // maximum moment of distributions (^n)
87 ClassDef(AliITSstatistics2,1) //