]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSstatistics2.h
stdlib.h needed to delare exit on HP
[u/mrichter/AliRoot.git] / ITS / AliITSstatistics2.h
index 5004fcfd7067f73e81b0b3e976ae1c7fc91754e6..2840b57913d0cfb3cd80e53cd45eea53793b55c7 100644 (file)
@@ -21,10 +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){AddValue(y,x,1.0);} // default weight
-    void AddValue(Float_t y,Float_t x,Float_t w){
-             AddValue((Double_t)y,(Double_t)x,(Double_t)w);} // Floating point version
-    void AddValue(Float_t y,Float_t x){AddValue(y,x,1.0);}// default weight F.
     Double_t GetXNth (Int_t order);
     Double_t GetYNth (Int_t order);
     Double_t GetYXNth(Int_t order);
@@ -50,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();
@@ -76,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