110 :
TH2D(name,title,nx,xlow,xup,ny,ylow,yup)
120 :
TH2D(name,title,nx,xbins,ny,ylow,yup)
129 :
TH2D(name,title,nx,xlow,xup,ny,ybins)
138 :
TH2D(name,title,nx,xbins,ny,ybins)
153 TProfile2D::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)
154 :
TH2D(name,title,nx,xlow,xup,ny,ylow,yup)
200 Error(
"Add",
"Function not implemented for TProfile2D");
210 Error(
"Add",
"Attempt to add a non-existing profile");
214 Error(
"Add",
"Attempt to add a non-profile2D object");
229 Error(
"Add",
"Attempt to add a non-existing profile");
233 Error(
"Add",
"Attempt to add a non-profile2D object");
237 Error(
"Add",
"Attempt to add a non-profile2D object");
273 if (!nbentries)
return 0;
276 if (action == 0)
return 0;
277 nbentries = -nbentries;
288 for (
Int_t i=1;i<nbentries;i++) {
290 if (x < xmin) xmin =
x;
291 if (x > xmax) xmax =
x;
293 if (y < ymin) ymin =
y;
294 if (y > ymax) ymax =
y;
311 for (
Int_t i=0;i<nbentries;i++) {
312 Fill(buffer[4*i+2],buffer[4*i+3],buffer[4*i+4],buffer[4*i+1]);
340 nbentries = -nbentries;
350 return Fill(x,y,z,w);
371 for (
int bin=0;bin<
fNcells;bin++) {
383 Fatal(
"Copy",
"Cannot copy a TProfile2D in a %s",obj.IsA()->
GetName());
394 Error(
"Divide",
"Function not implemented for TProfile2D");
409 Error(
"Divide",
"Attempt to divide a non-existing profile2D");
413 Error(
"Divide",
"Attempt to divide a non-profile2D object");
424 Error(
"Divide",
"Attempt to divide profiles with different number of bins");
429 Error(
"Divide",
"Attempt to divide profiles with different number of bins");
442 for (binx =0;binx<=nx+1;binx++) {
443 for (biny =0;biny<=ny+1;biny++) {
467 else fSumw2.
fArray[bin] = (e0*c1*c1 + e1*c0*c0)/(c12*c12);
475 Warning(
"Divide",
"Cannot preserve during the division of profiles the sum of bin weight square");
495 Error(
"Divide",
"Attempt to divide a non-existing profile2D");
499 Error(
"Divide",
"Attempt to divide a non-profile2D object");
504 Error(
"Divide",
"Attempt to divide a non-profile2D object");
515 Error(
"Divide",
"Attempt to divide profiles with different number of bins");
520 Error(
"Divide",
"Attempt to divide profiles with different number of bins");
524 Error(
"Divide",
"Coefficient of dividing profile cannot be zero");
542 for (binx =0;binx<=nx+1;binx++) {
543 for (biny =0;biny<=ny+1;biny++) {
547 if (b2) w = c1*b1/(c2*b2);
572 fSumw2.
fArray[bin] = ac1*ac2*(e1*b2*b2 + e2*b1*b1)/(b22*b22);
598 if (binx <0 || biny <0)
return -1;
636 if (binx <0 || biny <0)
return -1;
673 if (binx <0 || biny <0)
return -1;
709 if (binx <0 || biny <0)
return -1;
749 if (binx <0 || biny <0)
return -1;
781 if (bin < 0 || bin >=
fNcells)
return 0;
794 if (bin < 0 || bin >=
fNcells)
return 0;
870 Int_t bin, binx, biny;
873 for (bin=0;bin<9;bin++) stats[bin] = 0;
882 if (firstBinX == 1) firstBinX = 0;
886 if (firstBinY == 1) firstBinY = 0;
890 for (biny = firstBinY; biny <= lastBinY; biny++) {
892 for (binx = firstBinX; binx <= lastBinX; binx++) {
956 if (ax[0] ==
'y' || ax[0] ==
'Y') axis =
GetYaxis();
959 Warning(
"LabelsOption",
"Cannot sort. No labels");
992 if (sort < 0)
return;
1003 TIter nextold(labels);
1005 while ((obj=nextold())) {
1012 for (i=0;i<=
n;i++) pcont[i] = 0;
1013 for (i=1;i<nx;i++) {
1014 for (j=1;j<ny;j++) {
1028 obj = labold->
At(a[i]);
1032 for (i=1;i<nx;i++) {
1033 for (j=1;j<ny;j++) {
1036 fArray[bin] = sumw[a[i-1]+1+nx*j];
1040 fArray[bin] = sumw[i+nx*(a[j-1]+1)];
1048 const UInt_t kUsed = 1<<18;
1052 for (i=1;i<=
n;i++) {
1053 const char *label =
"zzzzzzzzzzzz";
1054 for (j=1;j<=
n;j++) {
1055 obj = labold->
At(j-1);
1057 if (obj->
TestBit(kUsed))
continue;
1059 if (strcmp(label,obj->
GetName()) < 0)
continue;
1070 for (i=1;i<=
n;i++) {
1071 obj = labels->
At(i-1);
1075 for (i=0;i<nx;i++) {
1076 for (j=0;j<ny;j++) {
1083 for (i=0;i<nx;i++) {
1084 for (j=0;j<ny;j++) {
1087 fArray[bin] = sumw[a[i]+nx*j];
1091 fArray[bin] = sumw[i+nx*a[j]];
1100 if (sumw)
delete [] sumw;
1101 if (errors)
delete [] errors;
1102 if (ent)
delete [] ent;
1129 Error(
"Multiply",
"Function not implemented for TProfile2D");
1140 Error(
"Multiply",
"Multiplication of profile2D histograms not implemented");
1151 Error(
"Multiply",
"Multiplication of profile2D histograms not implemented");
1188 if (pname.
IsNull() || pname ==
"_pxy")
1197 if (xbins->
fN == 0 && ybins->
fN == 0) {
1199 }
else if (xbins->
fN == 0) {
1201 }
else if (ybins->
fN == 0) {
1214 if (computeErrors || binWeight || (binEntries &&
fBinSumw2.
fN) ) h1->
Sumw2();
1217 Int_t bin,binx, biny;
1219 for (binx =0;binx<=nx+1;binx++) {
1220 for (biny =0;biny<=ny+1;biny++) {
1262 return DoProfile(
true, name, firstybin, lastybin, option);
1281 return DoProfile(
false, name, firstxbin, lastxbin, option);
1292 bool originalRange = opt.
Contains(
"o");
1294 TString expectedName = ( onX ?
"_pfx" :
"_pfy" );
1297 if (pname.
IsNull() || name == expectedName)
1307 if (bins->
fN == 0) {
1331 TString opt1 = (originalRange) ?
"o" :
"";
1332 TH1D * h1W = (onX) ? h2dW->
ProjectionX(
"h1temp-W",firstbin,lastbin,opt1) : h2dW->
ProjectionY(
"h1temp-W",firstbin,lastbin,opt1);
1333 TH1D * h1N = (onX) ? h2dN->
ProjectionX(
"h1temp-N",firstbin,lastbin,opt1) : h2dN->
ProjectionY(
"h1temp-N",firstbin,lastbin,opt1);
1341 for (
int i = 0; i < p1->
fN ; ++i) {
1444 if((nxgroup != 1) || (nygroup != 1)){
1451 if ((nxgroup <= 0) || (nxgroup > nxbins)) {
1452 Error(
"Rebin",
"Illegal value of nxgroup=%d",nxgroup);
1455 if ((nygroup <= 0) || (nygroup > nybins)) {
1456 Error(
"Rebin",
"Illegal value of nygroup=%d",nygroup);
1460 Int_t newxbins = nxbins/nxgroup;
1461 Int_t newybins = nybins/nygroup;
1464 if(newxbins*nxgroup != nxbins) {
1465 Warning(
"Rebin",
"nxgroup=%d should be an exact divider of nxbins=%d",nxgroup,nxbins);
1467 if(newybins*nygroup != nybins) {
1468 Warning(
"Rebin",
"nygroup=%d should be an exact divider of nybins=%d",nygroup,nybins);
1480 for(
Int_t ibin=0; ibin < (nxbins+2)*(nybins+2); ibin++){
1481 oldBins[ibin] = cu1[ibin];
1482 oldCount[ibin] = en1[ibin];
1483 oldErrors[ibin] = er1[ibin];
1484 if (ew1 &&
fBinSumw2.
fN) oldBinw2[ibin] = ew1[ibin];
1489 if(newname && strlen(newname) > 0) {
1495 if(newxbins*nxgroup != nxbins) {
1499 if(newybins*nygroup != nybins) {
1508 for(
Int_t i=0; i < newxbins+1; i++)
1510 for(
Int_t j=0; j < newybins+1; j++)
1512 hnew->
SetBins(newxbins,xbins,newybins,ybins);
1518 hnew->
SetBins(newxbins,xmin,xmax,newybins,ymin,ymax);
1526 Double_t binContent, binCount, binError, binSumw2;
1533 for(
Int_t xbin = 1; xbin <= newxbins; xbin++){
1535 for(
Int_t ybin = 1; ybin <= newybins; ybin++){
1540 for(
Int_t i=0; i < nxgroup; i++){
1541 if(oldxbin + i > nxbins)
break;
1542 for(
Int_t j=0; j < nygroup; j++){
1543 if(oldybin + j > nybins)
break;
1544 bin = oldxbin + i + (nxbins+2)*(oldybin+j);
1545 binContent += oldBins[bin];
1546 binCount += oldCount[bin];
1547 binError += oldErrors[bin];
1551 bin = xbin + (newxbins + 2)*ybin;
1552 cu2[bin] = binContent;
1553 er2[bin] = binError;
1554 en2[bin] = binCount;
1562 cu2[0] = oldBins[0];
1563 er2[0] = oldErrors[0];
1564 en2[0] = oldCount[0];
1572 for(
Int_t i=oldxbin; i <= nxbins+1; i++){
1573 for(
Int_t j=oldybin; j <= nybins+1; j++){
1575 bin = i + (nxbins+2)*j;
1576 binContent += oldBins[bin];
1577 binCount += oldCount[bin];
1578 binError += oldErrors[bin];
1582 bin = (newxbins+2)*(newybins+2)-1;
1583 cu2[bin] = binContent;
1584 er2[bin] = binError;
1585 en2[bin] = binCount;
1592 for(
Int_t i=oldxbin; i <= nxbins+1; i++){
1594 binContent += oldBins[bin];
1595 binCount += oldCount[bin];
1596 binError += oldErrors[bin];
1600 cu2[bin] = binContent;
1601 er2[bin] = binError;
1602 en2[bin] = binCount;
1609 for(
Int_t i=oldybin; i <= nybins+1; i++){
1610 bin = i*(nxbins + 2);
1611 binContent += oldBins[bin];
1612 binCount += oldCount[bin];
1613 binError += oldErrors[bin];
1616 bin = (newxbins + 2)*(newybins + 1);
1617 cu2[bin] = binContent;
1618 er2[bin] = binError;
1619 en2[bin] = binCount;
1622 Double_t binContentuf, binCountuf, binErroruf, binSumw2uf;
1623 Double_t binContentof, binCountof, binErrorof, binSumw2of;
1626 for(
Int_t xbin = 1; xbin <= newxbins; xbin++){
1635 for(
Int_t i = 0; i < nxgroup; i++){
1637 ufbin = (oldxbin2 + i);
1638 binContentuf += oldBins[ufbin];
1639 binCountuf += oldCount[ufbin];
1640 binErroruf += oldErrors[ufbin];
1642 for(
Int_t j = oldybin; j <= nybins+1; j++)
1644 ofbin = ufbin + j*(nxbins + 2);
1645 binContentof += oldBins[ofbin];
1646 binCountof += oldCount[ofbin];
1647 binErrorof += oldErrors[ofbin];
1653 ofbin = ufbin + (newybins + 1)*(newxbins + 2);
1654 cu2[ufbin] = binContentuf;
1655 er2[ufbin] = binErroruf;
1656 en2[ufbin] = binCountuf;
1658 cu2[ofbin] = binContentof;
1659 er2[ofbin] = binErrorof;
1660 en2[ofbin] = binCountof;
1663 oldxbin2 += nxgroup;
1667 for(
Int_t ybin = 1; ybin <= newybins; ybin++){
1676 for(
Int_t i = 0; i < nygroup; i++){
1678 ufbin = (oldybin2 + i)*(nxbins+2);
1679 binContentuf += oldBins[ufbin];
1680 binCountuf += oldCount[ufbin];
1681 binErroruf += oldErrors[ufbin];
1683 for(
Int_t j = oldxbin; j <= nxbins+1; j++)
1686 binContentof += oldBins[ofbin];
1687 binCountof += oldCount[ofbin];
1688 binErrorof += oldErrors[ofbin];
1693 ufbin = ybin * (newxbins + 2);
1694 ofbin = newxbins + 1 + ufbin;
1695 cu2[ufbin] = binContentuf;
1696 er2[ufbin] = binErroruf;
1697 en2[ufbin] = binCountuf;
1699 cu2[ofbin] = binContentof;
1700 er2[ofbin] = binErrorof;
1701 en2[ofbin] = binCountof;
1704 oldybin2 += nygroup;
1709 delete [] oldErrors;
1710 if (oldBinw2)
delete [] oldBinw2;
1716 if((newname) && (strlen(newname) > 0))
1728 return Rebin2D(ngroup,1,newname);
1736 return Rebin2D(1,ngroup,newname);
1749 out <<
" "<<std::endl;
1762 out <<
");" << std::endl;
1767 for (bin=0;bin<
fNcells;bin++) {
1770 out<<
" "<<
GetName()<<
"->SetBinEntries("<<bin<<
","<<bi<<
");"<<std::endl;
1774 for (bin=0;bin<
fNcells;bin++) {
1777 out<<
" "<<
GetName()<<
"->SetBinContent("<<bin<<
","<<bc<<
");"<<std::endl;
1782 for (bin=0;bin<
fNcells;bin++) {
1785 out<<
" "<<
GetName()<<
"->SetBinError("<<bin<<
","<<be<<
");"<<std::endl;
1853 if (buffersize <= 0) {
1857 if (buffersize < 100) buffersize = 100;
1892 void TProfile2D::Streamer(
TBuffer &R__b)
1902 TH2D::Streamer(R__b);
1909 R__b >> zmin;
fZmin = zmin;
1910 R__b >> zmax;
fZmax = zmax;
TArrayD()
Default TArrayD ctor.
virtual void SetBinsLength(Int_t n=-1)
Set total number of bins including under/overflow Reallocate bin contents array.
virtual Long64_t Merge(TCollection *list)
Merge all histograms in the collection in this histogram.
virtual Double_t GetBinEntries(Int_t bin) const
Return bin entries of a Profile2D histogram.
virtual const char * GetName() const
Returns name of object.
static void SetBinEntries(T *p, Int_t bin, Double_t w)
static void Scale(T *p, Double_t c1, Option_t *option)
virtual Double_t GetEffectiveEntries() const
Number of effective entries of the histogram.
virtual Int_t WriteClassBuffer(const TClass *cl, void *pointer)=0
Int_t GetFirst() const
Return first bin on the axis i.e.
virtual void Sumw2(Bool_t flag=kTRUE)
Create/Delete structure to store sum of squares of weights per bin.
static Double_t GetBinError(T *p, Int_t bin)
virtual Double_t GetBinError(Int_t bin) const
Return bin error of a Profile2D histogram.
virtual void SetDirectory(TDirectory *dir)
By default when an histogram is created, it is added to the list of histogram objects in the current ...
virtual Double_t GetBinLowEdge(Int_t bin) const
Return low edge of bin.
virtual void ExtendAxis(Double_t x, TAxis *axis)
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.
Option_t * GetErrorOption() const
Return option to compute profile2D errors.
TAxis fYaxis
Y axis descriptor.
static void SetErrorOption(T *p, Option_t *opt)
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.
const Double_t * GetArray() const
Bool_t GetStatOverflowsBehaviour() const
virtual void SetBins(Int_t nx, Double_t xmin, Double_t xmax)
Redefine x axis parameters.
static void LabelsInflate(T *p, Option_t *)
virtual Double_t GetBinContent(Int_t bin) const
Return content of bin number bin.
void ToUpper()
Change string to upper case.
Buffer base class used for serializing objects.
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.
static THLimitsFinder * GetLimitsFinder()
Return pointer to the current finder.
virtual Int_t CheckByteCount(UInt_t startpos, UInt_t bcnt, const TClass *clss)=0
virtual TProfile2D * RebinY(Int_t ngroup=2, const char *newname="")
Rebin only the Y axis.
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
Short_t Min(Short_t a, Short_t b)
void ToLower()
Change string to lower-case.
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.
TArrayD fSumw2
Array of sum of squares of weights.
virtual ~TProfile2D()
Default destructor for Profile2D histograms.
virtual Int_t FindGoodLimits(TH1 *h, Double_t xmin, Double_t xmax)
Compute the best axis limits for the X axis.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
virtual Bool_t Multiply(TF1 *h1, Double_t c1=1)
Performs the operation: this = this*c1*f1.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
Double_t fTsumwx2
Total Sum of weight*X*X.
virtual Bool_t CanExtendAllAxes() const
Returns true if all axes are extendable.
virtual Double_t GetBinUpEdge(Int_t bin) const
Return up edge of bin.
static void BuildArray(T *p)
static Bool_t fgApproximate
Int_t Fill(const Double_t *v)
virtual const char * ClassName() const
Returns name of class to which the object belongs.
virtual Bool_t Divide(TF1 *h1, Double_t c1=1)
Performs the operation: this = this/(c1*f1) .
THashList implements a hybrid collection class consisting of a hash table and a list to store TObject...
void BuildOptions(Double_t zmin, Double_t zmax, Option_t *option)
Set Profile2D histogram structure and options.
virtual Double_t GetBinContent(Int_t bin) const
Return bin content of a Profile2D histogram.
THashList * GetLabels() const
virtual void SetErrorOption(Option_t *option="")
Set option to compute profile2D errors.
virtual TArrayD * GetBinSumw2()
static double p2(double t, double a, double b, double c)
static void LabelsDeflate(T *p, Option_t *)
static void Approximate(Bool_t approx=kTRUE)
Static function, set the fgApproximate flag.
virtual Double_t GetBinCenter(Int_t bin) const
Return center of bin.
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.
static T * ExtendAxis(T *p, Double_t x, TAxis *axis)
virtual void LabelsDeflate(Option_t *axis="X")
Reduce the number of bins for this axis to the number of bins having a label.
virtual TArrayD * GetSumw2()
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...
virtual void SetBinsLength(Int_t n=-1)
Set total number of bins including under/overflow.
virtual void Scale(Double_t c1=1, Option_t *option="")
Multiply this profile2D by a constant c1.
Double_t fTsumwx
Total Sum of weight*X.
virtual void SetUniqueID(UInt_t uid)
Set the unique object id.
virtual void AddBinContent(Int_t bin)
Increment bin content by 1.
void Clear(Option_t *option="")
Remove all objects from the list.
virtual Bool_t Add(TF1 *h1, Double_t c1=1, Option_t *option="")
Performs the operation: this = this + c1*f1 .
Int_t GetLast() const
Return last bin on the axis i.e.
Class to manage histogram axis.
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 InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
Collection abstract base class.
virtual Int_t BufferEmpty(Int_t action=0)
Fill histogram with all entries in the buffer.
static Int_t fgBufferSize
!default buffer size for automatic histograms
virtual void Copy(TObject &hnew) const
Copy a Profile2D histogram to a new profile2D histogram.
virtual void GetStats(Double_t *stats) const
Fill the array stats from the contents of this profile.
virtual void Copy(TObject &hnew) const
Copy.
virtual void PutStats(Double_t *stats)
Replace current statistics with the values in array stats.
Double_t fEntries
Number of entries.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual TProfile2D * RebinX(Int_t ngroup=2, const char *newname="")
Rebin only the X axis.
virtual void LabelsOption(Option_t *option="h", Option_t *axis="X")
Set option(s) to draw axis with labels.
static double p1(double t, double a, double b)
virtual TObject * At(Int_t idx) const
Returns the object at position idx. Returns 0 if idx is out of range.
virtual void SetBuffer(Int_t buffersize, Option_t *option="")
Set the buffer size in units of 8 bytes (double).
virtual void LabelsInflate(Option_t *axis="X")
Double the number of bins for axis.
1-D histogram with a double per channel (see TH1 documentation)}
TProfile2D()
Default constructor for Profile2D histograms.
virtual Int_t FindBin(Double_t x)
Find bin number corresponding to abscissa x.
static Bool_t Add(T *p, const TH1 *h1, const TH1 *h2, Double_t c1, Double_t c2=1)
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=0)=0
Double_t fTsumw2
Total Sum of squares of weights.
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.
virtual Int_t BufferFill(Double_t, Double_t)
accumulate arguments in buffer.
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, eg TProfile, TProfile2D.
virtual Double_t GetBinEffectiveEntries(Int_t bin)
Return bin effective entries for a weighted filled Profile histogram.
Double_t fTsumw
Total Sum of weights.
static Double_t GetBinEffectiveEntries(T *p, Int_t bin)
Histogram is forced to be not weighted even when the histogram is filled with weighted different than...
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
virtual void SetBinEntries(Int_t bin, Double_t w)
Set the number of entries in bin.
Profile2D histograms are used to display the mean value of Z and its RMS for each cell in X...
Array of doubles (64 bits per element).
Mother of all ROOT objects.
virtual void SetBinEntries(Int_t bin, Double_t w)
Set the number of entries in bin.
you should not use this method at all Int_t Int_t z
virtual void Add(TObject *obj)
Int_t fBufferSize
fBuffer size
virtual void Sumw2(Bool_t flag=kTRUE)
Create structure to store sum of squares of weights.
TObject * Clone(const char *newname=0) const
Make a complete copy of the underlying object.
virtual void SetEntries(Double_t n)
TAxis fXaxis
X axis descriptor.
static void Sumw2(T *p, Bool_t flag)
virtual void SetBinContent(Int_t bin, Double_t content)
Set bin content.
virtual Int_t GetNbinsX() const
Double_t Sqrt(Double_t x)
virtual void Fatal(const char *method, const char *msgfmt,...) const
Issue fatal error message.
virtual void Sumw2(Bool_t flag=kTRUE)
Create/delete structure to store sum of squares of weights per bin.
virtual const char * GetName() const
Returns name of object.
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
virtual Int_t GetBin(Int_t binx, Int_t biny, Int_t binz=0) const
Return Global bin number corresponding to binx,y,z.
void SetBins(const Int_t *nbins, const Double_t *range)
Double_t * fBuffer
[fBufferSize] entry buffer
void Set(Int_t n)
Set size of this array to n doubles.
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.
Double_t fTsumwz
True when TProfile2D::Scale is called.
void Copy(TArrayD &array) const
static Long64_t Merge(T *p, TCollection *list)
const TArrayD * GetXbins() const
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
TAxis * GetXaxis()
Get the behaviour adopted by the object about the statoverflows. See EStatOverflows for more informat...
virtual Version_t ReadVersion(UInt_t *start=0, UInt_t *bcnt=0, const TClass *cl=0)=0
virtual const char * GetTitle() const
Returns title of object.
virtual Int_t GetNbinsY() const
Int_t fNcells
number of bins(1D), cells (2D) +U/Overflows
2-D histogram with a double per channel (see TH1 documentation)}