library: libHist
#include "TH2.h"

TH2F


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

class TH2F : public TH2, public TArrayF

Inheritance Chart:
TObject
<-
TNamed
TAttLine
TAttFill
TAttMarker
<-
TH1
<-
TH2
TArray
<-
TArrayF
<-
TH2F

    public:
TH2F() TH2F(const char* name, const char* title, Int_t nbinsx, Double_t xlow, Double_t xup, Int_t nbinsy, Double_t ylow, Double_t yup) TH2F(const char* name, const char* title, Int_t nbinsx, const Double_t* xbins, Int_t nbinsy, Double_t ylow, Double_t yup) TH2F(const char* name, const char* title, Int_t nbinsx, Double_t xlow, Double_t xup, Int_t nbinsy, const Double_t* ybins) TH2F(const char* name, const char* title, Int_t nbinsx, const Double_t* xbins, Int_t nbinsy, const Double_t* ybins) TH2F(const char* name, const char* title, Int_t nbinsx, const Float_t* xbins, Int_t nbinsy, const Float_t* ybins) TH2F(const TMatrixTBase& m) TH2F(const TH2F& h2f) virtual ~TH2F() virtual void AddBinContent(Int_t bin) virtual void AddBinContent(Int_t bin, Double_t w) static TClass* Class() virtual void Copy(TObject& hnew) const virtual TH1* DrawCopy(Option_t* option = "") const virtual Double_t GetBinContent(Int_t bin) const virtual Double_t GetBinContent(Int_t binx, Int_t biny) const virtual Double_t GetBinContent(Int_t binx, Int_t biny, Int_t) const virtual TClass* IsA() const TH2F& operator=(const TH2F& h1) virtual void Reset(Option_t* option = "") virtual void SetBinContent(Int_t bin, Double_t content) virtual void SetBinContent(Int_t binx, Int_t biny, Double_t content) virtual void SetBinContent(Int_t binx, Int_t biny, Int_t, Double_t content) virtual void SetBinsLength(Int_t n = -1) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members




Class Description

 Service class for 2-Dim histogram classes

  TH2C a 2-D histogram with one byte per cell (char)
  TH2S a 2-D histogram with two bytes per cell (short integer)
  TH2I a 2-D histogram with four bytes per cell (32 bits integer)
  TH2F a 2-D histogram with four bytes per cell (float)
  TH2D a 2-D histogram with eight bytes per cell (double)


TH2F(): TH2()

~TH2F()

TH2F(const char *name,const char *title,Int_t nbinsx,Double_t xlow,Double_t xup ,Int_t nbinsy,Double_t ylow,Double_t yup) :TH2(name,title,nbinsx,xlow,xup,nbinsy,ylow,yup)

TH2F(const char *name,const char *title,Int_t nbinsx,const Double_t *xbins ,Int_t nbinsy,Double_t ylow,Double_t yup) :TH2(name,title,nbinsx,xbins,nbinsy,ylow,yup)

TH2F(const char *name,const char *title,Int_t nbinsx,Double_t xlow,Double_t xup ,Int_t nbinsy,const Double_t *ybins) :TH2(name,title,nbinsx,xlow,xup,nbinsy,ybins)

TH2F(const char *name,const char *title,Int_t nbinsx,const Double_t *xbins ,Int_t nbinsy,const Double_t *ybins) :TH2(name,title,nbinsx,xbins,nbinsy,ybins)

TH2F(const char *name,const char *title,Int_t nbinsx,const Float_t *xbins ,Int_t nbinsy,const Float_t *ybins) :TH2(name,title,nbinsx,xbins,nbinsy,ybins)

TH2F(const TMatrixTBase &m) :TH2("TMatrixTBase","",m.GetNcols(),m.GetColLwb(),1+m.GetColUpb(),m.GetNrows(),m.GetRowLwb(),1+m.GetRowUpb())

TH2F(const TH2F &h2f) : TH2(), TArrayF()

void Copy(TObject &newth2) const

TH1* DrawCopy(Option_t *option) const

Double_t GetBinContent(Int_t bin) const

void Reset(Option_t *option)
*-*-*-*-*-*-*-*Reset this histogram: contents, errors, etc*-*-*-*-*-*-*-*
*-*            ===========================================

void SetBinContent(Int_t bin, Double_t content)
 Set bin content

void SetBinsLength(Int_t n)
 Set total number of bins including under/overflow
 Reallocate bin contents array

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



Inline Functions


               void AddBinContent(Int_t bin)
               void AddBinContent(Int_t bin, Double_t w)
           Double_t GetBinContent(Int_t binx, Int_t biny) const
           Double_t GetBinContent(Int_t binx, Int_t biny, Int_t) const
               void SetBinContent(Int_t binx, Int_t biny, Double_t content)
               void SetBinContent(Int_t binx, Int_t biny, Int_t, Double_t content)
              TH2F& operator=(const TH2F& h1)
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void StreamerNVirtual(TBuffer& b)


Author: Rene Brun 26/12/94
Last update: root/hist:$Name: $:$Id: TH2.cxx,v 1.87 2006/02/03 21:55:38 pcanal 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.