TH1C


class description - source file - inheritance tree

class TH1C : public TH1, public TArrayC


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

TH2C, TH3C

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

/*

*/

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

TH1C(): TH1(), TArrayC()

TH1C(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), TArrayC()

TH1C(Int_t dim,const Text_t *name,const Text_t *title,Int_t nbins,Axis_t *xbins) : TH1(name,title,nbins,xbins), TArrayC()

TH1C(const Text_t *name,const Text_t *title,Int_t nbins,Axis_t xlow,Axis_t xup) : TH1(name,title,nbins,xlow,xup), TArrayC(nbins+2)
    Create a 1-Dim histogram with fix bins of type char (one byte per channel)
    ==========================================================================
                    (see TH1::TH1 for explanation of parameters)


TH1C(const Text_t *name,const Text_t *title,Int_t nbins,Axis_t *xbins) : TH1(name,title,nbins,xbins), TArrayC(nbins+2)
    Create a 1-Dim histogram with variable bins of type char (one byte per channel)
    ==========================================================================
                    (see TH1::TH1 for explanation of parameters)


~TH1C()

TH1C(const TH1C &h1c)

void AddBinContent(Int_t bin)
*-*-*-*-*-*-*-*-*-*Increment bin content by 1*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                ==========================

void AddBinContent(Int_t bin, Stat_t w)
*-*-*-*-*-*-*-*-*-*Increment bin content by w*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                ==========================

void Copy(TObject &newth1)

TH1* DrawCopy(Option_t *option)

Stat_t GetBinContent(Int_t bin)

void Reset(Option_t *option)



Inline Functions


               void SetBinContent(Int_t bin, Stat_t content)
               void SetBinsLength(Int_t nx)
              TH1C& operator=(const TH1C& 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.