126:
TH2D(
name,title,nx,xlow,xup,ny,ylow,yup)
136:
TH2D(
name,title,nx,xbins,ny,ylow,yup)
145:
TH2D(
name,title,nx,xlow,xup,ny,ybins)
169TProfile2D::TProfile2D(
const char *
name,
const char *title,
Int_t nx,
Double_t xlow,
Double_t xup,
Int_t ny,
Double_t ylow,
Double_t yup,
Double_t zlow,
Double_t zup,
Option_t *
option)
170:
TH2D(
name,title,nx,xlow,xup,ny,ylow,yup)
208 profile2d.TProfile2D::Copy(*
this);
213 if (
this != &profile2d)
214 profile2d.TProfile2D::Copy(*
this);
223 Error(
"Add",
"Function not implemented for TProfile2D");
233 Error(
"Add",
"Attempt to add a non-existing profile");
237 Error(
"Add",
"Attempt to add a non-profile2D object");
252 Error(
"Add",
"Attempt to add a non-existing profile");
256 Error(
"Add",
"Attempt to add a non-profile2D object");
260 Error(
"Add",
"Attempt to add a non-profile2D object");
296 if (!nbentries)
return 0;
299 if (action == 0)
return 0;
300 nbentries = -nbentries;
311 for (
Int_t i=1;i<nbentries;i++) {
334 for (
Int_t i=0;i<nbentries;i++) {
335 Fill(buffer[4*i+2],buffer[4*i+3],buffer[4*i+4],buffer[4*i+1]);
363 nbentries = -nbentries;
394 for (
int bin=0;bin<
fNcells;bin++) {
417 Error(
"Divide",
"Function not implemented for TProfile2D");
432 Error(
"Divide",
"Attempt to divide a non-existing profile2D");
436 Error(
"Divide",
"Attempt to divide a non-profile2D object");
447 Error(
"Divide",
"Attempt to divide profiles with different number of bins");
452 Error(
"Divide",
"Attempt to divide profiles with different number of bins");
465 for (binx =0;binx<=nx+1;binx++) {
466 for (biny =0;biny<=ny+1;biny++) {
498 Warning(
"Divide",
"Cannot preserve during the division of profiles the sum of bin weight square");
518 Error(
"Divide",
"Attempt to divide a non-existing profile2D");
522 Error(
"Divide",
"Attempt to divide a non-profile2D object");
527 Error(
"Divide",
"Attempt to divide a non-profile2D object");
538 Error(
"Divide",
"Attempt to divide profiles with different number of bins");
543 Error(
"Divide",
"Attempt to divide profiles with different number of bins");
547 Error(
"Divide",
"Coefficient of dividing profile cannot be zero");
565 for (binx =0;binx<=nx+1;binx++) {
566 for (biny =0;biny<=ny+1;biny++) {
570 if (b2)
w =
c1*b1/(
c2*b2);
595 fSumw2.
fArray[bin] = ac1*ac2*(e1*b2*b2 + e2*b1*b1)/(b22*b22);
621 if (binx <0 || biny <0)
return -1;
652 Int_t bin, binx, biny;
662 if (binx < 0 || biny < 0)
return -1;
703 if (binx <0 || biny <0)
return -1;
748 if (binx < 0 || biny < 0)
793 if (binx <0 || biny <0)
return -1;
833 if (bin < 0 || bin >=
fNcells)
return 0;
846 if (bin < 0 || bin >=
fNcells)
return 0;
926 Int_t bin, binx, biny;
929 for (bin=0;bin<9;bin++) stats[bin] = 0;
938 if (firstBinX == 1) firstBinX = 0;
942 if (firstBinY == 1) firstBinY = 0;
946 for (biny = firstBinY; biny <= lastBinY; biny++) {
948 for (binx = firstBinX; binx <= lastBinX; binx++) {
1012 if (ax[0] ==
'y' || ax[0] ==
'Y') axis =
GetYaxis();
1015 Warning(
"LabelsOption",
"Cannot sort. No labels");
1048 if (sort < 0)
return;
1056 Int_t lastLabelBin = -1;
1057 for (
Int_t i = 0; i <
n; ++i) {
1059 if (bin < firstLabelBin)
1060 firstLabelBin = bin;
1061 if (bin > lastLabelBin)
1064 if (firstLabelBin != 1 || lastLabelBin - firstLabelBin + 1 !=
n) {
1065 Error(
"LabelsOption",
1066 "%s of TProfile2D %s contains bins without labels. Sorting will not work correctly - return",
1073 "axis %s of TProfile2D %s has extra following bins without labels. Sorting will work only for first label bins",
1077 std::vector<Int_t>
a(
n);
1078 Int_t i, j, k, ibin, bin;
1079 std::vector<Double_t> sumw(
fNcells);
1080 std::vector<Double_t> errors(
fNcells);
1081 std::vector<Double_t> ent(
fNcells);
1082 std::vector<Double_t> binsw2;
1096 std::vector<TObject *> labold(
n);
1097 for (i = 0; i <
n; i++)
1098 labold[i] =
nullptr;
1099 TIter nextold(labels);
1101 while ((obj = nextold())) {
1103 if (bin>=1 && bin<=
n)
1104 labold[bin-1] = obj;
1110 std::vector<Double_t> pcont;
1111 std::vector<Double_t> econt;
1117 for (i = 0; i < nx; i++) {
1118 for (j = 0; j < ny; j++) {
1138 for (k = 0; k <
n; ++k) {
1141 pcont[k] /= econt[k];
1151 std::vector<std::string> vecLabels(
n);
1152 for (i = 0; i <
n; i++) {
1153 vecLabels[i] = labold[i]->GetName();
1161 for (i = 0; i <
n; i++) {
1167 std::cout <<
"bin " << i + 1 <<
" setting new labels for axis " << labold.at(
a[i])->GetName() <<
" from "
1168 <<
a[i] << std::endl;
1171 for (i = 0; i < nx; i++) {
1172 for (j = 0; j < ny; j++) {
1176 ibin =
GetBin(
a[i - 1] + 1, j);
1178 if (j == 0)
continue;
1181 fArray[bin] = sumw[ibin];
1190 bool labelsAreSorted =
kFALSE;
1191 for (i = 0; i <
n; ++i) {
1193 labelsAreSorted =
kTRUE;
1197 if (labelsAreSorted) {
1237 Error(
"Multiply",
"Function not implemented for TProfile2D");
1248 Error(
"Multiply",
"Multiplication of profile2D histograms not implemented");
1259 Error(
"Multiply",
"Multiplication of profile2D histograms not implemented");
1296 if (pname.
IsNull() || pname ==
"_pxy")
1305 if (xbins->fN == 0 && ybins->
fN == 0) {
1307 }
else if (xbins->fN == 0) {
1309 }
else if (ybins->
fN == 0) {
1327 Int_t bin,binx, biny;
1329 for (binx =0;binx<=nx+1;binx++) {
1330 for (biny =0;biny<=ny+1;biny++) {
1402 bool originalRange = opt.
Contains(
"o");
1404 TString expectedName = ( onX ?
"_pfx" :
"_pfy" );
1417 if (bins->
fN == 0) {
1441 TString opt1 = (originalRange) ?
"o" :
"";
1442 TH1D * h1W = (onX) ? h2dW->
ProjectionX(
"h1temp-W",firstbin,lastbin,opt1) : h2dW->
ProjectionY(
"h1temp-W",firstbin,lastbin,opt1);
1443 TH1D * h1N = (onX) ? h2dN->
ProjectionX(
"h1temp-N",firstbin,lastbin,opt1) : h2dN->
ProjectionY(
"h1temp-N",firstbin,lastbin,opt1);
1451 for (
int i = 0; i < p1->
fN ; ++i) {
1554 if((nxgroup != 1) || (nygroup != 1)){
1561 if ((nxgroup <= 0) || (nxgroup > nxbins)) {
1562 Error(
"Rebin",
"Illegal value of nxgroup=%d",nxgroup);
1565 if ((nygroup <= 0) || (nygroup > nybins)) {
1566 Error(
"Rebin",
"Illegal value of nygroup=%d",nygroup);
1570 Int_t newxbins = nxbins/nxgroup;
1571 Int_t newybins = nybins/nygroup;
1574 if(newxbins*nxgroup != nxbins) {
1575 Warning(
"Rebin",
"nxgroup=%d should be an exact divider of nxbins=%d",nxgroup,nxbins);
1577 if(newybins*nygroup != nybins) {
1578 Warning(
"Rebin",
"nygroup=%d should be an exact divider of nybins=%d",nygroup,nybins);
1590 for(
Int_t ibin=0; ibin < (nxbins+2)*(nybins+2); ibin++){
1591 oldBins[ibin] = cu1[ibin];
1592 oldCount[ibin] = en1[ibin];
1593 oldErrors[ibin] = er1[ibin];
1594 if (ew1 &&
fBinSumw2.
fN) oldBinw2[ibin] = ew1[ibin];
1599 if(newname && strlen(newname) > 0) {
1605 if(newxbins*nxgroup != nxbins) {
1609 if(newybins*nygroup != nybins) {
1618 for(
Int_t i=0; i < newxbins+1; i++)
1620 for(
Int_t j=0; j < newybins+1; j++)
1622 hnew->
SetBins(newxbins,xbins,newybins,ybins);
1636 Double_t binContent, binCount, binError, binSumw2;
1643 for(
Int_t xbin = 1; xbin <= newxbins; xbin++){
1645 for(
Int_t ybin = 1; ybin <= newybins; ybin++){
1650 for(
Int_t i=0; i < nxgroup; i++){
1651 if(oldxbin + i > nxbins)
break;
1652 for(
Int_t j=0; j < nygroup; j++){
1653 if(oldybin + j > nybins)
break;
1654 bin = oldxbin + i + (nxbins+2)*(oldybin+j);
1655 binContent += oldBins[bin];
1656 binCount += oldCount[bin];
1657 binError += oldErrors[bin];
1661 bin = xbin + (newxbins + 2)*ybin;
1662 cu2[bin] = binContent;
1663 er2[bin] = binError;
1664 en2[bin] = binCount;
1672 cu2[0] = oldBins[0];
1673 er2[0] = oldErrors[0];
1674 en2[0] = oldCount[0];
1682 for(
Int_t i=oldxbin; i <= nxbins+1; i++){
1683 for(
Int_t j=oldybin; j <= nybins+1; j++){
1685 bin = i + (nxbins+2)*j;
1686 binContent += oldBins[bin];
1687 binCount += oldCount[bin];
1688 binError += oldErrors[bin];
1692 bin = (newxbins+2)*(newybins+2)-1;
1693 cu2[bin] = binContent;
1694 er2[bin] = binError;
1695 en2[bin] = binCount;
1702 for(
Int_t i=oldxbin; i <= nxbins+1; i++){
1704 binContent += oldBins[bin];
1705 binCount += oldCount[bin];
1706 binError += oldErrors[bin];
1710 cu2[bin] = binContent;
1711 er2[bin] = binError;
1712 en2[bin] = binCount;
1719 for(
Int_t i=oldybin; i <= nybins+1; i++){
1720 bin = i*(nxbins + 2);
1721 binContent += oldBins[bin];
1722 binCount += oldCount[bin];
1723 binError += oldErrors[bin];
1726 bin = (newxbins + 2)*(newybins + 1);
1727 cu2[bin] = binContent;
1728 er2[bin] = binError;
1729 en2[bin] = binCount;
1732 Double_t binContentuf, binCountuf, binErroruf, binSumw2uf;
1733 Double_t binContentof, binCountof, binErrorof, binSumw2of;
1736 for(
Int_t xbin = 1; xbin <= newxbins; xbin++){
1745 for(
Int_t i = 0; i < nxgroup; i++){
1747 ufbin = (oldxbin2 + i);
1748 binContentuf += oldBins[ufbin];
1749 binCountuf += oldCount[ufbin];
1750 binErroruf += oldErrors[ufbin];
1752 for(
Int_t j = oldybin; j <= nybins+1; j++)
1754 ofbin = ufbin + j*(nxbins + 2);
1755 binContentof += oldBins[ofbin];
1756 binCountof += oldCount[ofbin];
1757 binErrorof += oldErrors[ofbin];
1763 ofbin = ufbin + (newybins + 1)*(newxbins + 2);
1764 cu2[ufbin] = binContentuf;
1765 er2[ufbin] = binErroruf;
1766 en2[ufbin] = binCountuf;
1768 cu2[ofbin] = binContentof;
1769 er2[ofbin] = binErrorof;
1770 en2[ofbin] = binCountof;
1773 oldxbin2 += nxgroup;
1777 for(
Int_t ybin = 1; ybin <= newybins; ybin++){
1786 for(
Int_t i = 0; i < nygroup; i++){
1788 ufbin = (oldybin2 + i)*(nxbins+2);
1789 binContentuf += oldBins[ufbin];
1790 binCountuf += oldCount[ufbin];
1791 binErroruf += oldErrors[ufbin];
1793 for(
Int_t j = oldxbin; j <= nxbins+1; j++)
1796 binContentof += oldBins[ofbin];
1797 binCountof += oldCount[ofbin];
1798 binErrorof += oldErrors[ofbin];
1803 ufbin = ybin * (newxbins + 2);
1804 ofbin = newxbins + 1 + ufbin;
1805 cu2[ufbin] = binContentuf;
1806 er2[ufbin] = binErroruf;
1807 en2[ufbin] = binCountuf;
1809 cu2[ofbin] = binContentof;
1810 er2[ofbin] = binErrorof;
1811 en2[ofbin] = binCountof;
1814 oldybin2 += nygroup;
1819 delete [] oldErrors;
1820 if (oldBinw2)
delete [] oldBinw2;
1826 if(newname && (strlen(newname) > 0))
1838 return Rebin2D(ngroup,1,newname);
1846 return Rebin2D(1,ngroup,newname);
1859 out <<
" "<<std::endl;
1872 out <<
");" << std::endl;
1877 for (bin=0;bin<
fNcells;bin++) {
1880 out<<
" "<<
GetName()<<
"->SetBinEntries("<<bin<<
","<<bi<<
");"<<std::endl;
1884 for (bin=0;bin<
fNcells;bin++) {
1887 out<<
" "<<
GetName()<<
"->SetBinContent("<<bin<<
","<<bc<<
");"<<std::endl;
1892 for (bin=0;bin<
fNcells;bin++) {
1895 out<<
" "<<
GetName()<<
"->SetBinError("<<bin<<
","<<be<<
");"<<std::endl;
1963 if (buffersize <= 0) {
1967 if (buffersize < 100) buffersize = 100;
2019 R__b >> zmin;
fZmin = zmin;
2020 R__b >> zmax;
fZmax = zmax;
#define R__ASSERT(e)
Checks condition e and reports a fatal error if it's false.
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
void Warning(const char *location, const char *msgfmt,...)
Use this function in warning situations.
void Fatal(const char *location, const char *msgfmt,...)
Use this function in case of a fatal error. It will abort the program.
Array of doubles (64 bits per element).
void Streamer(TBuffer &) override
Stream a TArrayD object.
void Copy(TArrayD &array) const
void Set(Int_t n) override
Set size of this array to n doubles.
TArrayD()
Default TArrayD ctor.
const Double_t * GetArray() const
Class to manage histogram axis.
virtual Double_t GetBinCenter(Int_t bin) const
Return center of bin.
const TArrayD * GetXbins() const
void Copy(TObject &axis) const override
Copy axis structure to another axis.
virtual Int_t FindBin(Double_t x)
Find bin number corresponding to abscissa x.
virtual Double_t GetBinLowEdge(Int_t bin) const
Return low edge of bin.
Int_t GetLast() const
Return last bin on the axis i.e.
virtual Double_t GetBinUpEdge(Int_t bin) const
Return up edge of bin.
Int_t GetFirst() const
Return first bin on the axis i.e.
THashList * GetLabels() const
Buffer base class used for serializing objects.
virtual Version_t ReadVersion(UInt_t *start=nullptr, UInt_t *bcnt=nullptr, const TClass *cl=nullptr)=0
virtual Int_t CheckByteCount(UInt_t startpos, UInt_t bcnt, const TClass *clss)=0
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=nullptr)=0
virtual Int_t WriteClassBuffer(const TClass *cl, void *pointer)=0
Collection abstract base class.
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
1-D histogram with a double per channel (see TH1 documentation)
TH1 is the base class of all histogram classes in ROOT.
virtual void SetDirectory(TDirectory *dir)
By default, when a histogram is created, it is added to the list of histogram objects in the current ...
Double_t * fBuffer
[fBufferSize] entry buffer
virtual Double_t GetEffectiveEntries() const
Number of effective entries of the histogram.
Int_t fNcells
Number of bins(1D), cells (2D) +U/Overflows.
Double_t fTsumw
Total Sum of weights.
Double_t fTsumw2
Total Sum of squares of weights.
Double_t fTsumwx2
Total Sum of weight*X*X.
virtual Int_t GetNbinsY() const
@ kIsNotW
Histogram is forced to be not weighted even when the histogram is filled with weighted.
virtual Bool_t CanExtendAllAxes() const
Returns true if all axes are extendable.
virtual Int_t GetNbinsX() const
Int_t fBufferSize
fBuffer size
virtual void SetBinError(Int_t bin, Double_t error)
Set the bin Error Note that this resets the bin eror option to be of Normal Type and for the non-empt...
static Int_t fgBufferSize
! Default buffer size for automatic histograms
virtual void SavePrimitiveHelp(std::ostream &out, const char *hname, Option_t *option="")
Helper function for the SavePrimitive functions from TH1 or classes derived from TH1,...
UInt_t GetAxisLabelStatus() const
Internal function used in TH1::Fill to see which axis is full alphanumeric, i.e.
virtual void SetBinContent(Int_t bin, Double_t content)
Set bin content see convention for numbering bins in TH1::GetBin In case the bin number is greater th...
@ kNstat
Size of statistics data (up to TProfile3D)
Double_t fEntries
Number of entries.
virtual Double_t GetBinContent(Int_t bin) const
Return content of bin number bin.
virtual TArrayD * GetSumw2()
TAxis fXaxis
X axis descriptor.
TArrayD fSumw2
Array of sum of squares of weights.
Bool_t GetStatOverflowsBehaviour() const
TObject * Clone(const char *newname="") const override
Make a complete copy of the underlying object.
TAxis fYaxis
Y axis descriptor.
virtual void SetBins(Int_t nx, Double_t xmin, Double_t xmax)
Redefine x axis parameters.
virtual void Sumw2(Bool_t flag=kTRUE)
Create structure to store sum of squares of weights.
virtual void SetEntries(Double_t n)
Double_t fTsumwx
Total Sum of weight*X.
2-D histogram with a double per channel (see TH1 documentation)
void Streamer(TBuffer &) override
Stream an object of class TH2D.
void SetBinsLength(Int_t n=-1) override
Set total number of bins including under/overflow Reallocate bin contents array.
void Copy(TObject &hnew) const override
Copy.
void AddBinContent(Int_t bin) override
Increment bin content by 1.
TH1D * ProjectionY(const char *name="_py", Int_t firstxbin=0, Int_t lastxbin=-1, Option_t *option="") const
Project a 2-D histogram into a 1-D histogram along Y.
Double_t fTsumwxy
Total Sum of weight*X*Y.
Double_t fTsumwy2
Total Sum of weight*Y*Y.
Int_t GetBin(Int_t binx, Int_t biny, Int_t binz=0) const override
Return Global bin number corresponding to binx,y,z.
TH1D * ProjectionX(const char *name="_px", Int_t firstybin=0, Int_t lastybin=-1, Option_t *option="") const
Project a 2-D histogram into a 1-D histogram along X.
Double_t fTsumwy
Total Sum of weight*Y.
static THLimitsFinder * GetLimitsFinder()
Return pointer to the current finder.
virtual Int_t FindGoodLimits(TH1 *h, Double_t xmin, Double_t xmax)
Compute the best axis limits for the X axis.
THashList implements a hybrid collection class consisting of a hash table and a list to store TObject...
void Clear(Option_t *option="") override
Remove all objects from the list.
void Add(TObject *obj) override
TObject * At(Int_t idx) const override
Returns the object at position idx. Returns 0 if idx is out of range.
const char * GetName() const override
Returns name of object.
const char * GetTitle() const override
Returns title of object.
Mother of all ROOT objects.
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
virtual UInt_t GetUniqueID() const
Return the unique object id.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
virtual void SetUniqueID(UInt_t uid)
Set the unique object id.
virtual TClass * IsA() const
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 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)
TClass * IsA() const override
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.
static void Approximate(Bool_t approx=kTRUE)
Static function, set the fgApproximate flag.
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.
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.
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.
void Sumw2(Bool_t flag=kTRUE) override
Create/Delete structure to store sum of squares of weights per bin.
TArrayD fBinEntries
Number of entries per bin.
void SetBins(const Int_t *nbins, const Double_t *range)
~TProfile2D() override
Default destructor for Profile2D histograms.
void Streamer(TBuffer &) override
Stream an object of class TProfile2D.
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) .
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 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 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 void SetErrorOption(Option_t *option="")
Set option to compute profile2D errors.
Double_t GetBinContent(Int_t bin) const override
Return bin content of a Profile2D histogram.
static void LabelsInflate(T *p, Option_t *)
static Double_t GetBinError(T *p, Int_t bin)
static T * ExtendAxis(T *p, Double_t x, TAxis *axis)
static void Sumw2(T *p, Bool_t flag)
static void SetBinEntries(T *p, Int_t bin, Double_t w)
static void Scale(T *p, Double_t c1, Option_t *option)
static void SetErrorOption(T *p, Option_t *opt)
static Long64_t Merge(T *p, TCollection *list)
static void BuildArray(T *p)
static Bool_t Add(T *p, const TH1 *h1, const TH1 *h2, Double_t c1, Double_t c2=1)
static Double_t GetBinEffectiveEntries(T *p, Int_t bin)
static void LabelsDeflate(T *p, Option_t *)
virtual TArrayD * GetBinSumw2()
virtual void SetBinEntries(Int_t bin, Double_t w)
Set the number of entries in bin.
void Sumw2(Bool_t flag=kTRUE) override
Create/delete structure to store sum of squares of weights per bin.
void ToLower()
Change string to lower-case.
void ToUpper()
Change string to upper case.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
Double_t Sqrt(Double_t x)
Returns the square root of x.
void Sort(Index n, const Element *a, Index *index, Bool_t down=kTRUE)
Sort the n elements of the array a of generic templated type Element.
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.