12#ifndef ROOT_TProfile2D
13#define ROOT_TProfile2D
50 nbins[1], range[2], range[3]); };
68 {
MayNotUse(
"SetBins(Int_t, Double_t, Double_t"); }
70 {
MayNotUse(
"SetBins(Int_t, const Double_t*"); }
72 {
MayNotUse(
"SetBins(Int_t, Double_t, Double_t, Int_t, Double_t, Double_t, Int_t, Double_t, Double_t"); }
74 {
MayNotUse(
"SetBins(Int_t, const Double_t*, Int_t, const Double_t*, Int_t, const Double_t*"); }
#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.
2-D histogram with a double per channel (see TH1 documentation)}
Int_t GetBin(Int_t binx, Int_t biny, Int_t binz=0) const override
Return Global bin number corresponding to binx,y,z.
Int_t Fill(Double_t) override
Invalid Fill method.
Mother of all ROOT objects.
Profile2D histograms are used to display the mean value of Z and its error for each cell in X,...
Long64_t Merge(TCollection *list) override
Merge all histograms in the collection in this histogram.
void SetBins(Int_t, Double_t, Double_t) override
Redefine x axis parameters.
void PutStats(Double_t *stats) override
Replace current statistics with the values in array stats.
Int_t BufferFill(Double_t, Double_t) override
accumulate arguments in buffer.
Double_t fTsumwz
Total Sum of weight*Z.
Int_t Fill(const Double_t *v)
TH2D * ProjectionXY(const char *name="_pxy", Option_t *option="e") const
Project this profile2D into a 2-D histogram along X,Y.
Bool_t Multiply(TF1 *h1, Double_t c1=1) override
Performs the operation: this = this*c1*f1.
void LabelsDeflate(Option_t *axis="X") override
Reduce the number of bins for this axis to the number of bins having a label.
Double_t GetBinError(Int_t bin) const override
Return bin error of a Profile2D histogram.
Double_t GetBinContent(Int_t binx, Int_t biny, Int_t) const override
static void Approximate(Bool_t approx=kTRUE)
Static function, set the fgApproximate flag.
virtual const TArrayD * GetBinSumw2() const
EErrorType fErrorMode
Option to compute errors.
Double_t fZmin
Lower limit in Z (if set)
TProfile2D * RebinX(Int_t ngroup=2, const char *newname="") override
Rebin only the X axis.
Int_t BufferFill(Double_t, Double_t, Double_t) override
accumulate arguments in buffer.
Double_t GetBinError(Int_t binx, Int_t biny) const override
void SetBins(Int_t, const Double_t *) override
Redefine x axis parameters with variable bin sizes.
Bool_t fScaling
! True when TProfile2D::Scale is called
virtual Double_t GetBinEffectiveEntries(Int_t bin)
Return bin effective entries for a weighted filled Profile histogram.
Option_t * GetErrorOption() const
Return option to compute profile2D errors.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save primitive as a C++ statement(s) on output stream out.
TArrayD fBinSumw2
Array of sum of squares of weights per bin.
Double_t GetBinContent(Int_t binx, Int_t biny) const override
void ExtendAxis(Double_t x, TAxis *axis) override
Profile histogram is resized along axis such that x is in the axis range.
TProfile * ProfileY(const char *name="_pfy", Int_t firstxbin=0, Int_t lastxbin=-1, Option_t *option="") const
Project a 2-D histogram into a profile histogram along X.
TProfile2D * RebinY(Int_t ngroup=2, const char *newname="") override
Rebin only the Y axis.
void Scale(Double_t c1=1, Option_t *option="") override
Multiply this profile2D by a constant c1.
virtual void SetBinEntries(Int_t bin, Double_t w)
Set the number of entries in bin.
void Copy(TObject &hnew) const override
Copy a Profile2D histogram to a new profile2D histogram.
TProfile * DoProfile(bool onX, const char *name, Int_t firstbin, Int_t lastbin, Option_t *option) const override
Implementation of ProfileX or ProfileY for a TProfile2D.
TProfile * ProfileX(const char *name="_pfx", Int_t firstybin=0, Int_t lastybin=-1, Option_t *option="") const
Project a 2-D histogram into a profile histogram along X.
void LabelsOption(Option_t *option="h", Option_t *axis="X") override
Set option(s) to draw axis with labels.
TProfile2D()
Default constructor for Profile2D histograms.
Double_t GetBinError(Int_t binx, Int_t biny, Int_t) const override
void Sumw2(Bool_t flag=kTRUE) override
Create/Delete structure to store sum of squares of weights per bin.
Double_t GetBinErrorSqUnchecked(Int_t bin) const override
TArrayD fBinEntries
Number of entries per bin.
void SetBins(const Int_t *nbins, const Double_t *range)
~TProfile2D() override
Default destructor for Profile2D histograms.
static Bool_t fgApproximate
Bin error approximation option.
Bool_t Divide(TF1 *h1, Double_t c1=1) override
Performs the operation: this = this/(c1*f1) .
void SetBins(Int_t, const Double_t *, Int_t, const Double_t *, Int_t, const Double_t *) override
Redefine x, y and z axis parameters with variable bin sizes.
TProfile2D * Rebin2D(Int_t nxgroup=2, Int_t nygroup=2, const char *newname="") override
Rebin this histogram grouping nxgroup/nygroup bins along the xaxis/yaxis together.
Int_t Fill(Double_t, Double_t) override
Increment cell defined by x,y by 1.
Int_t BufferEmpty(Int_t action=0) override
Fill histogram with all entries in the buffer.
void LabelsInflate(Option_t *axis="X") override
Double the number of bins for axis.
void GetStats(Double_t *stats) const override
Fill the array stats from the contents of this profile.
virtual Double_t GetBinEntries(Int_t bin) const
Return bin entries of a Profile2D histogram.
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...
void SetBins(Int_t, Double_t, Double_t, Int_t, Double_t, Double_t, Int_t, Double_t, Double_t) override
Redefine x, y and z axis parameters.
Double_t fZmax
Upper limit in Z (if set)
void SetBinsLength(Int_t n=-1) override
Set total number of bins including under/overflow.
void BuildOptions(Double_t zmin, Double_t zmax, Option_t *option)
Set Profile2D histogram structure and options.
Bool_t Add(TF1 *h1, Double_t c1=1, Option_t *option="") override
Performs the operation: this = this + c1*f1 .
TProfile2D & operator=(const TProfile2D &profile)
void SetBuffer(Int_t buffersize, Option_t *option="") override
Set the buffer size in units of 8 bytes (double).
Double_t fTsumwz2
Total Sum of weight*Z*Z.
virtual TArrayD * GetBinSumw2()
Double_t GetNumberOfBins()
virtual void SetErrorOption(Option_t *option="")
Set option to compute profile2D errors.
virtual Double_t GetZmax() const
virtual Double_t GetZmin() const
Double_t GetBinContent(Int_t bin) const override
Return bin content of a Profile2D histogram.