#define ClassDef(name, id)
Array of chars or bytes (8 bits per element).
Array of doubles (64 bits per element).
Array of floats (32 bits per element).
Array of integers (32 bits per element).
Array of shorts (16 bits per element).
1-D histogram with a double per channel (see TH1 documentation)}
virtual Double_t IntegralAndError(Int_t binx1, Int_t binx2, Double_t &err, Option_t *option="") const
Return integral of bin contents in range [binx1,binx2] and its error.
virtual Double_t GetBinErrorLow(Int_t bin) const
Return lower error associated to bin number bin.
virtual Double_t Integral(Option_t *option="") const
Return integral of bin contents.
virtual Double_t GetBinContent(Int_t bin) const
Return content of bin number bin.
virtual Double_t GetBinErrorUp(Int_t bin) const
Return upper error associated to bin number bin.
2-D histogram with a byte per channel (see TH1 documentation)
virtual void Reset(Option_t *option="")
Reset this histogram: contents, errors, etc.
friend TH2C operator-(TH2C &h1, TH2C &h2)
Operator -.
friend TH2C operator+(TH2C &h1, TH2C &h2)
Operator +.
virtual void AddBinContent(Int_t bin)
Increment bin content by 1.
friend TH2C operator/(TH2C &h1, TH2C &h2)
Operator /.
virtual ~TH2C()
Destructor.
virtual void SetBinsLength(Int_t n=-1)
Set total number of bins including under/overflow Reallocate bin contents array.
TH2C & operator=(const TH2C &h1)
Operator =.
virtual void Copy(TObject &hnew) const
Copy.
virtual void UpdateBinContent(Int_t bin, Double_t content)
Raw update of bin content on internal data structure see convention for numbering bins in TH1::GetBin...
friend TH2C operator*(Float_t c1, TH2C &h1)
Operator *.
friend TH2C operator*(TH2C &h1, Float_t c1)
virtual Double_t RetrieveBinContent(Int_t bin) const
Raw retrieval of bin content on internal data structure see convention for numbering bins in TH1::Get...
2-D histogram with a double per channel (see TH1 documentation)}
virtual void AddBinContent(Int_t bin, Double_t w)
Increment bin content by a weight w.
virtual void SetBinsLength(Int_t n=-1)
Set total number of bins including under/overflow Reallocate bin contents array.
friend TH2D operator-(TH2D &h1, TH2D &h2)
Operator -.
virtual void AddBinContent(Int_t bin)
Increment bin content by 1.
friend TH2D operator*(Float_t c1, TH2D &h1)
Operator *.
virtual Double_t RetrieveBinContent(Int_t bin) const
Raw retrieval of bin content on internal data structure see convention for numbering bins in TH1::Get...
virtual ~TH2D()
Destructor.
friend TH2D operator/(TH2D &h1, TH2D &h2)
Operator /.
virtual void Copy(TObject &hnew) const
Copy.
friend TH2D operator+(TH2D &h1, TH2D &h2)
Operator +.
virtual void UpdateBinContent(Int_t bin, Double_t content)
Raw update of bin content on internal data structure see convention for numbering bins in TH1::GetBin...
friend TH2D operator*(TH2D &h1, Float_t c1)
TH2D & operator=(const TH2D &h1)
Operator =.
2-D histogram with a float per channel (see TH1 documentation)}
friend TH2F operator*(Float_t c1, TH2F &h1)
Operator *.
TH2F & operator=(const TH2F &h1)
Operator =.
virtual ~TH2F()
Destructor.
virtual void SetBinsLength(Int_t n=-1)
Set total number of bins including under/overflow Reallocate bin contents array.
virtual void Copy(TObject &hnew) const
Copy.
virtual void AddBinContent(Int_t bin, Double_t w)
Increment bin content by a weight w.
virtual Double_t RetrieveBinContent(Int_t bin) const
Raw retrieval of bin content on internal data structure see convention for numbering bins in TH1::Get...
friend TH2F operator-(TH2F &h1, TH2F &h2)
Operator -.
friend TH2F operator/(TH2F &h1, TH2F &h2)
Operator /.
virtual void UpdateBinContent(Int_t bin, Double_t content)
Raw update of bin content on internal data structure see convention for numbering bins in TH1::GetBin...
virtual void AddBinContent(Int_t bin)
Increment bin content by 1.
friend TH2F operator+(TH2F &h1, TH2F &h2)
Operator +.
2-D histogram with an int per channel (see TH1 documentation)}
friend TH2I operator/(TH2I &h1, TH2I &h2)
Operator /.
friend TH2I operator-(TH2I &h1, TH2I &h2)
Operator -.
virtual void Copy(TObject &hnew) const
Copy.
virtual void SetBinsLength(Int_t n=-1)
Set total number of bins including under/overflow Reallocate bin contents array.
virtual void UpdateBinContent(Int_t bin, Double_t content)
Raw update of bin content on internal data structure see convention for numbering bins in TH1::GetBin...
friend TH2I operator*(TH2I &h1, Float_t c1)
friend TH2I operator*(Float_t c1, TH2I &h1)
Operator *.
virtual void AddBinContent(Int_t bin)
Increment bin content by 1.
virtual ~TH2I()
Destructor.
virtual Double_t RetrieveBinContent(Int_t bin) const
Raw retrieval of bin content on internal data structure see convention for numbering bins in TH1::Get...
friend TH2I operator+(TH2I &h1, TH2I &h2)
Operator +.
TH2I & operator=(const TH2I &h1)
Operator =.
2-D histogram with a short per channel (see TH1 documentation)
virtual void SetBinsLength(Int_t n=-1)
Set total number of bins including under/overflow Reallocate bin contents array.
virtual Double_t RetrieveBinContent(Int_t bin) const
Raw retrieval of bin content on internal data structure see convention for numbering bins in TH1::Get...
TH2S & operator=(const TH2S &h1)
Operator =.
friend TH2S operator+(TH2S &h1, TH2S &h2)
Operator +.
friend TH2S operator-(TH2S &h1, TH2S &h2)
Operator -.
friend TH2S operator*(Float_t c1, TH2S &h1)
Operator *.
virtual ~TH2S()
Destructor.
friend TH2S operator/(TH2S &h1, TH2S &h2)
Operator /.
virtual void Copy(TObject &hnew) const
Copy.
friend TH2S operator*(TH2S &h1, Float_t c1)
virtual void UpdateBinContent(Int_t bin, Double_t content)
Raw update of bin content on internal data structure see convention for numbering bins in TH1::GetBin...
virtual void AddBinContent(Int_t bin)
Increment bin content by 1.
Service class for 2-Dim histogram classes.
Int_t Fill(const char *, Double_t)
Increment bin with namex with a weight w.
virtual void PutStats(Double_t *stats)
Replace current statistics with the values in array stats.
TH1D * ProjectionY(const char *name="_py", Int_t firstxbin=0, Int_t lastxbin=-1, Option_t *option="") const
Project a 2-D histogram into a 1-D histogram along Y.
virtual Int_t BufferEmpty(Int_t action=0)
Fill histogram with all entries in the buffer.
virtual Double_t GetCorrelationFactor(Int_t axis1=1, Int_t axis2=2) const
Return correlation factor between axis1 and axis2.
virtual TProfile * DoProfile(bool onX, const char *name, Int_t firstbin, Int_t lastbin, Option_t *option) const
virtual Double_t GetBinWithContent2(Double_t c, Int_t &binx, Int_t &biny, Int_t firstxbin=1, Int_t lastxbin=-1, Int_t firstybin=1, Int_t lastybin=-1, Double_t maxdiff=0) const
compute first cell (binx,biny) in the range [firstxbin,lastxbin][firstybin,lastybin] for which diff =...
TProfile * ProfileX(const char *name="_pfx", Int_t firstybin=1, Int_t lastybin=-1, Option_t *option="") const
Project a 2-D histogram into a profile histogram along X.
TH1D * QuantilesY(Double_t prob=0.5, const char *name="_qy") const
Compute the Y distribution of quantiles in the other variable X name is the name of the returned hist...
TProfile * ProfileY(const char *name="_pfy", Int_t firstxbin=1, Int_t lastxbin=-1, Option_t *option="") const
Project a 2-D histogram into a profile histogram along Y.
virtual void Reset(Option_t *option="")
Reset this histogram: contents, errors, etc.
virtual TH1D * DoQuantiles(bool onX, const char *name, Double_t prob) const
Implementation of quantiles for x or y.
Int_t BufferFill(Double_t, Double_t)
accumulate arguments in buffer.
Int_t Fill(Double_t)
Invalid Fill method.
virtual Double_t Integral(Int_t, Int_t, Int_t, Int_t, Int_t, Int_t, Option_t *="") const
virtual TH1 * ShowBackground(Int_t niter=20, Option_t *option="same")
This function calculates the background spectrum in this histogram.
virtual Int_t ShowPeaks(Double_t sigma=2, Option_t *option="", Double_t threshold=0.05)
Interface to TSpectrum2::Search the function finds peaks in this histogram where the width is > sigma...
virtual void DoFitSlices(bool onX, TF1 *f1, Int_t firstbin, Int_t lastbin, Int_t cut, Option_t *option, TObjArray *arr)
TH1D * QuantilesX(Double_t prob=0.5, const char *name="_qx") const
Compute the X distribution of quantiles in the other variable Y name is the name of the returned hist...
virtual TH2 * RebinX(Int_t ngroup=2, const char *newname="")
Rebin only the X axis see Rebin2D.
virtual void SetShowProjectionY(Int_t nbins=1)
When the mouse is moved in a pad containing a 2-d view of this histogram a second canvas shows the pr...
virtual void FillRandom(const char *fname, Int_t ntimes=5000)
Fill histogram following distribution in function fname.
virtual Double_t GetBinErrorUp(Int_t binx, Int_t biny)
virtual TH2 * Rebin(Int_t ngroup=2, const char *newname="", const Double_t *xbins=0)
Override TH1::Rebin as TH2::RebinX Rebinning in variable binning as for TH1 is not allowed If a non-n...
virtual void GetStats(Double_t *stats) const
Fill the array stats from the contents of this histogram The array stats must be correctly dimensione...
virtual TH1D * DoProjection(bool onX, const char *name, Int_t firstbin, Int_t lastbin, Option_t *option) const
Internal (protected) method for performing projection on the X or Y axis called by ProjectionX or Pro...
virtual Double_t GetBinContent(Int_t binx, Int_t biny, Int_t) const
virtual Double_t GetCovariance(Int_t axis1=1, Int_t axis2=2) const
Return covariance between axis1 and axis2.
virtual void GetRandom2(Double_t &x, Double_t &y)
Return 2 random numbers along axis x and y distributed according the cell-contents of a 2-dim histogr...
virtual void Smooth(Int_t ntimes=1, Option_t *option="")
Smooth bin contents of this 2-d histogram using kernel algorithms similar to the ones used in the ras...
TH2 & operator=(const TH2 &)
virtual void FillN(Int_t, const Double_t *, const Double_t *, Int_t)
Fill this histogram with an array x and weights w.
TH1D * ProjectionX(const char *name="_px", Int_t firstybin=0, Int_t lastybin=-1, Option_t *option="") const
Project a 2-D histogram into a 1-D histogram along X.
virtual void FitSlicesX(TF1 *f1=0, Int_t firstybin=0, Int_t lastybin=-1, Int_t cut=0, Option_t *option="QNR", TObjArray *arr=0)
Project slices along X in case of a 2-D histogram, then fit each slice with function f1 and make a hi...
virtual Int_t GetBin(Int_t binx, Int_t biny, Int_t binz=0) const
Return Global bin number corresponding to binx,y,z.
virtual Double_t Integral(Option_t *option="") const
Return integral of bin contents.
virtual Double_t IntegralAndError(Int_t binx1, Int_t binx2, Int_t biny1, Int_t biny2, Double_t &err, Option_t *option="") const
Return integral of bin contents in range [firstxbin,lastxbin],[firstybin,lastybin] for a 2-D histogra...
virtual Double_t KolmogorovTest(const TH1 *h2, Option_t *option="") const
Statistical test of compatibility in shape between THIS histogram and h2, using Kolmogorov test.
virtual void SetBinContent(Int_t binx, Int_t biny, Double_t content)
virtual void SetShowProjectionX(Int_t nbins=1)
When the mouse is moved in a pad containing a 2-d view of this histogram a second canvas shows the pr...
virtual Double_t Interpolate(Double_t x) const
illegal for a TH2
virtual void FitSlicesY(TF1 *f1=0, Int_t firstxbin=0, Int_t lastxbin=-1, Int_t cut=0, Option_t *option="QNR", TObjArray *arr=0)
Project slices along Y in case of a 2-D histogram, then fit each slice with function f1 and make a hi...
virtual Double_t GetBinContent(Int_t binx, Int_t biny) const
virtual Double_t GetBinErrorLow(Int_t binx, Int_t biny)
virtual Double_t GetBinContent(Int_t bin) const
Return content of bin number bin.
virtual TH2 * Rebin2D(Int_t nxgroup=2, Int_t nygroup=2, const char *newname="")
Rebin this histogram grouping nxgroup/nygroup bins along the xaxis/yaxis together.
virtual Int_t BufferFill(Double_t x, Double_t y, Double_t w)
accumulate arguments in buffer.
virtual void SetBinContent(Int_t bin, Double_t content)
Set bin content.
virtual ~TH2()
Destructor.
virtual void SetBinContent(Int_t binx, Int_t biny, Int_t, Double_t content)
virtual TH2 * RebinY(Int_t ngroup=2, const char *newname="")
Rebin only the Y axis see Rebin2D.
virtual void Copy(TObject &hnew) const
Copy.
Mother of all ROOT objects.