TH1D


class description - source file - inheritance tree

class TH1D : public TH1, public TArrayD


    protected:
TH1D TH1D(Int_t dim, const Text_t* name, const Text_t* title, Int_t nbinsx, Axis_t xlow, Axis_t xup) TH1D TH1D(Int_t dim, const Text_t* name, const Text_t* title, Int_t nbinsx, Axis_t* xbins) public:
TH1D TH1D(const Text_t* name, const Text_t* title, Int_t nbinsx, Axis_t xlow, Axis_t xup) TH1D TH1D() TH1D TH1D(const Text_t* name, const Text_t* title, Int_t nbinsx, Axis_t* xbins) TH1D TH1D(const TH1D& h1d) virtual void ~TH1D() 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 TH1D& operator=(const TH1D& 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

TH2D, TH3D, TProfile

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
*-*

/*

*/

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

TH1D(): TH1(), TArrayD()

TH1D(Int_t dim,const Text_t *name,const Text_t *title,Int_t nbins,Axis_t xlow,Axis_t xup) : TH1(name,title,nbins,xlow,xup), TArrayD()

TH1D(Int_t dim,const Text_t *name,const Text_t *title,Int_t nbins,Axis_t *xbins) : TH1(name,title,nbins,xbins), TArrayD()

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


TH1D(const Text_t *name,const Text_t *title,Int_t nbins,Axis_t *xbins) : TH1(name,title,nbins,xbins), TArrayD(nbins+2)
    Create a 1-Dim histogram with variable bins of type double
    =====================================================
           (see TH1::TH1 for explanation of parameters)


~TH1D()

TH1D(const TH1D &h1d)

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)
              TH1D& operator=(const TH1D& 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/08 31/10/99 18.32.25 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.