294      Fill(buffer[3*i+2],buffer[3*i+3],buffer[3*i+1]);
 
 
  359   Error(
"Fill", 
"Invalid signature - do nothing");
 
 
  683   if (!
f1) { 
Error(
"FillRandom", 
"Function: %s is not a TF2, is a %s",
fobj->GetName(),
fobj->IsA()->GetName()); 
return; }
 
  717   if (integral[nbins] == 0 ) {
 
  719      Error(
"FillRandom", 
"Integral = zero"); 
return;
 
  721   for (bin=1;bin<=nbins;bin++)  integral[bin] /= integral[nbins];
 
  724   for (loop=0;loop<
ntimes;loop++) {
 
 
  756   if (!
h) { 
Error(
"FillRandom", 
"Null histogram"); 
return; }
 
  758      Error(
"FillRandom", 
"Histograms with different dimensions"); 
return;
 
  761   if (
h->ComputeIntegral() == 0) 
return;
 
  766   for (loop=0;loop<
ntimes;loop++) {
 
  767      h2->GetRandom2(
x,
y,
rng);
 
 
  827   if (
npar <= 0) 
return;
 
  839   char *
name   = 
new char[2000];
 
  840   char *title  = 
new char[2000];
 
  849   for (ipar=0;ipar<
npar;ipar++) {
 
  860         (*arr)[ipar] = 
hlist[ipar];
 
  887      if (
hp == 
nullptr) 
continue;
 
  892               Info(
"DoFitSlices",
"Slice %d skipped, the number of entries is zero or smaller than the given cut value, n=%f",bin,
nentries);
 
  902         for (ipar=0;ipar<
npar;ipar++) {
 
  910            Info(
"DoFitSlices",
"Fitted slice %d skipped, the number of fitted points is too small, n=%d",bin,
npfits);
 
 
 1084      Error(
"GetBinWithContent2",
"function is only valid for 2-D histograms");
 
 
 1109      Error(
"GetCorrelationFactor",
"Wrong parameters");
 
 
 1127      Error(
"GetCovariance",
"Wrong parameters");
 
 1140   if (
sumw == 0) 
return 0;
 
 
 1174   if (integral == 0 ) { 
x = 0; 
y = 0; 
return;}
 
 
 1316   Error(
"Interpolate",
"This function must be called with 2 arguments for a TH2");
 
 
 1335      Error(
"Interpolate",
"Cannot interpolate outside histogram domain.");
 
 
 1403   Error(
"Interpolate",
"This function must be called with 2 arguments for a TH2");
 
 
 
 1438   if (h2 == 
nullptr) 
return 0;
 
 1450      Error(
"KolmogorovTest",
"Histograms must be 2-D\n");
 
 1456      Error(
"KolmogorovTest",
"Number of channels in X is different, %d and %d\n",
ncx1,
ncx2);
 
 1460      Error(
"KolmogorovTest",
"Number of channels in Y is different, %d and %d\n",
ncy1,
ncy2);
 
 1471      Error(
"KolmogorovTest",
"histograms with different binning along X");
 
 1477      Error(
"KolmogorovTest",
"histograms with different binning along Y");
 
 1495         sum2 += h2->GetBinContent(i,
j);
 
 1506      Error(
"KolmogorovTest",
"Integral is zero for h1=%s\n",
h1->
GetName());
 
 1510      Error(
"KolmogorovTest",
"Integral is zero for h2=%s\n",h2->GetName());
 
 1528      Error(
"KolmogorovTest",
"Errors are zero for both histograms\n");
 
 1540         rsum2 += 
s2*h2->GetBinContent(i,
j);
 
 1551         rsum2 += 
s2*h2->GetBinContent(i,
j);
 
 1584      printf(
" Kolmo Prob  h2 = %s, sum2=%g\n",h2->GetName(),
sum2);
 
 1587         printf(
" Kolmo Probabil = %f for shape alone, =%f for normalisation alone\n",
prb1,
prb2);
 
 1591   if (
TMath::Abs(
rsum2-1) > 0.002) 
Warning(
"KolmogorovTest",
"Numerical problems with h2=%s\n",h2->GetName());
 
 
 1626   if (xbins != 
nullptr) {
 
 1627      Error(
"Rebin",
"Rebinning a 2-d histogram into variable bins is not supported (it is possible only for 1-d histograms). Return a nullptr");
 
 1630   Info(
"Rebin",
"Rebinning only the x-axis. Use Rebin2D for rebinning both axes");
 
 
 1671      Error(
"Rebin2D", 
"Histogram must be TH2. This histogram has %d dimensions.", 
GetDimension());
 
 1675      Error(
"Rebin2D", 
"Illegal value of nxgroup=%d",
nxgroup);
 
 1679      Error(
"Rebin2D", 
"Illegal value of nygroup=%d",
nygroup);
 
 
 1893         Error(
"DoProfile",
"Histogram with name %s must be a TProfile and is a %s",
name,
h1obj->ClassName());
 
 1902      if (xbins->fN == 0) {
 
 1918      ((
TH2 *)
this)->GetPainter();
 
 1924      if (bins->
fN == 0) {
 
 
 2197         Error(
"DoProjection",
"Histogram with name %s must be a TH1D and is a %s",
name,
h1obj->ClassName());
 
 2206      if (xbins->fN == 0) {
 
 2222      ((
TH2 *)
this)->GetPainter();
 
 2228      if (bins->
fN == 0) {
 
 2310      double eps = 1.E-12;
 
 
 2500      const char * 
qtype = (
onX) ? 
"qx" : 
"qy";
 
 2510         Error(
"DoQuantiles",
"Histogram with name %s must be a TH1D and is a %s",
qname.Data(),
h1obj->ClassName());
 
 2533  TH1D * slice = 
nullptr;
 
 2539    if (slice->
GetSum() == 0) 
continue;
 
 2553  if (slice) 
delete slice;
 
 
 2581   if (bin < 0) 
return;
 
 
 2694                           { 0, 0, 1, 0, 0 } };
 
 2699                           { 0, 1, 2, 1, 0 } };
 
 2705      Warning(
"Smooth",
"Currently only ntimes=1 is supported");
 
 2759               if ( (
xb >= 1) && (
xb <= 
nx) && (
yb >= 1) && (
yb <= 
ny) ) {
 
 2772         if ( 
norm != 0.0 ) {
 
 
 2793   if (
R__b.IsReading()) {
 
 
 2911   h2c.TH2C::Copy(*
this);
 
 
 2975   if (
R__b.IsReading()) {
 
 
 3011      h2c.TH2C::Copy(*
this);
 
 
 3023   hnew.SetDirectory(
nullptr);
 
 
 3035   hnew.SetDirectory(
nullptr);
 
 
 3047   hnew.SetDirectory(
nullptr);
 
 
 3059   hnew.SetDirectory(
nullptr);
 
 
 3071   hnew.SetDirectory(
nullptr);
 
 
 3175   h2s.TH2S::Copy(*
this);
 
 
 3239   if (
R__b.IsReading()) {
 
 
 3275      h2s.TH2S::Copy(*
this);
 
 
 3287   hnew.SetDirectory(
nullptr);
 
 
 3299   hnew.SetDirectory(
nullptr);
 
 
 3311   hnew.SetDirectory(
nullptr);
 
 
 3323   hnew.SetDirectory(
nullptr);
 
 
 3335   hnew.SetDirectory(
nullptr);
 
 
 3439   h2i.TH2I::Copy(*
this);
 
 
 3504      h2i.TH2I::Copy(*
this);
 
 
 3516   hnew.SetDirectory(
nullptr);
 
 
 3528   hnew.SetDirectory(
nullptr);
 
 
 3540   hnew.SetDirectory(
nullptr);
 
 
 3552   hnew.SetDirectory(
nullptr);
 
 
 3564   hnew.SetDirectory(
nullptr);
 
 
 3668   h2l.TH2L::Copy(*
this);
 
 
 3733      h2l.TH2L::Copy(*
this);
 
 
 3745   hnew.SetDirectory(
nullptr);
 
 
 3757   hnew.SetDirectory(
nullptr);
 
 
 3769   hnew.SetDirectory(
nullptr);
 
 
 3781   hnew.SetDirectory(
nullptr);
 
 
 3793   hnew.SetDirectory(
nullptr);
 
 
 3896:
TH2(
"TMatrixFBase",
"",
m.GetNcols(),
m.GetColLwb(),1+
m.GetColUpb(),
m.GetNrows(),
m.GetRowLwb(),1+
m.GetRowUpb())
 
 
 3917   h2f.TH2F::Copy(*
this);
 
 
 3957   if (
R__b.IsReading()) {
 
 
 3993      h2f.TH2F::Copy(*
this);
 
 
 4005   hnew.SetDirectory(
nullptr);
 
 
 4017   hnew.SetDirectory(
nullptr);
 
 
 4029   hnew.SetDirectory(
nullptr);
 
 
 4041   hnew.SetDirectory(
nullptr);
 
 
 4053   hnew.SetDirectory(
nullptr);
 
 
 4065   hnew.SetDirectory(
nullptr);
 
 
 4168:
TH2(
"TMatrixDBase",
"",
m.GetNcols(),
m.GetColLwb(),1+
m.GetColUpb(),
m.GetNrows(),
m.GetRowLwb(),1+
m.GetRowUpb())
 
 
 4231   if (
R__b.IsReading()) {
 
 
 4281   hnew.SetDirectory(
nullptr);
 
 
 4293   hnew.SetDirectory(
nullptr);
 
 
 4305   hnew.SetDirectory(
nullptr);
 
 
 4317   hnew.SetDirectory(
nullptr);
 
 
 4329   hnew.SetDirectory(
nullptr);
 
 
 
 
 
 
 
 
 
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
Option_t Option_t TPoint TPoint const char x2
 
Option_t Option_t TPoint TPoint const char x1
 
Option_t Option_t TPoint TPoint const char y2
 
Option_t Option_t TPoint TPoint const char y1
 
TH2C operator+(TH2C const &h1, TH2C const &h2)
Operator +.
 
TH2C operator*(Float_t c1, TH2C const &h1)
Operator *.
 
TH2C operator/(TH2C const &h1, TH2C const &h2)
Operator /.
 
TH2C operator-(TH2C const &h1, TH2C const &h2)
Operator -.
 
R__EXTERN TRandom * gRandom
 
Array of chars or bytes (8 bits per element).
 
void Streamer(TBuffer &) override
Stream a TArrayC object.
 
void Set(Int_t n) override
Set size of this array to n chars.
 
Array of doubles (64 bits per element).
 
void Streamer(TBuffer &) override
Stream a TArrayD object.
 
void Set(Int_t n) override
Set size of this array to n doubles.
 
Array of floats (32 bits per element).
 
void Set(Int_t n) override
Set size of this array to n floats.
 
void Streamer(TBuffer &) override
Stream a TArrayF object.
 
Array of integers (32 bits per element).
 
void Set(Int_t n) override
Set size of this array to n ints.
 
Array of long64s (64 bits per element).
 
void Set(Int_t n) override
Set size of this array to n long64s.
 
Array of shorts (16 bits per element).
 
void Set(Int_t n) override
Set size of this array to n shorts.
 
void Streamer(TBuffer &) override
Stream a TArrayS object.
 
virtual Color_t GetTitleColor() const
 
virtual Color_t GetLabelColor() const
 
virtual Int_t GetNdivisions() const
 
virtual Color_t GetAxisColor() const
 
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title.
 
virtual Style_t GetTitleFont() const
 
virtual Float_t GetLabelOffset() const
 
virtual void SetAxisColor(Color_t color=1, Float_t alpha=1.)
Set color of the line axis and tick marks.
 
virtual void SetLabelSize(Float_t size=0.04)
Set size of axis labels.
 
virtual Style_t GetLabelFont() const
 
virtual void SetTitleFont(Style_t font=62)
Set the title font.
 
virtual void SetLabelOffset(Float_t offset=0.005)
Set distance between the axis and the labels.
 
virtual void SetLabelFont(Style_t font=62)
Set labels' font.
 
virtual void SetTitleSize(Float_t size=0.04)
Set size of axis title.
 
virtual void SetTitleColor(Color_t color=1)
Set color of axis title.
 
virtual Float_t GetTitleSize() const
 
virtual Float_t GetLabelSize() const
 
virtual Float_t GetTickLength() const
 
virtual Float_t GetTitleOffset() const
 
virtual void SetTickLength(Float_t length=0.03)
Set tick mark length.
 
virtual void SetNdivisions(Int_t n=510, Bool_t optim=kTRUE)
Set the number of divisions for this axis.
 
virtual void SetLabelColor(Color_t color=1, Float_t alpha=1.)
Set color of labels.
 
virtual Color_t GetFillColor() const
Return the fill area color.
 
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
 
virtual Color_t GetLineColor() const
Return the line color.
 
virtual void SetLineColor(Color_t lcolor)
Set the line color.
 
virtual Style_t GetMarkerStyle() const
Return the marker style.
 
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
 
virtual Color_t GetMarkerColor() const
Return the marker color.
 
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
 
Class to manage histogram axis.
 
virtual void SetBinLabel(Int_t bin, const char *label)
Set label for bin.
 
Bool_t IsAlphanumeric() const
 
virtual Double_t GetBinCenter(Int_t bin) const
Return center of bin.
 
const TArrayD * GetXbins() const
 
void SetCanExtend(Bool_t canExtend)
 
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.
 
virtual void Set(Int_t nbins, Double_t xmin, Double_t xmax)
Initialize axis with fix bins.
 
virtual Int_t FindFixBin(Double_t x) const
Find bin number corresponding to abscissa x
 
Int_t GetLast() const
Return last bin on the axis i.e.
 
virtual void ImportAttributes(const TAxis *axis)
Copy axis attributes to this.
 
virtual Double_t GetBinWidth(Int_t bin) const
Return bin width.
 
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.
 
Buffer base class used for serializing objects.
 
virtual TH1 * GetHistogram() const
Return a pointer to the histogram used to visualise the function Note that this histogram is managed ...
 
virtual Double_t GetParError(Int_t ipar) const
Return value of parameter number ipar.
 
Double_t GetChisquare() const
Return the Chisquare after fitting. See ROOT::Fit::FitResult::Chi2()
 
virtual void SetRange(Double_t xmin, Double_t xmax)
Initialize the upper and lower bounds to draw the function.
 
virtual Int_t GetNpar() const
 
virtual Double_t Integral(Double_t a, Double_t b, Double_t epsrel=1.e-12)
IntegralOneDim or analytical integral.
 
virtual Int_t GetNumberFitPoints() const
 
virtual Double_t * GetParameters() const
 
virtual void GetRange(Double_t *xmin, Double_t *xmax) const
Return range of a generic N-D function.
 
virtual const char * GetParName(Int_t ipar) const
 
virtual void SetParameters(const Double_t *params)
 
virtual Double_t GetParameter(Int_t ipar) const
 
A 2-Dim function with parameters.
 
1-D histogram with a double per channel (see TH1 documentation)
 
void Reset(Option_t *option="") override
Reset.
 
TH1 is the base class of all histogram classes in ROOT.
 
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.
 
void Copy(TObject &hnew) const override
Copy this histogram structure to newth1.
 
Double_t fTsumw
Total Sum of weights.
 
Double_t fTsumw2
Total Sum of squares of weights.
 
virtual Double_t DoIntegral(Int_t ix1, Int_t ix2, Int_t iy1, Int_t iy2, Int_t iz1, Int_t iz2, Double_t &err, Option_t *opt, Bool_t doerr=kFALSE) const
Internal function compute integral and optionally the error between the limits specified by the bin n...
 
Double_t fTsumwx2
Total Sum of weight*X*X.
 
virtual Double_t GetStdDev(Int_t axis=1) const
Returns the Standard Deviation (Sigma).
 
virtual Int_t GetNbinsY() const
 
virtual Double_t GetBinError(Int_t bin) const
Return value of error associated to bin number bin.
 
virtual Double_t GetMean(Int_t axis=1) const
For axis = 1,2 or 3 returns the mean value of the histogram along X,Y or Z axis.
 
virtual Int_t GetDimension() const
 
void Streamer(TBuffer &) override
Stream a class object.
 
@ 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 void Reset(Option_t *option="")
Reset this histogram: contents, errors, etc.
 
virtual Int_t GetNcells() const
 
virtual void PutStats(Double_t *stats)
Replace current statistics with the values in array stats.
 
TVirtualHistPainter * GetPainter(Option_t *option="")
Return pointer to painter.
 
virtual Int_t GetBin(Int_t binx, Int_t biny=0, Int_t binz=0) const
Return Global bin number corresponding to binx,y,z.
 
virtual Int_t GetNbinsX() const
 
Int_t fBufferSize
fBuffer size
 
Int_t fDimension
! Histogram dimension (1, 2 or 3 dim)
 
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 Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
 
void Draw(Option_t *option="") override
Draw this histogram with options.
 
virtual Double_t GetBinErrorSqUnchecked(Int_t bin) const
 
virtual void SetBuffer(Int_t bufsize, Option_t *option="")
Set the maximum number of entries to be kept in the buffer.
 
UInt_t GetAxisLabelStatus() const
Internal function used in TH1::Fill to see which axis is full alphanumeric, i.e.
 
Double_t * fIntegral
! Integral of bins used by GetRandom
 
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...
 
virtual Double_t GetBinLowEdge(Int_t bin) const
Return bin lower edge for 1D histogram.
 
virtual Double_t RetrieveBinContent(Int_t bin) const =0
Raw retrieval of bin content on internal data structure see convention for numbering bins in TH1::Get...
 
void Paint(Option_t *option="") override
Control routine to paint any kind of histograms.
 
virtual void ResetStats()
Reset the statistics including the number of entries and replace with values calculated from bin cont...
 
@ 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.
 
TAxis fXaxis
X axis descriptor.
 
virtual void ExtendAxis(Double_t x, TAxis *axis)
Histogram is resized along axis such that x is in the axis range.
 
TArrayD fSumw2
Array of sum of squares of weights.
 
virtual Int_t GetSumw2N() const
 
Bool_t GetStatOverflowsBehaviour() const
 
virtual Int_t GetQuantiles(Int_t n, Double_t *xp, const Double_t *p=nullptr)
Compute Quantiles for this histogram.
 
TObject * Clone(const char *newname="") const override
Make a complete copy of the underlying object.
 
TAxis fYaxis
Y axis descriptor.
 
TVirtualHistPainter * fPainter
! Pointer to histogram painter
 
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)
 
static Bool_t fgDefaultSumw2
! Flag to call TH1::Sumw2 automatically at histogram creation time
 
virtual void UpdateBinContent(Int_t bin, Double_t content)=0
Raw update of bin content on internal data structure see convention for numbering bins in TH1::GetBin...
 
Double_t fTsumwx
Total Sum of weight*X.
 
virtual Double_t ComputeIntegral(Bool_t onlyPositive=false)
Compute integral (normalized cumulative sum of bins) w/o under/overflows The result is stored in fInt...
 
2-D histogram with a byte per channel (see TH1 documentation)
 
void Reset(Option_t *option="") override
Reset this histogram: contents, errors, etc.
 
TClass * IsA() const override
 
void Streamer(TBuffer &) override
Stream an object of class TH2C.
 
void AddBinContent(Int_t bin) override
Increment bin content by 1.
 
TH2C & operator=(const TH2C &h1)
Operator =.
 
~TH2C() override
Destructor.
 
void Copy(TObject &hnew) const override
Copy.
 
void SetBinsLength(Int_t n=-1) override
Set total number of bins including under/overflow Reallocate bin contents array.
 
2-D histogram with a double per channel (see TH1 documentation)
 
void Streamer(TBuffer &) override
Stream an object of class TH2D.
 
TClass * IsA() const override
 
void SetBinsLength(Int_t n=-1) override
Set total number of bins including under/overflow Reallocate bin contents array.
 
~TH2D() override
Destructor.
 
void Copy(TObject &hnew) const override
Copy.
 
TH2D & operator=(const TH2D &h1)
Operator =.
 
2-D histogram with a float per channel (see TH1 documentation)
 
TClass * IsA() const override
 
TH2F & operator=(const TH2F &h1)
Operator =.
 
~TH2F() override
Destructor.
 
void Copy(TObject &hnew) const override
Copy.
 
void Streamer(TBuffer &) override
Stream an object of class TH2F.
 
void SetBinsLength(Int_t n=-1) override
Set total number of bins including under/overflow Reallocate bin contents array.
 
2-D histogram with an int per channel (see TH1 documentation)
 
void Copy(TObject &hnew) const override
Copy.
 
void AddBinContent(Int_t bin) override
Increment bin content by 1.
 
~TH2I() override
Destructor.
 
TH2I & operator=(const TH2I &h1)
Operator =.
 
void SetBinsLength(Int_t n=-1) override
Set total number of bins including under/overflow Reallocate bin contents array.
 
2-D histogram with a long64 per channel (see TH1 documentation)
 
TH2L & operator=(const TH2L &h1)
Operator =.
 
void SetBinsLength(Int_t n=-1) override
Set total number of bins including under/overflow Reallocate bin contents array.
 
~TH2L() override
Destructor.
 
void Copy(TObject &hnew) const override
Copy.
 
void AddBinContent(Int_t bin) override
Increment bin content by 1.
 
2-D histogram with a short per channel (see TH1 documentation)
 
void AddBinContent(Int_t bin) override
Increment bin content by 1.
 
~TH2S() override
Destructor.
 
TH2S & operator=(const TH2S &h1)
Operator =.
 
void Copy(TObject &hnew) const override
Copy.
 
void Streamer(TBuffer &) override
Stream an object of class TH2S.
 
void SetBinsLength(Int_t n=-1) override
Set total number of bins including under/overflow Reallocate bin contents array.
 
TClass * IsA() const override
 
Service class for 2-D histogram classes.
 
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.
 
void GetStats(Double_t *stats) const override
Fill the array stats from the contents of this histogram The array stats must be correctly dimensione...
 
Int_t ShowPeaks(Double_t sigma=2, Option_t *option="", Double_t threshold=0.05) override
Interface to TSpectrum2::Search the function finds peaks in this histogram where the width is > sigma...
 
virtual Double_t GetCorrelationFactor(Int_t axis1=1, Int_t axis2=2) const
Return correlation factor between axis1 and axis2.
 
void FillRandom(TF1 *f1, Int_t ntimes=5000, TRandom *rng=nullptr) override
Fill histogram following distribution in function fname.
 
virtual TProfile * DoProfile(bool onX, const char *name, Int_t firstbin, Int_t lastbin, Option_t *option) const
 
Double_t KolmogorovTest(const TH1 *h2, Option_t *option="") const override
Statistical test of compatibility in shape between THIS histogram and h2, using Kolmogorov test.
 
virtual void FitSlicesY(TF1 *f1=nullptr, Int_t firstxbin=0, Int_t lastxbin=-1, Int_t cut=0, Option_t *option="QNR", TObjArray *arr=nullptr)
Project slices along Y in case of a 2-D histogram, then fit each slice with function f1 and make a hi...
 
virtual Double_t GetBinWithContent2(Double_t c, Int_t &binx, Int_t &biny, Int_t firstxbin=1, Int_t lastxbin=-1, Int_t firstybin=1, Int_t lastybin=-1, Double_t maxdiff=0) const
compute first cell (binx,biny) in the range [firstxbin,lastxbin][firstybin,lastybin] for which diff =...
 
TProfile * ProfileX(const char *name="_pfx", Int_t firstybin=1, Int_t lastybin=-1, Option_t *option="") const
Project a 2-D histogram into a profile histogram along X.
 
TH2 * Rebin(Int_t ngroup=2, const char *newname="", const Double_t *xbins=nullptr) override
Override TH1::Rebin as TH2::RebinX Rebinning in variable binning as for TH1 is not allowed If a non-n...
 
void FillN(Int_t, const Double_t *, const Double_t *, Int_t) override
Fill this histogram with an array x and weights w.
 
TH1D * QuantilesY(Double_t prob=0.5, const char *name="_qy") const
Compute the Y distribution of quantiles in the other variable X name is the name of the returned hist...
 
void AddBinContent(Int_t binx, Int_t biny)
Increment 2D bin content by 1.
 
TProfile * ProfileY(const char *name="_pfy", Int_t firstxbin=1, Int_t lastxbin=-1, Option_t *option="") const
Project a 2-D histogram into a profile histogram along Y.
 
void Copy(TObject &hnew) const override
Copy.
 
virtual TH1D * DoQuantiles(bool onX, const char *name, Double_t prob) const
Implementation of quantiles for x or y.
 
Double_t fTsumwxy
Total Sum of weight*X*Y.
 
void SetBinContent(Int_t bin, Double_t content) override
Set bin content.
 
Int_t BufferEmpty(Int_t action=0) override
Fill histogram with all entries in the buffer.
 
virtual void DoFitSlices(bool onX, TF1 *f1, Int_t firstbin, Int_t lastbin, Int_t cut, Option_t *option, TObjArray *arr)
 
TH1D * QuantilesX(Double_t prob=0.5, const char *name="_qx") const
Compute the X distribution of quantiles in the other variable Y name is the name of the returned hist...
 
virtual void SetShowProjectionY(Int_t nbins=1)
When the mouse is moved in a pad containing a 2-d view of this histogram a second canvas shows the pr...
 
TClass * IsA() const override
 
void Reset(Option_t *option="") override
Reset this histogram: contents, errors, etc.
 
Double_t fScalefactor
Scale factor.
 
virtual TH1D * DoProjection(bool onX, const char *name, Int_t firstbin, Int_t lastbin, Option_t *option) const
Internal (protected) method for performing projection on the X or Y axis called by ProjectionX or Pro...
 
TH2 * RebinX(Int_t ngroup=2, const char *newname="") override
Rebin only the X axis see Rebin2D.
 
Double_t fTsumwy2
Total Sum of weight*Y*Y.
 
virtual void GetRandom2(Double_t &x, Double_t &y, TRandom *rng=nullptr)
Return 2 random numbers along axis x and y distributed according to the cell-contents of this 2-D his...
 
virtual Double_t GetCovariance(Int_t axis1=1, Int_t axis2=2) const
Return covariance between axis1 and axis2.
 
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.
 
void Smooth(Int_t ntimes=1, Option_t *option="") override
Smooth bin contents of this 2-d histogram using kernel algorithms similar to the ones used in the ras...
 
~TH2() override
Destructor.
 
Double_t GetBinContent(Int_t binx, Int_t biny) const override
 
virtual Double_t IntegralAndError(Int_t binx1, Int_t binx2, Int_t biny1, Int_t biny2, Double_t &err, Option_t *option="") const
Return integral of bin contents in range [firstxbin,lastxbin],[firstybin,lastybin] for a 2-D histogra...
 
Double_t fTsumwy
Total Sum of weight*Y.
 
TH2()
2-D histogram default constructor.
 
Double_t Interpolate(Double_t x) const override
illegal for a TH2
 
TH1 * ShowBackground(Int_t niter=20, Option_t *option="same") override
This function calculates the background spectrum in this histogram.
 
virtual void SetShowProjectionX(Int_t nbins=1)
When the mouse is moved in a pad containing a 2-d view of this histogram a second canvas shows the pr...
 
void Streamer(TBuffer &) override
Stream an object of class TH2.
 
Int_t Fill(Double_t) override
Invalid Fill method.
 
virtual TH2 * 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 void FitSlicesX(TF1 *f1=nullptr, Int_t firstybin=0, Int_t lastybin=-1, Int_t cut=0, Option_t *option="QNR", TObjArray *arr=nullptr)
Project slices along X in case of a 2-D histogram, then fit each slice with function f1 and make a hi...
 
virtual Int_t BufferFill(Double_t x, Double_t y, Double_t w)
accumulate arguments in buffer.
 
virtual void SetShowProjectionXY(Int_t nbinsY=1, Int_t nbinsX=1)
When the mouse is moved in a pad containing a 2-d view of this histogram two canvases show the projec...
 
Double_t Integral(Option_t *option="") const override
Return integral of bin contents.
 
void PutStats(Double_t *stats) override
Replace current statistics with the values in array stats.
 
virtual TH2 * RebinY(Int_t ngroup=2, const char *newname="")
Rebin only the Y axis see Rebin2D.
 
static THLimitsFinder * GetLimitsFinder()
Return pointer to the current finder.
 
THashList implements a hybrid collection class consisting of a hash table and a list to store TObject...
 
const char * GetName() const override
Returns name of object.
 
const char * GetTitle() const override
Returns title of object.
 
Collectable string class.
 
Mother of all ROOT objects.
 
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
 
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
 
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
 
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
 
This is the base class for the ROOT Random number generators.
 
Double_t Rndm() override
Machine independent random number generator.
 
void ToLower()
Change string to lower-case.
 
Ssiz_t First(char c) const
Find first occurrence of a character c.
 
const char * Data() const
 
TString & ReplaceAll(const TString &s1, const TString &s2)
 
void ToUpper()
Change string to upper case.
 
TString & Remove(Ssiz_t pos)
 
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
 
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
 
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const
 
virtual void SetShowProjection(const char *option, Int_t nbins)=0
 
virtual Int_t MakeCuts(char *cutsopt)=0
 
virtual Bool_t IsInside(Int_t x, Int_t y)=0
 
virtual void SetShowProjectionXY(const char *option, Int_t nbinsY, Int_t nbinsX)=0
 
small helper class to store/restore gPad context in TPad methods
 
Double_t Gaus(Double_t x, Double_t mean=0, Double_t sigma=1, Bool_t norm=kFALSE)
Calculates a gaussian function with mean and sigma.
 
Short_t Max(Short_t a, Short_t b)
Returns the largest of a and b.
 
Double_t Prob(Double_t chi2, Int_t ndf)
Computation of the probability for a certain Chi-squared (chi2) and number of degrees of freedom (ndf...
 
Double_t QuietNaN()
Returns a quiet NaN as defined by IEEE 754.
 
Double_t Floor(Double_t x)
Rounds x downward, returning the largest integral value that is not greater than x.
 
Double_t Log(Double_t x)
Returns the natural logarithm of x.
 
Double_t Sqrt(Double_t x)
Returns the square root of x.
 
Double_t KolmogorovProb(Double_t z)
Calculates the Kolmogorov distribution function,.
 
Long64_t BinarySearch(Long64_t n, const T *array, T value)
Binary search in an array of n values to locate value.
 
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.