]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSstatistics2.h
Updated version of ITS QA Checker and related modifications (Melinda)
[u/mrichter/AliRoot.git] / ITS / AliITSstatistics2.h
index 6472683ea02d97bc843cf45ca3c9b636095d861e..b3d8a0667dd332277a5f1b426a4a77ee634c568b 100644 (file)
@@ -30,16 +30,21 @@ class AliITSstatistics2 : public TObject {
     Double_t GetMeanYX()const{// return mean Y*X
         return GetYXNth(1);};
     Int_t GetN()const{// retrun the number of entries
+        // Int_t n=0; n=fN;if(fOver!=0) n+=fOver->GetN(); return n;
         return fN;};
     Int_t GetOrder()const{// return the maximum moment order
         return fOrder;};
     Double_t GetXN (Int_t order)const{// returns x^n
+        // Double_t x=0.0; x = fX[order-1];if(fOver!=0) x+=fOver->GetXN(order);
         return fX[order-1];};
     Double_t GetYN (Int_t order)const{// returns y^n
+        // Double_t y=0.0; y = fY[order-1];if(fOver!=0) y+=fOver->GetYN(order);
         return fY[order-1];};
     Double_t GetYXN(Int_t order)const{// returns (yx)^n
+        // Double_t yx=0.0; yx = fYx[order-1];if(fOver!=0) yx+=fOver->GetYXN(order);
         return fYx[order-1];};
     Double_t GetWN (Int_t order)const{// returns w^n (weight)
+        // Double_t w=0.0; w = fW[order-1];if(fOver!=0) w+=fOver->GetWN(order);
         return fW[order-1];};
     Double_t GetRMSY()const; // Returns Y rms value
     Double_t GetRMSX()const; // Returns X rms value
@@ -54,7 +59,15 @@ class AliITSstatistics2 : public TObject {
     Double_t GetChiSquared(Double_t a,Double_t b)const; 
     // Fits data to a line of the form y=ax+b and returns values
     // for a and b.
-    Double_t FitToLine(Double_t &a,Double_t &b)const;
+    Double_t FitToLine(Double_t &a,Double_t &b)const
+    {Double_t ea,eb; return FitToLine(a,ea,b,eb);};
+    // Fits data to a line of the form y=ax+b and returns values
+    // for a and b and find errors on a and b.
+    Double_t FitToLine(Double_t &a,Double_t &ea,Double_t &b,Double_t &eb)const;
+    // Get the minimal significance value
+    // Int_t GetSignificantDigits()const{return fDig;}
+    // Set the minimal significance value
+    // void SetSignificantDigits(Int_t d);
     // Print class in ascii form to stream
     virtual void PrintAscii(ostream *os)const;
     // Read in class in ascii form from stream
@@ -67,6 +80,8 @@ class AliITSstatistics2 : public TObject {
     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)
+    //Int_t fDig;               //  The number of significant digits to keep
+    //AliITSstatistics2 *fOver; //! In case of numerical precistion problems
 
     ClassDef(AliITSstatistics2,1)  //compute usueful statistics in 2D
 };
@@ -74,3 +89,4 @@ class AliITSstatistics2 : public TObject {
 ostream &operator<<(ostream &os,const AliITSstatistics2 &s);
 istream &operator>>(istream &is,AliITSstatistics2 &s);
 #endif
+