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