TPaveStats


class description - source file - inheritance tree

class TPaveStats : public TPaveText


    public:
TPaveStats TPaveStats() TPaveStats TPaveStats(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Option_t* option = br) TPaveStats TPaveStats(TPaveStats&) virtual void ~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() Int_t GetOptStat() virtual const char* GetStatFormat() const virtual void InsertText(const char*) virtual TClass* IsA() const virtual void ReadFile(const char*, Option_t*, Int_t, Int_t) 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) 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

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.


TPaveStats(): TPaveText()
*-*-*-*-*-*-*-*-*-*-*pavetext default constructor*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  =============================

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


~TPaveStats()
*-*-*-*-*-*-*-*-*-*-*pavetext default destructor*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ============================

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 SetStatFormat(const char *form)
 Change (i.e. set) the format for printing statistics

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
              Int_t GetOptFit()
              Int_t GetOptStat()
               void InsertText(const char*)
               void ReadFile(const char*, Option_t*, Int_t, Int_t)
               void SetAllWith(const char*, Option_t*, Double_t)
               void SetMargin(Float_t)
               void SetOptFit(Int_t fit = 1)
               void SetOptStat(Int_t stat = 1)
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void StreamerNVirtual(TBuffer& b)
         TPaveStats TPaveStats(TPaveStats&)


Author: Rene Brun 15/03/99
Last update: root/graf:$Name: $:$Id: TPaveStats.cxx,v 1.3 2000/11/21 20:27:15 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - 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.