77 virtual Int_t Fill(
const char *namex,
const char *namey,
const char *namez,
Double_t w);
98 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;
133 virtual TH1D *
DoProject1D(
const char*
name,
const char * title,
int imin1,
int imax1,
int imin2,
int imax2,
136 bool computeErrors,
bool originalRange,
bool useUF,
bool useOF)
const;
138 bool computeErrors,
bool originalRange,
139 bool useUF,
bool useOF)
const;
141 bool originalRange,
bool useUF,
bool useOF)
const;
145 bool computeErrors,
bool originalRange,
bool useUF,
bool useOF) {
146 return h.
DoProject1D(name, title, projX, computeErrors, originalRange, useUF, useOF);
149 bool computeErrors,
bool originalRange,
bool useUF,
bool useOF) {
150 return h.
DoProject2D(name, title, projX,projY, computeErrors, originalRange, useUF, useOF);
virtual Int_t BufferFill(Double_t, Double_t)
accumulate arguments in buffer.
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.
TH3()
Default constructor.
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 TH1 * Project3D(Option_t *option="x") const
Project a 3-d histogram into 1 or 2-d histograms depending on the option parameter, which may contain a combination of the characters x,y,z,e.
virtual TH3 * RebinX(Int_t ngroup=2, const char *newname="")
Rebin only the X axis see Rebin3D.
virtual void AddBinContent(Int_t bin)
Increment bin content by 1.
virtual void FillRandom(const char *fname, Int_t ntimes=5000)
Fill histogram following distribution in function fname.
tomato 3-D histogram with a float per channel (see TH1 documentation)}
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
virtual void SetBinContent(Int_t bin, Double_t content)
Set bin content.
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...
friend TH3F operator*(TH3F &h1, Float_t c1)
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 Double_t GetBinContent(Int_t bin) const
Return content of bin number bin.
virtual Int_t GetBin(Int_t binx, Int_t biny, Int_t binz) const
See comments in TH1::GetBin.
virtual Double_t Integral(Option_t *option="") const
Return integral of bin contents.
virtual Double_t GetBinErrorLow(Int_t binx, Int_t biny, Int_t binz)
Use this attribute class when an object should have 3D capabilities.
virtual Int_t FindLastBinAbove(Double_t threshold=0, Int_t axis=1) const
Find last bin with content > threshold for axis (1=x, 2=y, 3=z) if no bins with content > threshold i...
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)
virtual void AddBinContent(Int_t bin)
Increment bin content by 1.
Array of floats (32 bits per element).
TTime operator/(const TTime &t1, const TTime &t2)
virtual Double_t GetBinContent(Int_t bin) const
Return content of bin number bin.
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 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 Int_t FindFirstBinAbove(Double_t threshold=0, Int_t axis=1) const
Find first bin with content > threshold for axis (1=x, 2=y, 3=z) if no bins with content > threshold ...
virtual Double_t GetBinContent(Int_t binx, Int_t biny, Int_t binz) const
static TH1D * DoProject1D(const TH3 &h, const char *name, const char *title, const TAxis *projX, bool computeErrors, bool originalRange, bool useUF, bool useOF)
virtual Double_t GetCovariance(Int_t axis1=1, Int_t axis2=2) const
Return covariance between axis1 and axis2.
virtual Int_t BufferFill(Double_t x, Double_t y, Double_t z, Double_t w)
accumulate arguments in buffer.
Array of integers (32 bits per element).
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 Double_t Integral(Option_t *option="") const
Return integral of bin contents.
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 ...
#define ClassDef(name, id)
Int_t Fill(const char *, const char *, Double_t)
Int_t Fill(Double_t, const char *, Double_t)
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 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.
virtual TH3 * RebinY(Int_t ngroup=2, const char *newname="")
Rebin only the Y axis see Rebin3D.
virtual Double_t GetCorrelationFactor(Int_t axis1=1, Int_t axis2=2) const
Return correlation factor between axis1 and axis2.
Int_t Fill(const char *, Double_t)
Increment bin with namex with a weight w.
TTime operator-(const TTime &t1, const TTime &t2)
static double p2(double t, double a, double b, double c)
TString operator+(const TString &s1, const TString &s2)
Use the special concatenation constructor.
virtual void AddBinContent(Int_t bin)
Increment bin content by 1.
virtual void GetStats(Double_t *stats) const
Fill the array stats from the contents of this histogram The array stats must be correctly dimensionn...
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...
The 3-D histogram classes derived from the 1-D histogram classes.
tomato 3-D histogram with an int per channel (see TH1 documentation)}
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 Double_t GetBinErrorUp(Int_t binx, Int_t biny, Int_t binz)
tomato 3-D histogram with a short per channel (see TH1 documentation)
THist< 3, double, THistStatContent, THistStatUncertainty > TH3D
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 Double_t RetrieveBinContent(Int_t bin) const
Raw retrieval of bin content on internal data structure see convention for numbering bins in TH1::Get...
THist< 3, char, THistStatContent > TH3C
Class to manage histogram axis.
tomato 3-D histogram with a double per channel (see TH1 documentation)}
Array of shorts (16 bits per element).
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 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-...
TTime operator*(const TTime &t1, const TTime &t2)
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 methdod performing the projection to 1D histogram called from TH3::Project3D ...
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 PutStats(Double_t *stats)
Replace current statistics with the values in array stats.
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...
friend TH3D operator*(TH3D &h1, Float_t c1)
Int_t Fill(Double_t)
Invalid Fill method.
virtual void Copy(TObject &hnew) const
Copy.
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.
tomato 1-D histogram with a double per channel (see TH1 documentation)}
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, Double_t w)
Increment bin content by a weight w.
virtual void Reset(Option_t *option="")
Reset this histogram: contents, errors, etc.
virtual void AddBinContent(Int_t bin, Double_t w)
Increment bin content by a weight w.
virtual Double_t GetBinContent(Int_t bin, Int_t) const
TH3 & operator=(const TH3 &)
THist< 3, int, THistStatContent > TH3I
virtual Double_t GetBinErrorLow(Int_t bin) const
Return lower error associated to bin number bin.
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 Int_t BufferEmpty(Int_t action=0)
Fill histogram with all entries in the buffer.
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...
tomato 3-D histogram with a byte per channel (see TH1 documentation)
Profile2D histograms are used to display the mean value of Z and its RMS for each cell in X...
Array of doubles (64 bits per element).
THist< 3, float, THistStatContent, THistStatUncertainty > TH3F
Mother of all ROOT objects.
you should not use this method at all Int_t Int_t z
virtual TH3 * RebinZ(Int_t ngroup=2, const char *newname="")
Rebin only the Z axis see Rebin3D.
virtual void GetRandom3(Double_t &x, Double_t &y, Double_t &z)
Return 3 random numbers along axis x , y and z distributed according the cellcontents of a 3-dim hist...
Int_t Fill(const char *, Double_t, Double_t)
virtual void SetBinContent(Int_t binx, Int_t biny, Int_t binz, Double_t content)
friend TH3C operator*(TH3C &h1, Float_t c1)
virtual void SetBinsLength(Int_t=-1)
virtual void SetBinContent(Int_t bin, Int_t, Double_t content)
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,lastz] for which diff = abs(cell_content-c) <= maxdiff In case several cells in the specified range with diff=0 are found the first cell found is returned in binx,biny,binz.
friend TH3I operator*(TH3I &h1, Float_t c1)
virtual Int_t BufferFill(Double_t, Double_t, Double_t)
virtual Double_t GetBinErrorUp(Int_t bin) const
Return upper error associated to bin number bin.
virtual ~TH3()
Destructor.
virtual Double_t Interpolate(Double_t x)
Not yet implemented.
Int_t Fill(Double_t, Double_t)
Increment bin with abscissa X with a weight w.
friend TH3S operator*(TH3S &h1, Float_t c1)
tomato 2-D histogram with a double per channel (see TH1 documentation)}
Array of chars or bytes (8 bits per element).