library: libGraf
#include "TPaveStats.h"

TPaveStats


class description - source file - inheritance tree (.pdf)

class TPaveStats : public TPaveText

Inheritance Chart:
TObject
TAttLine
TAttFill
<-
TBox
<-
TPave
TAttText
<-
TPaveText
<-
TPaveStats

    public:
TPaveStats() TPaveStats(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Option_t* option = "br") TPaveStats(const TPaveStats&) virtual ~TPaveStats() virtual TBox* AddBox(Double_t, Double_t, Double_t, Double_t) virtual TLine* AddLine(Double_t, Double_t, Double_t, Double_t) static TClass* Class() virtual void DeleteText() virtual void EditText() virtual const char* GetFitFormat() const Int_t GetOptFit() const Int_t GetOptStat() const TObject* GetParent() const virtual const char* GetStatFormat() const virtual void InsertLine() virtual void InsertText(const char*) virtual TClass* IsA() const TPaveStats& operator=(const TPaveStats&) virtual void Paint(Option_t* option) virtual void ReadFile(const char*, Option_t*, Int_t, Int_t) virtual void SavePrimitive(ofstream& out, Option_t* option) virtual void SaveStyle() virtual void SetAllWith(const char*, Option_t*, Double_t) virtual void SetFitFormat(const char* format = "5.4g") virtual void SetMargin(Float_t) void SetOptFit(Int_t fit = 1) void SetOptStat(Int_t stat = 1) void SetParent(TObject* obj) virtual void SetStatFormat(const char* format = "6.4g") virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
Int_t fOptFit option Fit Int_t fOptStat option Stat TString fFitFormat Printing format for fit parameters TString fStatFormat Printing format for stats TObject* fParent owner of this TPaveStats

Class Description

  A PaveStats is a PaveText to draw histogram statistics
 The type of information printed in the histogram statistics box
  can be selected via gStyle->SetOptStat(mode).
  or by editing an existing TPaveStats object via TPaveStats::SetOptStat(mode).
  The parameter mode can be = ourmen  (default = 001111)
    n = 1;  name of histogram is printed
    e = 1;  number of entries printed
    m = 1;  mean value printed
    r = 1;  rms printed
    u = 1;  number of underflows printed
    o = 1;  number of overflows printed
  Example: gStyle->SetOptStat(11);
           print only name of histogram and number of entries.

 The type of information about fit parameters printed in the histogram
 statistics box can be selected via the parameter mode.
  The parameter mode can be = pcev  (default = 0111)
    v = 1;  print name/values of parameters
    e = 1;  print errors (if e=1, v must be 1)
    c = 1;  print Chisquare/Number of degress of freedom
    p = 1;  print Probability
  Example: gStyle->SetOptFit(1011);
        or this->SetOptFit(1011);
           print fit probability, parameter names/values and errors.

  WARNING: never call SetOptStat(000111); but SetOptStat(1111), 0001111 will
          be taken as an octal number !!
  NOTE that in case of 2-D histograms, when selecting just underflow (10000)
        or overflow (100000), the stats box will show all combinations
        of underflow/overflows and not just one single number!


TPaveStats(): TPaveText()
 TPaveStats default constructor

TPaveStats(Double_t x1, Double_t y1,Double_t x2, Double_t y2, Option_t *option) :TPaveText(x1,y1,x2,y2,option)
 TPaveStats normal constructor

~TPaveStats()
 TPaveStats default destructor

Int_t GetOptFit() const
 return the fit option

Int_t GetOptStat() const
 return the stat option

void SaveStyle()
  Save This TPaveStats options in current style

void SetFitFormat(const char *form)
 Change (i.e. set) the format for printing fit parameters in statistics box

void SetOptFit(Int_t fit)
 set the fit option

void SetOptStat(Int_t stat)
 set the stat option

void SetStatFormat(const char *form)
 Change (i.e. set) the format for printing statistics

void Paint(Option_t *option)

void SavePrimitive(ofstream &out, Option_t *)
 Save primitive as a C++ statement(s) on output stream out

void Streamer(TBuffer &R__b)
 Stream an object of class TPaveStats.



Inline Functions


              TBox* AddBox(Double_t, Double_t, Double_t, Double_t)
             TLine* AddLine(Double_t, Double_t, Double_t, Double_t)
               void DeleteText()
               void EditText()
        const char* GetFitFormat() const
        const char* GetStatFormat() const
           TObject* GetParent() const
               void InsertText(const char*)
               void InsertLine()
               void ReadFile(const char*, Option_t*, Int_t, Int_t)
               void SetAllWith(const char*, Option_t*, Double_t)
               void SetMargin(Float_t)
               void SetParent(TObject* obj)
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void StreamerNVirtual(TBuffer& b)
         TPaveStats TPaveStats(const TPaveStats&)
        TPaveStats& operator=(const TPaveStats&)


Author: Rene Brun 15/03/99
Last update: root/graf:$Name: $:$Id: TPaveStats.cxx,v 1.18 2004/05/13 19:39:18 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.