class TGraph2D;
class TCanvas;
class TMultiGraph;
+class TGraphErrors;
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
//
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);