]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STAT/TStatToolkit.h
more centrality bins
[u/mrichter/AliRoot.git] / STAT / TStatToolkit.h
index 829915646213281c6a78c65d4afc02da8e710467..06499d4f2ea93d7614ea63f3c02f1af17a32b9ae 100644 (file)
@@ -22,6 +22,7 @@ class TGraph;
 class TGraph2D;
 class TCanvas;
 class TMultiGraph; 
+class TGraphErrors; 
 
 class TStatToolkit : public TObject
 {
@@ -49,6 +50,8 @@ class TStatToolkit : public TObject
   // Graph tools
   //
   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
   //
@@ -72,6 +75,10 @@ class TStatToolkit : public TObject
   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:
   //
  static  void TestGausFit(Int_t nhistos=5000);