]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STAT/TStatToolkit.h
Merge branch 'master' of https://git.cern.ch/reps/AliRoot
[u/mrichter/AliRoot.git] / STAT / TStatToolkit.h
index 9026b6ada4a571f18af6215c0d45459dac3f46a8..06499d4f2ea93d7614ea63f3c02f1af17a32b9ae 100644 (file)
@@ -20,7 +20,10 @@ class TString;
 class TTree;
 class TGraph;
 class TGraph2D;
+class TCanvas;
+class TMultiGraph; 
+class TGraphErrors; 
+
 class TStatToolkit : public TObject
 {
  public:
@@ -46,7 +49,9 @@ class TStatToolkit : public TObject
   //
   // Graph tools
   //
-  static TGraph * MakeGraphSparse(TTree * tree, const char * expr="Entry", const char * cut="1");
+  static TGraph * MakeGraphSparse(TTree * tree, const char * expr="Entry", const char * cut="1",  Int_t mstyle=25, Int_t mcolor=1, Float_t msize=-1, Float_t offset=0.0);
+  static TGraphErrors * MakeGraphErrors(TTree * tree, const char * expr="Entry", const char * cut="1",  Int_t mstyle=25, Int_t mcolor=1, Float_t msize=-1, Float_t offset=0.0);
+
   //
   // Fitting function
   //
@@ -60,8 +65,19 @@ class TStatToolkit : public TObject
  static TString FilterFit(const TString &input, const TString filter, TVectorD &vec, TMatrixD &covar);
  static void Update1D(Double_t delta, Double_t sigma, Int_t s1, TMatrixD &param, TMatrixD &covar);
   static void   Constrain1D(const TString &input, const TString filter, TVectorD &param, TMatrixD & covar, Double_t mean, Double_t sigma);
-  static TString  MakeFitString(const TString &input, const TVectorD &param, const TMatrixD & covar);
-
+  static TString  MakeFitString(const TString &input, const TVectorD &param, const TMatrixD & covar, Bool_t verbose=kFALSE);
+  //
+  // TTree function for the trneding
+  //
+  static Int_t  MakeStatAlias(TTree * tree, const char * expr, const char * cut, const char * alias);
+  static Int_t  SetStatusAlias(TTree * tree, const char * expr, const char * cut, const char * alias);
+  static TMultiGraph*  MakeStatusMultGr(TTree * tree, const char * expr, const char * cut, const char * alias, Int_t igr);  
+  static void  AddStatusPad(TCanvas* c1, Float_t padratio, Float_t bottommargin);
+  static void  DrawStatusGraphs(TObjArray* oaMultGr);
+  //
+  // TTree function for robust draw
+  //
+  static void DrawHistogram(TTree * tree, const char* drawCommand, const char* cuts = "1", const char* hname = "histo", const char* htitle = "histo", Int_t nsigma = 4, Float_t fraction = 0.75);
   //
   // TestFunctions:
   //