34 const TH2Poly *hpoly = static_cast<const TH2Poly *>(h);
36 if (type == TBinIterator::kAllBins) {
39 fXmax = hpoly->GetNumberOfBins();
47 fXmax = hpoly->GetNumberOfBins();
59 fNx =
h->GetNbinsX() + 2;
60 fNy =
h->GetNbinsY() + 2;
61 fNz =
h->GetNbinsZ() + 2;
62 fDim =
h->GetDimension();
65 fXmin =
h->GetXaxis()->GetFirst();
66 fXmax =
h->GetXaxis()->GetLast();
67 fYmin =
h->GetYaxis()->GetFirst();
68 fYmax =
h->GetYaxis()->GetLast();
69 fZmin =
h->GetZaxis()->GetFirst();
70 fZmax =
h->GetZaxis()->GetLast();
73 fXmax =
h->GetNbinsX();
75 fYmax =
h->GetNbinsY();
77 fZmax =
h->GetNbinsZ();
80 fXmax =
h->GetNbinsX() + 1;
82 fYmax =
h->GetNbinsY() + 1;
84 fZmax =
h->GetNbinsZ() + 1;
static TBinIterator End()
int fNx
Total x size (nbins+2).
ERangeType
enum defining option range type:
@ kUnOfBins
collection of all underflow/overflow bins
@ kHistRange
use range provided by histogram
@ kAxisBins
use allbins within axis limits (no underflow/overflows)
@ kAllBins
use all bins including underflows/overflows
int fDim
Histogram dimension.
TH1 is the base class of all histogram classes in ROOT.
THistRange(const TH1 *h1, TBinIterator::ERangeType type=TBinIterator::kHistRange)
TBinIterator::ERangeType RangeType