83 virtual Int_t Fill(
const char *namex,
const char *namey,
const char *namez,
Double_t w);
103 virtual Double_t GetBinWithContent3(
Double_t c,
Int_t &binx,
Int_t &biny,
Int_t &binz,
Int_t firstx=0,
Int_t lastx=0,
Int_t firsty=0,
Int_t lasty=0,
Int_t firstz=0,
Int_t lastz=0,
Double_t maxdiff=0)
const;
134 virtual TH1D *
DoProject1D(
const char*
name,
const char * title,
int imin1,
int imax1,
int imin2,
int imax2,
137 const TAxis *axis2,
bool computeErrors,
bool originalRange,
bool useUF,
bool useOF)
const;
139 bool computeErrors,
bool originalRange,
140 bool useUF,
bool useOF)
const;
142 bool originalRange,
bool useUF,
bool useOF)
const;
146 bool computeErrors,
bool originalRange,
bool useUF,
bool useOF) {
147 return h.DoProject1D(
name, title, projX,
nullptr,
nullptr, computeErrors, originalRange, useUF, useOF);
150 bool computeErrors,
bool originalRange,
bool useUF,
bool useOF) {
151 return h.DoProject2D(
name, title, projX,projY, computeErrors, originalRange, useUF, useOF);
#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).
Use this attribute class when an object should have 3D capabilities.
Class to manage histogram axis.
1-D histogram with a double per channel (see TH1 documentation)}
TH1 is the base class of all histogram classes in ROOT.
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 double per channel (see TH1 documentation)}
3-D histogram with a byte per channel (see TH1 documentation)
friend TH3C operator/(TH3C &h1, TH3C &h2)
Operator /.
virtual void Copy(TObject &hnew) const
Copy this 3-D histogram structure to newth3.
virtual void Reset(Option_t *option="")
Reset this histogram: contents, errors, etc.
friend TH3C operator*(Float_t c1, TH3C &h1)
Operator *.
friend TH3C operator-(TH3C &h1, TH3C &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 SetBinsLength(Int_t n=-1)
Set total number of bins including under/overflow Reallocate bin contents array.
friend TH3C operator+(TH3C &h1, TH3C &h2)
Operator +.
TH3C & operator=(const TH3C &h1)
Operator =.
virtual void AddBinContent(Int_t bin)
Increment bin content by 1.
friend TH3C operator*(TH3C &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...
virtual ~TH3C()
Destructor.
3-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.
friend TH3D operator+(TH3D &h1, TH3D &h2)
Operator +.
virtual void SetBinsLength(Int_t n=-1)
Set total number of bins including under/overflow Reallocate bin contents array.
friend TH3D operator*(TH3D &h1, Float_t c1)
virtual void AddBinContent(Int_t bin)
Increment bin content by 1.
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 TH3D operator-(TH3D &h1, TH3D &h2)
Operator -.
virtual void Copy(TObject &hnew) const
Copy this 3-D histogram structure to newth3.
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 TH3D operator*(Float_t c1, TH3D &h1)
Operator *.
TH3D & operator=(const TH3D &h1)
Operator =.
friend TH3D operator/(TH3D &h1, TH3D &h2)
Operator /.
virtual ~TH3D()
Destructor.
3-D histogram with a float per channel (see TH1 documentation)}
virtual void AddBinContent(Int_t bin, Double_t w)
Increment bin content by a weight w.
friend TH3F operator-(TH3F &h1, TH3F &h2)
Operator -.
friend TH3F operator+(TH3F &h1, TH3F &h2)
Operator +.
TH3F & operator=(const TH3F &h1)
Operator =.
virtual void AddBinContent(Int_t bin)
Increment bin content by 1.
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...
friend TH3F operator*(Float_t c1, TH3F &h1)
Operator *.
virtual ~TH3F()
Destructor.
virtual void Copy(TObject &hnew) const
Copy this 3-D histogram structure to newth3.
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 TH3F operator/(TH3F &h1, TH3F &h2)
Operator /.
friend TH3F operator*(TH3F &h1, Float_t c1)
3-D histogram with an int per channel (see TH1 documentation)}
virtual void Copy(TObject &hnew) const
Copy this 3-D histogram structure to newth3.
TH3I & operator=(const TH3I &h1)
Operator =.
friend TH3I operator*(Float_t c1, TH3I &h1)
Operator *.
friend TH3I operator*(TH3I &h1, Float_t c1)
friend TH3I operator/(TH3I &h1, TH3I &h2)
Operator /.
friend TH3I operator+(TH3I &h1, TH3I &h2)
Operator +.
virtual void AddBinContent(Int_t bin)
Increment bin content by 1.
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 ~TH3I()
Destructor.
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 SetBinsLength(Int_t n=-1)
Set total number of bins including under/overflow Reallocate bin contents array.
friend TH3I operator-(TH3I &h1, TH3I &h2)
Operator _.
3-D histogram with a short per channel (see TH1 documentation)
friend TH3S operator*(TH3S &h1, Float_t c1)
virtual void AddBinContent(Int_t bin)
Increment bin content by 1.
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...
friend TH3S operator-(TH3S &h1, TH3S &h2)
Operator -.
virtual ~TH3S()
Destructor.
friend TH3S operator+(TH3S &h1, TH3S &h2)
Operator +.
friend TH3S operator*(Float_t c1, TH3S &h1)
Operator *.
TH3S & operator=(const TH3S &h1)
Operator =.
friend TH3S operator/(TH3S &h1, TH3S &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 Copy(TObject &hnew) const
Copy this 3-D histogram structure to newth3.
The 3-D histogram classes derived from the 1-D histogram classes.
Int_t Fill(const char *, Double_t)
Increment bin with namex with a weight w.
virtual TH3 * Rebin3D(Int_t nxgroup=2, Int_t nygroup=2, Int_t nzgroup=2, const char *newname="")
Rebin this histogram grouping nxgroup/nygroup/nzgroup bins along the xaxis/yaxis/zaxis together.
static TH2D * DoProject2D(const TH3 &h, const char *name, const char *title, const TAxis *projX, const TAxis *projY, bool computeErrors, bool originalRange, bool useUF, bool useOF)
Int_t Fill(Double_t)
Invalid Fill method.
virtual void FillRandom(const char *fname, Int_t ntimes=5000, TRandom *rng=nullptr)
Fill histogram following distribution in function fname.
Int_t Fill(const char *, const char *, Double_t)
virtual Int_t BufferFill(Double_t, Double_t, Double_t)
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 Double_t GetCovariance(Int_t axis1=1, Int_t axis2=2) const
Return covariance between axis1 and axis2.
virtual Int_t BufferEmpty(Int_t action=0)
Fill histogram with all entries in the buffer.
virtual void SetBinContent(Int_t binx, Int_t biny, Int_t binz, Double_t content)
virtual TH2D * DoProject2D(const char *name, const char *title, const TAxis *projX, const TAxis *projY, bool computeErrors, bool originalRange, bool useUF, bool useOF) const
internal method performing the projection to a 2D histogram called from TH3::Project3D
virtual Int_t BufferFill(Double_t, Double_t)
accumulate arguments in buffer.
virtual Double_t GetBinErrorUp(Int_t binx, Int_t biny, Int_t binz)
virtual TH1D * ProjectionY(const char *name="_py", Int_t ixmin=0, Int_t ixmax=-1, Int_t izmin=0, Int_t izmax=-1, Option_t *option="") const
Project a 3-D histogram into a 1-D histogram along Y.
Int_t Fill(Double_t, Double_t)
Increment bin with abscissa X with a weight w.
virtual void GetRandom3(Double_t &x, Double_t &y, Double_t &, TRandom *rng=nullptr)
Return 3 random numbers along axis x , y and z distributed according to the cell-contents of this 3-d...
virtual Int_t GetBin(Int_t binx, Int_t biny, Int_t binz) const
See comments in TH1::GetBin.
virtual void Reset(Option_t *option="")
Reset this histogram: contents, errors, etc.
virtual Double_t Integral(Option_t *option="") const
Return integral of bin contents.
virtual void Copy(TObject &hnew) const
Copy.
virtual void SetBinContent(Int_t bin, Int_t, Double_t content)
TH3 & operator=(const TH3 &)
virtual ~TH3()
Destructor.
virtual TH3 * RebinY(Int_t ngroup=2, const char *newname="")
Rebin only the Y axis see Rebin3D.
virtual Double_t IntegralAndError(Int_t binx1, Int_t binx2, Int_t biny1, Int_t biny2, Int_t binz1, Int_t binz2, Double_t &err, Option_t *option="") const
Return integral of bin contents in range [binx1,binx2],[biny1,biny2],[binz1,binz2] for a 3-D histogra...
virtual TH1D * ProjectionZ(const char *name="_pz", Int_t ixmin=0, Int_t ixmax=-1, Int_t iymin=0, Int_t iymax=-1, Option_t *option="") const
Project a 3-D histogram into a 1-D histogram along Z.
virtual TH1D * ProjectionX(const char *name="_px", Int_t iymin=0, Int_t iymax=-1, Int_t izmin=0, Int_t izmax=-1, Option_t *option="") const
Project a 3-D histogram into a 1-D histogram along X.
virtual TProfile2D * Project3DProfile(Option_t *option="xy") const
Project a 3-d histogram into a 2-d profile histograms depending on the option parameter option may co...
virtual Double_t GetBinContent(Int_t bin) const
Return content of bin number bin.
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 FitSlicesZ(TF1 *f1=0, Int_t binminx=1, Int_t binmaxx=0, Int_t binminy=1, Int_t binmaxy=0, Int_t cut=0, Option_t *option="QNR")
Project slices along Z in case of a 3-D histogram, then fit each slice with function f1 and make a 2-...
virtual TH1 * Project3D(Option_t *option="x") const
Project a 3-d histogram into 1 or 2-d histograms depending on the option parameter,...
virtual Double_t GetBinContent(Int_t binx, Int_t biny, Int_t binz) const
virtual void PutStats(Double_t *stats)
Replace current statistics with the values in array stats.
virtual Double_t GetBinErrorLow(Int_t binx, Int_t biny, Int_t binz)
virtual Double_t GetBinContent(Int_t bin, Int_t) const
Int_t Fill(Double_t, const char *, Double_t)
virtual Double_t GetBinWithContent3(Double_t c, Int_t &binx, Int_t &biny, Int_t &binz, Int_t firstx=0, Int_t lastx=0, Int_t firsty=0, Int_t lasty=0, Int_t firstz=0, Int_t lastz=0, Double_t maxdiff=0) const
Compute first cell (binx,biny,binz) in the range [firstx,lastx](firsty,lasty][firstz,...
virtual TH3 * RebinX(Int_t ngroup=2, const char *newname="")
Rebin only the X axis see Rebin3D.
void DoFillProfileProjection(TProfile2D *p2, const TAxis &a1, const TAxis &a2, const TAxis &a3, Int_t bin1, Int_t bin2, Int_t bin3, Int_t inBin, Bool_t useWeights) const
internal function to fill the bins of the projected profile 2D histogram called from DoProjectProfile...
virtual void SetBinContent(Int_t bin, Double_t content)
Set bin content.
virtual TH3 * RebinZ(Int_t ngroup=2, const char *newname="")
Rebin only the Z axis see Rebin3D.
static TH1D * DoProject1D(const TH3 &h, const char *name, const char *title, const TAxis *projX, bool computeErrors, bool originalRange, bool useUF, bool useOF)
virtual Int_t BufferFill(Double_t x, Double_t y, Double_t z, Double_t w)
accumulate arguments in buffer.
virtual void SetShowProjection(const char *option="xy", Int_t nbins=1)
When the mouse is moved in a pad containing a 3-d view of this histogram a second canvas shows a proj...
Int_t Fill(const char *, Double_t, Double_t)
virtual Double_t GetCorrelationFactor(Int_t axis1=1, Int_t axis2=2) const
Return correlation factor between axis1 and axis2.
virtual TH1D * DoProject1D(const char *name, const char *title, int imin1, int imax1, int imin2, int imax2, const TAxis *projAxis, const TAxis *axis1, const TAxis *axis2, Option_t *option) const
internal method performing the projection to 1D histogram called from TH3::Project3D
TH3()
Default constructor.
virtual TProfile2D * DoProjectProfile2D(const char *name, const char *title, const TAxis *projX, const TAxis *projY, bool originalRange, bool useUF, bool useOF) const
internal method to project to a 2D Profile called from TH3::Project3DProfile
Mother of all ROOT objects.
Profile2D histograms are used to display the mean value of Z and its error for each cell in X,...
This is the base class for the ROOT Random number generators.
#define Interpolate(a, x, b, y)