12#ifndef ROOT_TProfile3D
13#define ROOT_TProfile3D
51 nbins[1], range[2], range[3],
52 nbins[2], range[4], range[5]); };
70 bool originalRange,
bool useUF,
bool useOF)
const;
78 {
MayNotUse(
"SetBins(Int_t, Double_t, Double_t"); }
80 {
MayNotUse(
"SetBins(Int_t, const Double_t*"); }
82 {
MayNotUse(
"SetBins(Int_t, Double_t, Double_t, Int_t, Double_t, Double_t"); }
84 {
MayNotUse(
"SetBins(Int_t, const Double_t*, Int_t, const Double_t*"); }
112 {
MayNotUse(
"GetBinContent(Int_t, Int_t");
return -1; }
116 {
MayNotUse(
"GetBinError(Int_t, Int_t");
return -1; }
#define ClassDef(name, id)
void MayNotUse(const char *method)
This function can be used in classes that should override a certain function, but in the inherited cl...
Array of doubles (64 bits per element).
Class to manage histogram axis.
Collection abstract base class.
TH1 is the base class of all histogram classes in ROOT.
TArrayD fSumw2
Array of sum of squares of weights.
3-D histogram with a double per channel (see TH1 documentation)}
Int_t Fill(Double_t)
Invalid Fill method.
virtual Int_t GetBin(Int_t binx, Int_t biny, Int_t binz) const
See comments in TH1::GetBin.
Mother of all ROOT objects.
Profile2D histograms are used to display the mean value of Z and its error for each cell in X,...
Profile3D histograms are used to display the mean value of T and its RMS for each cell in X,...
TProfile3D & operator=(const TProfile3D &profile)
Int_t Fill(Double_t, const char *, const char *, Double_t)
Increment cell defined by x,namey,namez by a weight w.
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.
virtual void Sumw2(Bool_t flag=kTRUE)
Create/Delete structure to store sum of squares of weights per bin This is needed to compute the corr...
virtual void ExtendAxis(Double_t x, TAxis *axis)
Profile histogram is resized along axis such that x is in the axis range.
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...
static Bool_t fgApproximate
virtual void LabelsDeflate(Option_t *axis="X")
Reduce the number of bins for this axis to the number of bins having a label.
virtual void SetBuffer(Int_t buffersize, Option_t *opt="")
Set the buffer size in units of 8 bytes (double).
void SetBins(Int_t, Double_t, Double_t)
Redefine x axis parameters.
virtual Double_t GetBinError(Int_t, Int_t) const
virtual Int_t BufferEmpty(Int_t action=0)
Fill histogram with all entries in the buffer.
virtual Long64_t Merge(TCollection *list)
Merge all histograms in the collection in this histogram.
Option_t * GetErrorOption() const
Return option to compute profile2D errors.
void SetBins(const Int_t *nbins, const Double_t *range)
virtual Double_t GetBinError(Int_t bin) const
Return bin error of a Profile3D histogram.
virtual Double_t GetBinError(Int_t binx, Int_t biny, Int_t binz) const
void SetBins(Int_t, Double_t, Double_t, Int_t, Double_t, Double_t)
Redefine x and y axis parameters.
virtual Double_t GetBinEffectiveEntries(Int_t bin)
Return bin effective entries for a weighted filled Profile histogram.
virtual Double_t GetBinContent(Int_t, Int_t) const
Int_t Fill(Double_t, Double_t, const char *, Double_t)
Increment cell defined by x,y,namez by a weight w.
virtual Bool_t Add(TF1 *h1, Double_t c1=1, Option_t *option="")
Performs the operation: this = this + c1*f1 .
Int_t Fill(Double_t, const char *, Double_t, Double_t)
Increment cell defined by x,namey,z by a weight w.
virtual void GetStats(Double_t *stats) const
fill the array stats from the contents of this profile.
TProfile3D()
Default constructor for Profile3D histograms.
virtual TArrayD * GetBinSumw2()
virtual Double_t GetBinContent(Int_t bin) const
Return bin content of a Profile3D histogram.
virtual Double_t GetBinErrorSqUnchecked(Int_t bin) const
virtual Int_t BufferFill(Double_t, Double_t, Double_t)
virtual void Scale(Double_t c1=1, Option_t *option="")
Multiply this profile2D by a constant c1.
virtual Bool_t Multiply(TF1 *h1, Double_t c1=1)
Performs the operation: this = this*c1*f1 .
void SetBins(Int_t, const Double_t *)
Redefine x axis parameters with variable bin sizes.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
Int_t Fill(Double_t, Double_t, Double_t)
Increment cell defined by x,y,z by 1 .
virtual TProfile2D * Project3DProfile(Option_t *option="xy") const
Project a 3-D profile into a 2D-profile histogram depending on the option parameter.
virtual void SetBinEntries(Int_t bin, Double_t w)
Set the number of entries in bin.
virtual void Copy(TObject &hnew) const
Copy a Profile3D histogram to a new profile2D histogram.
void BuildOptions(Double_t tmin, Double_t tmax, Option_t *option)
Set Profile3D histogram structure and options.
Int_t Fill(const Double_t *v)
virtual void PutStats(Double_t *stats)
Replace current statistics with the values in array stats.
virtual Double_t GetTmax() const
virtual void SetErrorOption(Option_t *option="")
Set option to compute profile3D errors.
virtual Bool_t Divide(TF1 *h1, Double_t c1=1)
Performs the operation: this = this/(c1*f1) .
virtual ~TProfile3D()
Default destructor for Profile3D histograms.
virtual TH3D * ProjectionXYZ(const char *name="_pxyz", Option_t *option="e") const
Project this profile3D into a 3-D histogram along X,Y,Z.
virtual Int_t BufferFill(Double_t, Double_t, Double_t, Double_t)
accumulate arguments in buffer.
virtual void LabelsInflate(Option_t *axis="X")
Double the number of bins for axis.
void SetBins(Int_t, const Double_t *, Int_t, const Double_t *)
Redefine x and y axis parameters with variable bin sizes.
Int_t Fill(const char *, const char *, Double_t, Double_t)
Increment cell defined by namex,namey,z by a weight w.
virtual const TArrayD * GetBinSumw2() const
Int_t Fill(const char *, const char *, const char *, Double_t)
Increment cell defined by namex,namey,namez by a weight w.
virtual Int_t BufferFill(Double_t, Double_t)
accumulate arguments in buffer.
virtual Double_t GetBinContent(Int_t binx, Int_t biny, Int_t binz) const
virtual Double_t GetBinEntries(Int_t bin) const
Return bin entries of a Profile3D histogram.
virtual Double_t GetTmin() const
virtual void SetBinsLength(Int_t n=-1)
Set total number of bins including under/overflow.
Double_t fTsumwt
True when TProfile3D::Scale is called.
virtual void LabelsOption(Option_t *option="h", Option_t *axis="X")
Set option(s) to draw axis with labels.
Int_t Fill(const char *, Double_t, const char *, Double_t)
Increment cell defined by namex,y,namez by a weight w.
static void Approximate(Bool_t approx=kTRUE)
Set the fgApproximate flag.