TH1F


class description - source file - inheritance tree

class TH1F : public TH1, public TArrayF


    protected:
TH1F TH1F(Int_t dim, const char* name, const char* title, Int_t nbinsx, Axis_t xlow, Axis_t xup) TH1F TH1F(Int_t dim, const char* name, const char* title, Int_t nbinsx, Axis_t* xbins) public:
TH1F TH1F() TH1F TH1F(const char* name, const char* title, Int_t nbinsx, Axis_t xlow, Axis_t xup) TH1F TH1F(const char* name, const char* title, Int_t nbinsx, Axis_t* xbins) TH1F TH1F(const TH1F& h1f) virtual void ~TH1F() virtual void AddBinContent(Int_t bin) virtual void AddBinContent(Int_t bin, Stat_t w) TClass* Class() virtual void Copy(TObject& hnew) virtual TH1* DrawCopy(Option_t* option) virtual Stat_t GetBinContent(Int_t bin) virtual TClass* IsA() const TH1F& operator=(const TH1F& h1) virtual void Reset(Option_t* option) virtual void SetBinContent(Int_t bin, Stat_t content) virtual void SetBinsLength(Int_t nx) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members



See also

TH2F, TH3F

Class Description

*-*-*-*-*-*-*-*-*-*-*The H I S T O G R A M   Classes*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ===============================
*-*
*-*  ROOT supports the following histogram types:
*-*
*-*   1-D histograms:
*-*      TH1C : histograms with one byte per channel. Maximum bin content = 255
*-*      TH1S : histograms with one short per channel. Maximum bin content = 65535
*-*      TH1F : histograms with one float per channel. Maximum precision 7 digits
*-*      TH1D : histograms with one double per channel. Maximum precision 14 digits
*-*
*-*   2-D histograms:
*-*      TH2C : histograms with one byte per channel. Maximum bin content = 255
*-*      TH2S : histograms with one short per channel. Maximum bin content = 65535
*-*      TH2F : histograms with one float per channel. Maximum precision 7 digits
*-*      TH2D : histograms with one double per channel. Maximum precision 14 digits
*-*
*-*   3-D histograms:
*-*      TH3C : histograms with one byte per channel. Maximum bin content = 255
*-*      TH3S : histograms with one short per channel. Maximum bin content = 65535
*-*      TH3F : histograms with one float per channel. Maximum precision 7 digits
*-*      TH3D : histograms with one double per channel. Maximum precision 14 digits
*-*
*-*   Profile histograms: See class TProfile
*-*
*-*- All histogram classes are derived from the base class TH1
*-*   The TH*C classes also inherit from the array class TArrayC.
*-*   The TH*S classes also inherit from the array class TArrayS.
*-*   The TH*F classes also inherit from the array class TArrayF.
*-*   The TH*D classes also inherit from the array class TArrayD.
*-*
*-*   Convention for numbering bins
*-*   =============================
*-*   For all histogram types: nbins, xlow, xup
*-*     bin = 0;       underflow bin
*-*     bin = 1;       first bin with low-edge xlow INCLUDED
*-*     bin = nbins;   last bin with upper-edge xup EXCLUDED
*-*     bin = nbins+1; overflow bin
*-*
*-*  Associated errors
*-*  =================
*-*  By default, for each bin, the sum of weights is computed at fill time.
*-*  One can also call TH1::Sumw2 to force the storage and computation
*-*  of the sum of the square of weights per bin.
*-*  If Sumw2 has been called, the error per bin is computed as the
*-*  sqrt(sum of squares of weights), otherwise the error is set equal
*-*  to the sqrt(bin content).
*-*
*-*  Associated functions
*-*  ====================
*-*  One or more object (typically a TF1*) can be added to the list
*-*  of functions (fFunctions) associated to each histogram.
*-*  When TF1::Fit is invoked, the fitted function is added to this list.
*-*
*-*

/*

*/

*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

TH1F(): TH1(), TArrayF()

TH1F(Int_t dim,const char *name,const char *title,Int_t nbins,Axis_t xlow,Axis_t xup) : TH1(name,title,nbins,xlow,xup), TArrayF()

TH1F(Int_t dim,const char *name,const char *title,Int_t nbins,Axis_t *xbins) : TH1(name,title,nbins,xbins), TArrayF()

TH1F(const char *name,const char *title,Int_t nbins,Axis_t xlow,Axis_t xup) : TH1(name,title,nbins,xlow,xup), TArrayF(nbins+2)
    Create a 1-Dim histogram with fix bins of type float
    ====================================================
           (see TH1::TH1 for explanation of parameters)


TH1F(const char *name,const char *title,Int_t nbins,Axis_t *xbins) : TH1(name,title,nbins,xbins), TArrayF(nbins+2)
    Create a 1-Dim histogram with variable bins of type float
    =========================================================
           (see TH1::TH1 for explanation of parameters)


TH1F(const TH1F &h)

~TH1F()

void Copy(TObject &newth1)

TH1* DrawCopy(Option_t *option)

Stat_t GetBinContent(Int_t bin)

void Reset(Option_t *option)



Inline Functions


               void AddBinContent(Int_t bin)
               void AddBinContent(Int_t bin, Stat_t w)
               void SetBinContent(Int_t bin, Stat_t content)
               void SetBinsLength(Int_t nx)
              TH1F& operator=(const TH1F& h1)
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)


Author: Rene Brun 26/12/94
Last update: 2.23/12 01/02/2000 15.53.35 by Rene Brun
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *


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.