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)
222 Error(
"Add",
"Function not implemented for TProfile2D");
232 Error(
"Add",
"Attempt to add a non-existing profile");
236 Error(
"Add",
"Attempt to add a non-profile2D object");
251 Error(
"Add",
"Attempt to add a non-existing profile");
255 Error(
"Add",
"Attempt to add a non-profile2D object");
259 Error(
"Add",
"Attempt to add a non-profile2D object");
295 if (!nbentries)
return 0;
298 if (action == 0)
return 0;
299 nbentries = -nbentries;
310 for (
Int_t i=1;i<nbentries;i++) {
333 for (
Int_t i=0;i<nbentries;i++) {
334 Fill(buffer[4*i+2],buffer[4*i+3],buffer[4*i+4],buffer[4*i+1]);
362 nbentries = -nbentries;
393 for (
int bin=0;bin<
fNcells;bin++) {
405 Fatal(
"Copy",
"Cannot copy a TProfile2D in a %s",obj.IsA()->
GetName());
416 Error(
"Divide",
"Function not implemented for TProfile2D");
431 Error(
"Divide",
"Attempt to divide a non-existing profile2D");
435 Error(
"Divide",
"Attempt to divide a non-profile2D object");
446 Error(
"Divide",
"Attempt to divide profiles with different number of bins");
451 Error(
"Divide",
"Attempt to divide profiles with different number of bins");
464 for (binx =0;binx<=nx+1;binx++) {
465 for (biny =0;biny<=ny+1;biny++) {
497 Warning(
"Divide",
"Cannot preserve during the division of profiles the sum of bin weight square");
517 Error(
"Divide",
"Attempt to divide a non-existing profile2D");
521 Error(
"Divide",
"Attempt to divide a non-profile2D object");
526 Error(
"Divide",
"Attempt to divide a non-profile2D object");
537 Error(
"Divide",
"Attempt to divide profiles with different number of bins");
542 Error(
"Divide",
"Attempt to divide profiles with different number of bins");
546 Error(
"Divide",
"Coefficient of dividing profile cannot be zero");
564 for (binx =0;binx<=nx+1;binx++) {
565 for (biny =0;biny<=ny+1;biny++) {
569 if (b2) w =
c1*b1/(
c2*b2);
594 fSumw2.
fArray[bin] = ac1*ac2*(e1*b2*b2 + e2*b1*b1)/(b22*b22);
620 if (binx <0 || biny <0)
return -1;
651 Int_t bin, binx, biny;
661 if (binx < 0 || biny < 0)
return -1;
702 if (binx <0 || biny <0)
return -1;
747 if (binx < 0 || biny < 0)
792 if (binx <0 || biny <0)
return -1;
832 if (bin < 0 || bin >=
fNcells)
return 0;
845 if (bin < 0 || bin >=
fNcells)
return 0;
925 Int_t bin, binx, biny;
928 for (bin=0;bin<9;bin++) stats[bin] = 0;
937 if (firstBinX == 1) firstBinX = 0;
941 if (firstBinY == 1) firstBinY = 0;
945 for (biny = firstBinY; biny <= lastBinY; biny++) {
947 for (binx = firstBinX; binx <= lastBinX; binx++) {
1011 if (ax[0] ==
'y' || ax[0] ==
'Y') axis =
GetYaxis();
1014 Warning(
"LabelsOption",
"Cannot sort. No labels");
1047 if (sort < 0)
return;
1055 Int_t lastLabelBin = -1;
1056 for (
Int_t i = 0; i <
n; ++i) {
1058 if (bin < firstLabelBin)
1059 firstLabelBin = bin;
1060 if (bin > lastLabelBin)
1063 if (firstLabelBin != 1 || lastLabelBin - firstLabelBin + 1 !=
n) {
1064 Error(
"LabelsOption",
1065 "%s of TProfile2D %s contains bins without labels. Sorting will not work correctly - return",
1072 "axis %s of TProfile2D %s has extra following bins without labels. Sorting will work only for first label bins",
1076 std::vector<Int_t>
a(
n);
1077 Int_t i, j, k, ibin, bin;
1078 std::vector<Double_t> sumw(
fNcells);
1079 std::vector<Double_t> errors(
fNcells);
1080 std::vector<Double_t> ent(
fNcells);
1081 std::vector<Double_t> binsw2;
1095 std::vector<TObject *> labold(
n);
1096 for (i = 0; i <
n; i++)
1097 labold[i] =
nullptr;
1098 TIter nextold(labels);
1100 while ((obj = nextold())) {
1102 if (bin>=1 && bin<=
n)
1103 labold[bin-1] = obj;
1109 std::vector<Double_t> pcont;
1110 std::vector<Double_t> econt;
1116 for (i = 0; i < nx; i++) {
1117 for (j = 0; j < ny; j++) {
1137 for (k = 0; k <
n; ++k) {
1140 pcont[k] /= econt[k];
1150 std::vector<std::string> vecLabels(
n);
1151 for (i = 0; i <
n; i++) {
1152 vecLabels[i] = labold[i]->GetName();
1160 for (i = 0; i <
n; i++) {
1166 std::cout <<
"bin " << i + 1 <<
" setting new labels for axis " << labold.at(
a[i])->GetName() <<
" from "
1167 <<
a[i] << std::endl;
1170 for (i = 0; i < nx; i++) {
1171 for (j = 0; j < ny; j++) {
1175 ibin =
GetBin(
a[i - 1] + 1, j);
1177 if (j == 0)
continue;
1180 fArray[bin] = sumw[ibin];
1189 bool labelsAreSorted =
kFALSE;
1190 for (i = 0; i <
n; ++i) {
1192 labelsAreSorted =
kTRUE;
1196 if (labelsAreSorted) {
1236 Error(
"Multiply",
"Function not implemented for TProfile2D");
1247 Error(
"Multiply",
"Multiplication of profile2D histograms not implemented");
1258 Error(
"Multiply",
"Multiplication of profile2D histograms not implemented");
1295 if (pname.
IsNull() || pname ==
"_pxy")
1304 if (xbins->fN == 0 && ybins->
fN == 0) {
1306 }
else if (xbins->fN == 0) {
1308 }
else if (ybins->
fN == 0) {
1324 Int_t bin,binx, biny;
1326 for (binx =0;binx<=nx+1;binx++) {
1327 for (biny =0;biny<=ny+1;biny++) {
1399 bool originalRange = opt.
Contains(
"o");
1401 TString expectedName = ( onX ?
"_pfx" :
"_pfy" );
1414 if (bins->
fN == 0) {
1438 TString opt1 = (originalRange) ?
"o" :
"";
1439 TH1D * h1W = (onX) ? h2dW->
ProjectionX(
"h1temp-W",firstbin,lastbin,opt1) : h2dW->
ProjectionY(
"h1temp-W",firstbin,lastbin,opt1);
1440 TH1D * h1N = (onX) ? h2dN->
ProjectionX(
"h1temp-N",firstbin,lastbin,opt1) : h2dN->
ProjectionY(
"h1temp-N",firstbin,lastbin,opt1);
1448 for (
int i = 0; i < p1->
fN ; ++i) {
1551 if((nxgroup != 1) || (nygroup != 1)){
1558 if ((nxgroup <= 0) || (nxgroup > nxbins)) {
1559 Error(
"Rebin",
"Illegal value of nxgroup=%d",nxgroup);
1562 if ((nygroup <= 0) || (nygroup > nybins)) {
1563 Error(
"Rebin",
"Illegal value of nygroup=%d",nygroup);
1567 Int_t newxbins = nxbins/nxgroup;
1568 Int_t newybins = nybins/nygroup;
1571 if(newxbins*nxgroup != nxbins) {
1572 Warning(
"Rebin",
"nxgroup=%d should be an exact divider of nxbins=%d",nxgroup,nxbins);
1574 if(newybins*nygroup != nybins) {
1575 Warning(
"Rebin",
"nygroup=%d should be an exact divider of nybins=%d",nygroup,nybins);
1587 for(
Int_t ibin=0; ibin < (nxbins+2)*(nybins+2); ibin++){
1588 oldBins[ibin] = cu1[ibin];
1589 oldCount[ibin] = en1[ibin];
1590 oldErrors[ibin] = er1[ibin];
1591 if (ew1 &&
fBinSumw2.
fN) oldBinw2[ibin] = ew1[ibin];
1596 if(newname && strlen(newname) > 0) {
1602 if(newxbins*nxgroup != nxbins) {
1606 if(newybins*nygroup != nybins) {
1615 for(
Int_t i=0; i < newxbins+1; i++)
1617 for(
Int_t j=0; j < newybins+1; j++)
1619 hnew->
SetBins(newxbins,xbins,newybins,ybins);
1633 Double_t binContent, binCount, binError, binSumw2;
1640 for(
Int_t xbin = 1; xbin <= newxbins; xbin++){
1642 for(
Int_t ybin = 1; ybin <= newybins; ybin++){
1647 for(
Int_t i=0; i < nxgroup; i++){
1648 if(oldxbin + i > nxbins)
break;
1649 for(
Int_t j=0; j < nygroup; j++){
1650 if(oldybin + j > nybins)
break;
1651 bin = oldxbin + i + (nxbins+2)*(oldybin+j);
1652 binContent += oldBins[bin];
1653 binCount += oldCount[bin];
1654 binError += oldErrors[bin];
1658 bin = xbin + (newxbins + 2)*ybin;
1659 cu2[bin] = binContent;
1660 er2[bin] = binError;
1661 en2[bin] = binCount;
1669 cu2[0] = oldBins[0];
1670 er2[0] = oldErrors[0];
1671 en2[0] = oldCount[0];
1679 for(
Int_t i=oldxbin; i <= nxbins+1; i++){
1680 for(
Int_t j=oldybin; j <= nybins+1; j++){
1682 bin = i + (nxbins+2)*j;
1683 binContent += oldBins[bin];
1684 binCount += oldCount[bin];
1685 binError += oldErrors[bin];
1689 bin = (newxbins+2)*(newybins+2)-1;
1690 cu2[bin] = binContent;
1691 er2[bin] = binError;
1692 en2[bin] = binCount;
1699 for(
Int_t i=oldxbin; i <= nxbins+1; i++){
1701 binContent += oldBins[bin];
1702 binCount += oldCount[bin];
1703 binError += oldErrors[bin];
1707 cu2[bin] = binContent;
1708 er2[bin] = binError;
1709 en2[bin] = binCount;
1716 for(
Int_t i=oldybin; i <= nybins+1; i++){
1717 bin = i*(nxbins + 2);
1718 binContent += oldBins[bin];
1719 binCount += oldCount[bin];
1720 binError += oldErrors[bin];
1723 bin = (newxbins + 2)*(newybins + 1);
1724 cu2[bin] = binContent;
1725 er2[bin] = binError;
1726 en2[bin] = binCount;
1729 Double_t binContentuf, binCountuf, binErroruf, binSumw2uf;
1730 Double_t binContentof, binCountof, binErrorof, binSumw2of;
1733 for(
Int_t xbin = 1; xbin <= newxbins; xbin++){
1742 for(
Int_t i = 0; i < nxgroup; i++){
1744 ufbin = (oldxbin2 + i);
1745 binContentuf += oldBins[ufbin];
1746 binCountuf += oldCount[ufbin];
1747 binErroruf += oldErrors[ufbin];
1749 for(
Int_t j = oldybin; j <= nybins+1; j++)
1751 ofbin = ufbin + j*(nxbins + 2);
1752 binContentof += oldBins[ofbin];
1753 binCountof += oldCount[ofbin];
1754 binErrorof += oldErrors[ofbin];
1760 ofbin = ufbin + (newybins + 1)*(newxbins + 2);
1761 cu2[ufbin] = binContentuf;
1762 er2[ufbin] = binErroruf;
1763 en2[ufbin] = binCountuf;
1765 cu2[ofbin] = binContentof;
1766 er2[ofbin] = binErrorof;
1767 en2[ofbin] = binCountof;
1770 oldxbin2 += nxgroup;
1774 for(
Int_t ybin = 1; ybin <= newybins; ybin++){
1783 for(
Int_t i = 0; i < nygroup; i++){
1785 ufbin = (oldybin2 + i)*(nxbins+2);
1786 binContentuf += oldBins[ufbin];
1787 binCountuf += oldCount[ufbin];
1788 binErroruf += oldErrors[ufbin];
1790 for(
Int_t j = oldxbin; j <= nxbins+1; j++)
1793 binContentof += oldBins[ofbin];
1794 binCountof += oldCount[ofbin];
1795 binErrorof += oldErrors[ofbin];
1800 ufbin = ybin * (newxbins + 2);
1801 ofbin = newxbins + 1 + ufbin;
1802 cu2[ufbin] = binContentuf;
1803 er2[ufbin] = binErroruf;
1804 en2[ufbin] = binCountuf;
1806 cu2[ofbin] = binContentof;
1807 er2[ofbin] = binErrorof;
1808 en2[ofbin] = binCountof;
1811 oldybin2 += nygroup;
1816 delete [] oldErrors;
1817 if (oldBinw2)
delete [] oldBinw2;
1823 if((newname) && (strlen(newname) > 0))
1835 return Rebin2D(ngroup,1,newname);
1843 return Rebin2D(1,ngroup,newname);
1856 out <<
" "<<std::endl;
1869 out <<
");" << std::endl;
1874 for (bin=0;bin<
fNcells;bin++) {
1877 out<<
" "<<
GetName()<<
"->SetBinEntries("<<bin<<
","<<bi<<
");"<<std::endl;
1881 for (bin=0;bin<
fNcells;bin++) {
1884 out<<
" "<<
GetName()<<
"->SetBinContent("<<bin<<
","<<bc<<
");"<<std::endl;
1889 for (bin=0;bin<
fNcells;bin++) {
1892 out<<
" "<<
GetName()<<
"->SetBinError("<<bin<<
","<<be<<
");"<<std::endl;
1960 if (buffersize <= 0) {
1964 if (buffersize < 100) buffersize = 100;
1999void TProfile2D::Streamer(
TBuffer &R__b)
2009 TH2D::Streamer(R__b);
2016 R__b >> zmin;
fZmin = zmin;
2017 R__b >> zmax;
fZmax = zmax;
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 Copy(TArrayD &array) const
void Set(Int_t n)
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
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 Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=0)=0
virtual Version_t ReadVersion(UInt_t *start=0, UInt_t *bcnt=0, const TClass *cl=0)=0
virtual Int_t CheckByteCount(UInt_t startpos, UInt_t bcnt, const TClass *clss)=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 an 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 different than...
virtual Bool_t CanExtendAllAxes() const
Returns true if all axes are extendable.
TAxis * GetXaxis()
Get the behaviour adopted by the object about the statoverflows. See EStatOverflows for more informat...
TObject * Clone(const char *newname=0) const
Make a complete copy of the underlying object.
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...
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
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)}
virtual void SetBinsLength(Int_t n=-1)
Set total number of bins including under/overflow Reallocate bin contents array.
virtual void AddBinContent(Int_t bin)
Increment bin content by 1.
virtual void Copy(TObject &hnew) const
Copy.
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.
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.
virtual Int_t GetBin(Int_t binx, Int_t biny, Int_t binz=0) const
Return Global bin number corresponding to binx,y,z.
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="")
Remove all objects from the list.
virtual void Add(TObject *obj)
virtual TObject * At(Int_t idx) const
Returns the object at position idx. Returns 0 if idx is out of range.
virtual const char * GetTitle() const
Returns title of object.
virtual const char * GetName() const
Returns name of object.
Mother of all ROOT objects.
virtual const char * GetName() const
Returns name of object.
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.
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
True when TProfile2D::Scale is called.
virtual void GetStats(Double_t *stats) const
Fill the array stats from the contents of this profile.
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.
virtual Bool_t Divide(TF1 *h1, Double_t c1=1)
Performs the operation: this = this/(c1*f1) .
static void Approximate(Bool_t approx=kTRUE)
Static function, set the fgApproximate flag.
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.
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.
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.
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.
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 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
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.
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)
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 void SetBinsLength(Int_t n=-1)
Set total number of bins including under/overflow.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
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.
virtual void Sumw2(Bool_t flag=kTRUE)
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)
void Sort(Index n, const Element *a, Index *index, Bool_t down=kTRUE)