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 override;
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 ClassDefOverride(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) override
Invalid Fill method.
Int_t GetBin(Int_t binx, Int_t biny, Int_t binz) const override
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)
Double_t GetBinErrorSqUnchecked(Int_t bin) const override
TProfile2D * DoProjectProfile2D(const char *name, const char *title, const TAxis *projX, const TAxis *projY, bool originalRange, bool useUF, bool useOF) const override
Internal method to project to a 2D Profile.
Long64_t Merge(TCollection *list) override
Merge all histograms in the collection in this histogram.
static Bool_t fgApproximate
Bin error approximation option.
Double_t RetrieveBinContent(Int_t bin) const override
Raw retrieval of bin content on internal data structure see convention for numbering bins in TH1::Get...
Option_t * GetErrorOption() const
Return option to compute profile2D errors.
Bool_t fScaling
! True when TProfile3D::Scale is called
void SetBins(const Int_t *nbins, const Double_t *range)
Int_t Fill(Double_t, Double_t, Double_t) override
Increment cell defined by x,y,z by 1 .
void PutStats(Double_t *stats) override
Replace current statistics with the values in array stats.
void Copy(TObject &hnew) const override
Copy a Profile3D histogram to a new profile2D histogram.
void SetBins(Int_t, const Double_t *) override
Redefine x axis parameters with variable bin sizes.
Int_t BufferFill(Double_t, Double_t) override
accumulate arguments in buffer.
Double_t GetBinContent(Int_t binx, Int_t biny, Int_t binz) const override
Int_t Fill(Double_t, const char *, Double_t, Double_t) override
Increment cell defined by x,namey,z by a weight w.
Double_t fTsumwt2
Total Sum of weight*T*T.
virtual Double_t GetBinEffectiveEntries(Int_t bin)
Return bin effective entries for a weighted filled Profile histogram.
void GetStats(Double_t *stats) const override
fill the array stats from the contents of this profile.
Int_t Fill(const char *, const char *, const char *, Double_t) override
Increment cell defined by namex,namey,namez by a weight w.
Bool_t Multiply(TF1 *h1, Double_t c1=1) override
Performs the operation: this = this*c1*f1 .
void LabelsOption(Option_t *option="h", Option_t *axis="X") override
Set option(s) to draw axis with labels.
TProfile3D()
Default constructor for Profile3D histograms.
Int_t Fill(const char *, Double_t, const char *, Double_t) override
Increment cell defined by namex,y,namez by a weight w.
virtual TArrayD * GetBinSumw2()
TArrayD fBinEntries
Number of entries per bin.
void LabelsDeflate(Option_t *axis="X") override
Reduce the number of bins for this axis to the number of bins having a label.
void SetBins(Int_t, const Double_t *, Int_t, const Double_t *) override
Redefine x and y axis parameters with variable bin sizes.
~TProfile3D() override
Default destructor for Profile3D histograms.
void ExtendAxis(Double_t x, TAxis *axis) override
Profile histogram is resized along axis such that x is in the axis range.
Double_t fTmin
Lower limit in T (if set)
void Scale(Double_t c1=1, Option_t *option="") override
Multiply this profile2D by a constant c1.
void Sumw2(Bool_t flag=kTRUE) override
Create/Delete structure to store sum of squares of weights per bin This is needed to compute the corr...
void LabelsInflate(Option_t *axis="X") override
Double the number of bins for axis.
TProfile2D * Project3DProfile(Option_t *option="xy") const override
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.
Int_t BufferFill(Double_t, Double_t, Double_t, Double_t) override
Accumulate arguments in buffer.
void BuildOptions(Double_t tmin, Double_t tmax, Option_t *option)
Set Profile3D histogram structure and options.
Int_t Fill(const Double_t *v)
TArrayD fBinSumw2
Array of sum of squares of weights per bin.
Int_t BufferEmpty(Int_t action=0) override
Fill histogram with all entries in the buffer.
void SetBuffer(Int_t buffersize, Option_t *opt="") override
Set the buffer size in units of 8 bytes (double).
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save primitive as a C++ statement(s) on output stream out.
virtual Double_t GetTmax() const
virtual void SetErrorOption(Option_t *option="")
Set option to compute profile3D errors.
Int_t BufferFill(Double_t, Double_t, Double_t) override
void SetBins(Int_t, Double_t, Double_t) override
Redefine x axis parameters.
virtual TH3D * ProjectionXYZ(const char *name="_pxyz", Option_t *option="e") const
Project this profile3D into a 3-D histogram along X,Y,Z.
Double_t GetBinError(Int_t, Int_t) const override
Bool_t Add(TF1 *h1, Double_t c1=1, Option_t *option="") override
Performs the operation: this = this + c1*f1 .
Double_t GetBinContent(Int_t bin) const override
Return bin content of a Profile3D histogram.
EErrorType fErrorMode
Option to compute errors.
Int_t Fill(Double_t, const char *, const char *, Double_t) override
Increment cell defined by x,namey,namez by a weight w.
virtual const TArrayD * GetBinSumw2() const
void SetBinsLength(Int_t n=-1) override
Set total number of bins including under/overflow.
virtual Double_t GetBinEntries(Int_t bin) const
Return bin entries of a Profile3D histogram.
Double_t GetBinError(Int_t binx, Int_t biny, Int_t binz) const override
virtual Double_t GetTmin() const
Bool_t Divide(TF1 *h1, Double_t c1=1) override
Performs the operation: this = this/(c1*f1) .
Double_t GetBinContent(Int_t, Int_t) const override
Double_t fTsumwt
Total Sum of weight*T.
Int_t Fill(Double_t, Double_t, const char *, Double_t) override
Increment cell defined by x,y,namez by a weight w.
Int_t Fill(const char *, const char *, Double_t, Double_t) override
Increment cell defined by namex,namey,z by a weight w.
void SetBins(Int_t, Double_t, Double_t, Int_t, Double_t, Double_t) override
Redefine x and y axis parameters.
static void Approximate(Bool_t approx=kTRUE)
Set the fgApproximate flag.
Double_t fTmax
Upper limit in T (if set)
Double_t GetBinError(Int_t bin) const override
Return bin error of a Profile3D histogram.