]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RALICE/AliSample.h
Fix in the printout of the validity time-stamps
[u/mrichter/AliRoot.git] / RALICE / AliSample.h
index d9c960fee2dde1f76383a079c1e5d6a867ec0880..f1574277692a890eea3d75d36470fb26dc7ceae3 100644 (file)
@@ -8,6 +8,8 @@
 #include <math.h>
 
 #include "Rtypes.h"
+#include "TArrayF.h"
+#include "TH1.h"
  
 class AliSample
 {
@@ -29,9 +31,17 @@ class AliSample
   Float_t GetSigma(Int_t i) const;              // Standard deviation for i-th variable
   Float_t GetCov(Int_t i, Int_t j) const;       // Covariance for i-th and j-th variable
   Float_t GetCor(Int_t i, Int_t j) const;       // Correlation for i-th and j-th variable
-  void Data() const;                            // Stat. info for the complete sample
-  void Data(Int_t i) const;                     // Stat. info for the i-th variable
+  Float_t GetMedian(Int_t i);                   // Provide median for i-th variable
+  Float_t GetSpread(Int_t i);                   // Provide spread w.r.t. the median for i-th variable
+  Float_t GetMinimum(Int_t i) const;            // Provide the minimum value for i-th variable
+  Float_t GetMaximum(Int_t i) const;            // Provide the maximum value for i-th variable
+  void Data();                                  // Stat. info for the complete sample
+  void Data(Int_t i);                           // Stat. info for the i-th variable
   void Data(Int_t i, Int_t j) const;            // Stat. info for i-th and j-th variable
+  void SetStoreMode(Int_t mode=1);              // Set mode for storage of all entered data
+  Int_t GetStoreMode() const;                   // Provide storage mode of all entered data
+  Double_t GetMedian(TH1* histo,Int_t mode=1) const; // Provide median from the specified 1D histogram
+  Double_t GetSpread(TH1* histo,Int_t mode=1) const; // Provide spread w.r.t. the median from the 1D histo
  
  private:
   Int_t fDim;                      // Dimension of the sample
@@ -46,6 +56,14 @@ class AliSample
   Float_t fSigma[fMaxdim];         // Standard deviation for each variable
   Float_t fCov[fMaxdim][fMaxdim];  // Covariances of pairs of variables
   Float_t fCor[fMaxdim][fMaxdim];  // Correlations of pairs of variables
+  Float_t fMin[fMaxdim];           // Minimum value for each variable
+  Float_t fMax[fMaxdim];           // Maximum value for each variable
+  Int_t fRemove;                   // Flag to indicate that some entry has been removed
+  Int_t fStore;                    // Flag to denote storage of all entered data 
+  TArrayF* fX;                     // Storage array for the 1st variable (e.g. X)
+  TArrayF* fY;                     // Storage array for the 2nd variable (e.g. Y)
+  TArrayF* fZ;                     // Storage array for the 3rd variable (e.g. Z)
+  TArrayF* fArr;                   // Temp. storage array for ordering
 
  ClassDef(AliSample,0) // Statistics tools for various multi-dimensional data samples.
 };