]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSstatistics2.h
First commit.
[u/mrichter/AliRoot.git] / ITS / AliITSstatistics2.h
index d108aeb8cd0ad2cb4ed03db04c960e055ed599b8..2840b57913d0cfb3cd80e53cd45eea53793b55c7 100644 (file)
@@ -21,18 +21,6 @@ class AliITSstatistics2 : public TObject {
     virtual ~AliITSstatistics2();
     void Reset();
     void AddValue(Double_t y,Double_t x,Double_t w);
-    void AddValue(Double_t y,Double_t x){
-                                             // default weight
-                                             AddValue(y,x,1.0);
-                                                                                                         } 
-    void AddValue(Float_t y,Float_t x,Float_t w){
-                                                     // Floating point version
-                                                 AddValue((Double_t)y,(Double_t)x,(Double_t)w);
-                                                                                                                                } 
-    void AddValue(Float_t y,Float_t x){
-                                           // default weight F.
-                                           AddValue(y,x,1.0);
-                                                                                                 }
     Double_t GetXNth (Int_t order);
     Double_t GetYNth (Int_t order);
     Double_t GetYXNth(Int_t order);
@@ -58,19 +46,19 @@ class AliITSstatistics2 : public TObject {
                                                  };
     Double_t GetXN (Int_t order){
                                      // returns x^n
-                                     return fx[order-1];
+                                     return fX[order-1];
                                                                                  };
     Double_t GetYN (Int_t order){
                                      // returns y^n
-                                     return fy[order-1];
+                                     return fY[order-1];
                                                                                  };
     Double_t GetYXN(Int_t order){
                                      // returns (yx)^n
-                                     return fyx[order-1];
+                                     return fYx[order-1];
                                                                                  };
     Double_t GetWN (Int_t order){
                                      // returns w^n (weight)
-                                     return fw[order-1];
+                                     return fW[order-1];
                                                                                  };
     Double_t GetRMSY();
     Double_t GetRMSX();
@@ -84,14 +72,14 @@ class AliITSstatistics2 : public TObject {
     Double_t FitToLine(Double_t &a,Double_t &b);
 
  private:
-    Double_t *fx;    // array of sums of x^n
-        Double_t *fyx;   // array of sums of (xy)^n
-        Double_t *fy;    // array of sums of y^n
-        Double_t *fw;    // array of sums of w^n (weights)
     Int_t  fN;       // number of enetries
-        Int_t  fOrder;   // maximum moment of distributions (^n)
+    Int_t  fOrder;   // maximum moment of distributions (^n)
+    Double_t *fX;    //[fOrder] array of sums of x^n
+    Double_t *fYx;   //[fOrder] array of sums of (xy)^n
+    Double_t *fY;    //[fOrder] array of sums of y^n
+    Double_t *fW;    //[fOrder] array of sums of w^n (weights)
 
 
-    ClassDef(AliITSstatistics2,1)  //
+    ClassDef(AliITSstatistics2,1)  //compute usueful statistics in 2D
 };
 #endif